diff --git a/python-extras.spec b/python-extras.spec index 19a156b..796cbbe 100644 --- a/python-extras.spec +++ b/python-extras.spec @@ -2,13 +2,10 @@ # NOTE(hguemar): discussed with maintainer to allow rebuild on RHEL/CentOS # No impact on Fedora/EPEL! -%if 0%{?fedora} || 0%{?epel} -%global with_python3 1 -%endif Name: python-extras Version: 1.0.0 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Useful extra bits for Python License: MIT @@ -24,18 +21,6 @@ general use outside of a testing context.\ %description %_description -%package -n python2-extras -Summary: %summary -%{?python_provide:%python_provide python2-extras} -BuildRequires: python2-devel -BuildRequires: python2-setuptools -%if %{with check} -BuildRequires: python2-testtools -%endif - -%description -n python2-extras %_description - -%if 0%{?with_python3} %package -n python3-extras Summary: %summary %{?python_provide:%python_provide python3-extras} @@ -46,7 +31,6 @@ BuildRequires: python3-testtools %endif %description -n python3-extras %_description -%endif %prep %setup -q -n extras-%{version} @@ -54,40 +38,27 @@ BuildRequires: python3-testtools rm -vrf *.egg-info %build -%py2_build -%if 0%{?with_python3} %py3_build -%endif %install -%py2_install -%if 0%{?with_python3} %py3_install -%endif %if %{with check} %check -%{__python2} setup.py test -%if 0%{?with_python3} %{__python3} setup.py test %endif -%endif -%files -n python2-extras -%license LICENSE -%doc NEWS README.rst -%{python2_sitelib}/extras/ -%{python2_sitelib}/extras-*.egg-info/ - -%if 0%{?with_python3} %files -n python3-extras %license LICENSE %doc NEWS README.rst %{python3_sitelib}/extras/ %{python3_sitelib}/extras-*.egg-info/ -%endif %changelog +* Thu Oct 03 2019 Miro Hrončok - 1.0.0-10 +- Subpackage python2-extras has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Sat Aug 17 2019 Miro Hrončok - 1.0.0-9 - Rebuilt for Python 3.8