import python-gevent-1.2.2-4.el8
This commit is contained in:
parent
62feae21b5
commit
bfefb19c02
@ -11,7 +11,7 @@
|
||||
|
||||
Name: python-%{modname}
|
||||
Version: 1.2.2
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: A coroutine-based Python networking library
|
||||
|
||||
License: MIT
|
||||
@ -95,8 +95,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 +109,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 +126,10 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
|
||||
%{python3_sitearch}/%{modname}*
|
||||
|
||||
%changelog
|
||||
* 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