From f9c29789333378febee09656f6d7143f766265bc Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Nov 05 2019 19:40:50 +0000 Subject: import python-gevent-1.2.2-4.el8 --- diff --git a/SPECS/python-gevent.spec b/SPECS/python-gevent.spec index 5dd362d..e5e470c 100644 --- a/SPECS/python-gevent.spec +++ b/SPECS/python-gevent.spec @@ -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 - 1.2.2-4 +- Remove the python2 files before running py3_install + Resolves: rhbz#1704111 + * Wed Jul 18 2018 Charalampos Stratakis - 1.2.2-3 - Conditionalize the python2 subpackage