Compare commits

...

2 Commits

Author SHA1 Message Date
33be150012 import from CS git python-gevent-1.2.2-5.el8 2024-11-05 09:04:10 +00:00
CentOS Sources
bfefb19c02 import python-gevent-1.2.2-4.el8 2021-09-10 02:45:23 +00:00
4 changed files with 3251 additions and 8 deletions

2
.gitignore vendored
View File

@ -1 +1 @@
SOURCES/gevent-1.2.2.tar.gz SOURCES/gevent-1.2.2.tar.gz

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,7 @@
Name: python-%{modname} Name: python-%{modname}
Version: 1.2.2 Version: 1.2.2
Release: 3%{?dist} Release: 5%{?dist}
Summary: A coroutine-based Python networking library Summary: A coroutine-based Python networking library
License: MIT License: MIT
@ -20,6 +20,8 @@ Source0: https://files.pythonhosted.org/packages/source/g/%{modname}/%{mod
# https://github.com/gevent/gevent/pull/979 # https://github.com/gevent/gevent/pull/979
Patch1: 0001-always-obey-GEVENT_NO_CFFI_BUILD.patch Patch1: 0001-always-obey-GEVENT_NO_CFFI_BUILD.patch
Patch2: 0002-gevent.pywsgi-Much-improved-handling-of-chunk-traile.patch
Patch3: 0003-Avoid-printing-a-TypeError-traceback-on-certain-type.patch
BuildRequires: c-ares-devel BuildRequires: c-ares-devel
BuildRequires: libev-devel BuildRequires: libev-devel
@ -82,7 +84,7 @@ Features include:
Python 3 version. Python 3 version.
%prep %prep
%autosetup -n %{modname}-%{version} %autosetup -p1 -n %{modname}-%{version}
# Remove bundled libraries # Remove bundled libraries
rm -r deps rm -r deps
# Upstream intentionally includes C extension sources in the built package, # Upstream intentionally includes C extension sources in the built package,
@ -95,8 +97,10 @@ export LIBEV_EMBED=0
export CARES_EMBED=0 export CARES_EMBED=0
export GEVENT_NO_CFFI_BUILD=1 export GEVENT_NO_CFFI_BUILD=1
%if %{with python2} %if %{with python2}
rm src/gevent/_*3.py*
%py2_build %py2_build
%endif # with python2 %endif # with python2
rm src/gevent/_*2.py
%py3_build %py3_build
%install %install
@ -107,11 +111,6 @@ export GEVENT_NO_CFFI_BUILD=1
%py2_install %py2_install
%endif # with python2 %endif # with python2
%py3_install %py3_install
%if %{with python2}
rm %{buildroot}%{python2_sitearch}/%{modname}/_*3.py*
%endif # with python2
rm %{buildroot}%{python3_sitearch}/%{modname}/_*2.py
rm %{buildroot}%{python3_sitearch}/%{modname}/__pycache__/_*2.*
find %{buildroot} -name '.buildinfo' -delete find %{buildroot} -name '.buildinfo' -delete
# Correct the permissions. # Correct the permissions.
find %{buildroot} -name '*.so' -exec chmod 755 {} ';' find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
@ -129,6 +128,16 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
%{python3_sitearch}/%{modname}* %{python3_sitearch}/%{modname}*
%changelog %changelog
* Tue Nov 21 2023 Brian C. Lane <bcl@redhat.com> - 1.2.2-5
- Avoid printing TypeError traceback
- gevent.pywsgi: Much improved handling of chunk trailers
Backport fix for CVE-2023-41419
Resolves: RHEL-17078
* Mon Apr 29 2019 Brian C. Lane <bcl@redhat.com> - 1.2.2-4
- Remove the python2 files before running py3_install
Resolves: rhbz#1704111
* Wed Jul 18 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.2.2-3 * Wed Jul 18 2018 Charalampos Stratakis <cstratak@redhat.com> - 1.2.2-3
- Conditionalize the python2 subpackage - Conditionalize the python2 subpackage