diff --git a/eventlet-0.40.3.tar.gz b/eventlet-0.40.3.tar.gz deleted file mode 100644 index 31fe010f6cf97075ddbbe38ca44ce577c694be4a..0000000000000000000000000000000000000000 Binary files a/eventlet-0.40.3.tar.gz and /dev/null differ diff --git a/eventlet-0.40.4.tar.gz b/eventlet-0.40.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..fc9145bb7af06625e5fdd43e9eea4531bf0b1b9d Binary files /dev/null and b/eventlet-0.40.4.tar.gz differ diff --git a/python-eventlet.spec b/python-eventlet.spec index e52b2b5da2a532d784dd64fc950bc666d3c5143e..94e9458e1cff4d7a59279a8be3a9b032638dd655 100644 --- a/python-eventlet.spec +++ b/python-eventlet.spec @@ -1,19 +1,14 @@ %global _empty_manifest_terminate_build 0 +%undefine _python_dist_allow_version_zero Name: python-eventlet -Version: 0.40.3 +Version: 0.40.4 Release: 1 Summary: Highly concurrent networking library License: MIT URL: http://eventlet.net Source0: https://files.pythonhosted.org/packages/source/e/eventlet/eventlet-%{version}.tar.gz BuildArch: noarch -%description -Eventlet is a concurrent networking library for Python that allows you to change how you run your code, not how you write it. - -%package -n python3-eventlet -Summary: Highly concurrent networking library -Provides: python-eventlet -# Base build requires +BuildRequires: python3-build BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pbr @@ -21,10 +16,18 @@ BuildRequires: python3-pip BuildRequires: python3-wheel BuildRequires: python3-hatchling BuildRequires: python3-hatch-vcs -# General requires BuildRequires: python3-dns BuildRequires: python3-greenlet BuildRequires: python3-six + +%description +Eventlet is a concurrent networking library for Python that allows you to change how you run your code, not how you write it. + +%package -n python3-eventlet +Summary: Highly concurrent networking library +Provides: python-eventlet +# Base build requires +# General requires # General requires Requires: python3-dns Requires: python3-greenlet @@ -41,10 +44,28 @@ Eventlet is a concurrent networking library for Python that allows you to change %prep %autosetup -n eventlet-%{version} +# Fix setuptools_scm version issue +if [ -f pyproject.toml ]; then + sed -i '/^version *=/d' pyproject.toml + sed -i '/^\[project\]/a version = "%{version}"' pyproject.toml + sed -i '/dynamic *= *\[.*version.*\]/d' pyproject.toml + if grep -q '^\[tool\.setuptools_scm\]' pyproject.toml; then + sed -i '/^\[tool\.setuptools_scm\]/,/^\[/ {/^write_to *=/d}' pyproject.toml + sed -i '/^\[tool\.setuptools_scm\]/a fallback_version = "%{version}"' pyproject.toml + fi +fi + %build +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" %pyproject_build %install +export PYTHONDONTWRITEBYTECODE=1 + +# Clean __pycache__ directories and .pyc/.pyo files +find %{buildroot} -name '*.py[co]' -delete +find %{buildroot} -type d -name '__pycache__' -exec rm -rf {} + 2>/dev/null || true +export SETUPTOOLS_SCM_PRETEND_VERSION="%{version}" %pyproject_install install -d -m755 %{buildroot}/%{_pkgdocdir} @@ -62,6 +83,9 @@ if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi %{_docdir}/* %changelog +* Thu Nov 27 2025 zhangzeyang0718 - 0.40.4-1 +- Update package to version 0.40.4 + * Mon Sep 01 2025 jinshuaiyu - 0.40.3-1 - Update package to version 0.40.3 - [SECURITY] Fix request smuggling vulnerability by discarding trailers