%bcond_without check # NOTE(hguemar): discussed with maintainer to allow rebuild on RHEL/CentOS # No impact on Fedora/EPEL! %global with_python3 1 Name: python-extras Version: 1.0.0 Release: 7%{?dist} Summary: Useful extra bits for Python License: MIT URL: https://github.com/testing-cabal/extras Source0: https://pypi.io/packages/source/e/extras/extras-%{version}.tar.gz BuildArch: noarch %global _description\ extras is a set of extensions to the Python standard library, originally\ written to make the code within testtools cleaner, but now split out for\ 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} BuildRequires: python3-devel BuildRequires: python3-setuptools %if %{with check} BuildRequires: python3-testtools %endif %description -n python3-extras %_description %endif %prep %setup -q -n extras-%{version} # Remove bundled egg-info 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 * Fri Jul 26 2019 Fedora Release Engineering - 1.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 1.0.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 1.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Mon Jun 18 2018 Miro Hrončok - 1.0.0-4 - Rebuilt for Python 3.7 * Thu Jun 14 2018 Miro Hrončok - 1.0.0-3 - Bootstrap for Python 3.7 * Tue Feb 6 2018 Haïkel Guémar - 1.0.0-2 - Fix build on EL7 * Sat Sep 2 2017 Jan Beran - 1.0.0-1 - New version * Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.0.3-17 - Python 2 binary package renamed to python2-extras See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 * Thu Jul 27 2017 Fedora Release Engineering - 0.0.3-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.0.3-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Dec 13 2016 Stratakis Charalampos - 0.0.3-14 - Enable tests * Fri Dec 09 2016 Charalampos Stratakis - 0.0.3-13 - Rebuild for Python 3.6 - Disable tests * Tue Jul 19 2016 Fedora Release Engineering - 0.0.3-12 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.0.3-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sat Nov 14 2015 Toshio Kuratomi - - 0.0.3-10 - And now re-enable * Sat Nov 14 2015 Toshio Kuratomi - - 0.0.3-9 - Temporarily disable tests to bootstrap past a dep loop * Tue Nov 10 2015 Fedora Release Engineering - 0.0.3-8 - Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 * Thu Jun 18 2015 Fedora Release Engineering - 0.0.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.0.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri May 16 2014 Bohuslav Kabrda - 0.0.3-5 - Enable tests again. * Wed May 14 2014 Bohuslav Kabrda - 0.0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4 - Bootstrap tests to break circular dependency with python-testtools * Sun Aug 04 2013 Fedora Release Engineering - 0.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed May 29 2013 Matthias Runge - 0.0.3-2 - spec cleanup and enable tests * Wed May 1 2013 Michel Salim - 0.0.3-1 - Initial package