diff --git a/python-pid.spec b/python-pid.spec index fda11f6..b37f11e 100644 --- a/python-pid.spec +++ b/python-pid.spec @@ -10,20 +10,20 @@ pid provides a PidFile class that manages PID files. PidFile features: PidFile can also be used as a context manager or a decorator.} -# Build python3 for EPEL7, but not 6 -%if 0%{?rhel} && 0%{?rhel} < 7 -%bcond_with python3 -%else -%bcond_without python3 +%if %{defined el6} +%bcond_without python2 %endif -# Do not build python2 for EPEL > 7, Fedora > 28 -%if 0%{?rhel} > 7 || 0%{?fedora} > 28 -%bcond_with python2 -%else -%bcond_without python2 +%if %{defined el7} +%bcond_without python2 %endif +%if %{defined fedora} && 0%{?fedora} < 29 +%bcond_without python2 +%endif + +%bcond_without python3 + Name: python-%{srcname} Version: 2.2.3 Release: 1%{?dist} @@ -117,6 +117,7 @@ rm -rf %{srcname}.egg-info %changelog * Tue Mar 05 2019 Carl George - 2.2.3-1 - Latest upstream +- Build python3 subpackage on el6 * Sat Feb 02 2019 Fedora Release Engineering - 2.1.1-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild