%global srcname cycler %global sum Cycle through lists in various ways (used by matplotlib) %global desc General purpose library used by matplotlib to cycle through lists for colors,\ marker styles, etc Name: python-%{srcname} Version: 0.10.0 Release: 11%{?dist} Summary: %{sum} License: BSD Source0: https://github.com/matplotlib/cycler/archive/v%{version}/%{name}-%{version}.tar.gz#/%{srcname}-%{version}.tar.gz URL: https://github.com/matplotlib/cycler.git BuildArch: noarch %description %{desc} %package -n python2-%{srcname} Summary: %{sum} Requires: python2-six BuildRequires: python2-devel python2-six python2-setuptools python2-nose %{?python_provide:%python_provide python2-%{srcname}} %description -n python2-%{srcname} %{desc} %package -n python%{python3_pkgversion}-%{srcname} Summary: %{sum} Requires: python%{python3_pkgversion}-six BuildRequires: python%{python3_pkgversion}-devel python%{python3_pkgversion}-six python%{python3_pkgversion}-setuptools python%{python3_pkgversion}-nose %{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} %description -n python%{python3_pkgversion}-%{srcname} %{desc} %prep %autosetup -n %{srcname}-%{version} %build %py2_build %py3_build %install # Must do the python2 install first because the scripts in /usr/bin are # overwritten with every setup.py install, and in general we want the # python3 version to be the default. %py2_install %py3_install %check %{__python2} setup.py test %{__python3} setup.py test # Note that there is no %%files section for the unversioned python module if we are building for several python runtimes %files -n python2-%{srcname} %doc README.rst %license LICENSE %{python2_sitelib}/* %files -n python%{python3_pkgversion}-%{srcname} %doc README.rst %license LICENSE %{python3_sitelib}/* %changelog * Sun Aug 18 2019 Miro Hrončok - 0.10.0-11 - Rebuilt for Python 3.8 * Fri Jul 26 2019 Fedora Release Engineering - 0.10.0-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Sat Feb 02 2019 Fedora Release Engineering - 0.10.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.10.0-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 0.10.0-7 - Rebuilt for Python 3.7 * Fri Feb 09 2018 Fedora Release Engineering - 0.10.0-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Tue Jan 16 2018 Iryna Shcherbina - 0.10.0-5 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) * Thu Jul 27 2017 Fedora Release Engineering - 0.10.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Sat Feb 11 2017 Fedora Release Engineering - 0.10.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Tue Dec 13 2016 Stratakis Charalampos - 0.10.0-2 - Rebuild for Python 3.6 * Mon Aug 29 2016 Neal Becker - 0.10.0-1 - Update to 0.10.0 * Tue Jul 19 2016 Fedora Release Engineering - 0.9.0-8 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 04 2016 Fedora Release Engineering - 0.9.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Nov 15 2015 Neal Becker - 0.9.0-6 - Add BR python-nose * Sun Nov 15 2015 Neal Becker - 0.9.0-5 - rebuild for py3.5 * Fri Nov 6 2015 Neal Becker - 0.9.0-3 - fix license * Fri Oct 30 2015 Neal Becker - 0.9.0-1 - init