Compare commits
2 Commits
imports/c8
...
c8
| Author | SHA1 | Date | |
|---|---|---|---|
| 33be150012 | |||
|
|
bfefb19c02 |
2
.gitignore
vendored
2
.gitignore
vendored
@ -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
@ -11,7 +11,7 @@
|
||||
|
||||
Name: python-%{modname}
|
||||
Version: 1.2.2
|
||||
Release: 3%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: A coroutine-based Python networking library
|
||||
|
||||
License: MIT
|
||||
@ -20,6 +20,8 @@ Source0: https://files.pythonhosted.org/packages/source/g/%{modname}/%{mod
|
||||
|
||||
# https://github.com/gevent/gevent/pull/979
|
||||
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: libev-devel
|
||||
@ -82,7 +84,7 @@ Features include:
|
||||
Python 3 version.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{modname}-%{version}
|
||||
%autosetup -p1 -n %{modname}-%{version}
|
||||
# Remove bundled libraries
|
||||
rm -r deps
|
||||
# Upstream intentionally includes C extension sources in the built package,
|
||||
@ -95,8 +97,10 @@ export LIBEV_EMBED=0
|
||||
export CARES_EMBED=0
|
||||
export GEVENT_NO_CFFI_BUILD=1
|
||||
%if %{with python2}
|
||||
rm src/gevent/_*3.py*
|
||||
%py2_build
|
||||
%endif # with python2
|
||||
rm src/gevent/_*2.py
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
@ -107,11 +111,6 @@ export GEVENT_NO_CFFI_BUILD=1
|
||||
%py2_install
|
||||
%endif # with python2
|
||||
%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
|
||||
# Correct the permissions.
|
||||
find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
|
||||
@ -129,6 +128,16 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
|
||||
%{python3_sitearch}/%{modname}*
|
||||
|
||||
%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
|
||||
- Conditionalize the python2 subpackage
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user