diff --git a/python-fasteners.spec b/python-fasteners.spec index 983feaf..388a8bf 100644 --- a/python-fasteners.spec +++ b/python-fasteners.spec @@ -1,12 +1,8 @@ -%if 0%{?fedora} -%global with_python3 1 -%endif - %global pypi_name fasteners Name: python-%{pypi_name} Version: 0.14.1 -Release: 17%{?dist} +Release: 18%{?dist} Summary: A python package that provides useful locks License: ASL 2.0 @@ -15,31 +11,10 @@ Source0: https://codeload.github.com/harlowja/fasteners/tar.gz/%{version} Patch0: fasteners-monotonic.patch BuildArch: noarch - %description A python package that provides useful locks. -%package -n python2-%{pypi_name} -Summary: A python package that provides useful locks -Obsoletes: python-%{pypi_name} < 0.13.0-3 -%{?python_provide:%python_provide python2-%{pypi_name}} - -BuildRequires: python2-devel -BuildRequires: python2-six -# tests -BuildRequires: python2-testtools -BuildRequires: python2-nose -BuildRequires: python2-monotonic -BuildRequires: python2-futures -Requires: python2-six -Requires: python2-monotonic - -%description -n python2-%{pypi_name} -A python package that provides useful locks. - - -%if 0%{?with_python3} %package -n python3-%{pypi_name} Summary: A python package that provides useful locks %{?python_provide:%python_provide python3-%{pypi_name}} @@ -55,50 +30,35 @@ Requires: python3-six %description -n python3-%{pypi_name} A python package that provides useful locks. -%endif - - %prep %autosetup -p1 -n %{pypi_name}-%{version} %build -%py2_build - -%if 0%{?with_python3} %py3_build -%endif # with_python3 + %install -%py2_install -%if 0%{?with_python3} %py3_install -%endif # with_python3 + %check -nosetests-%{python2_version} - -%if 0%{?with_python3} nosetests-%{python3_version} -%endif # with_python3 -%files -n python2-%{pypi_name} -%doc README.rst -%license LICENSE -%{python2_sitelib}/%{pypi_name}/ -%{python2_sitelib}/%{pypi_name}-*.egg-info/ -%if 0%{?with_python3} %files -n python3-%{pypi_name} %doc README.rst %license LICENSE %{python3_sitelib}/%{pypi_name}/ %{python3_sitelib}/%{pypi_name}-*.egg-info/ -%endif # with_python3 %changelog +* Mon Sep 02 2019 Miro Hrončok - 0.14.1-18 +- Subpackage python2-fasteners has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Mon Aug 19 2019 Miro Hrončok - 0.14.1-17 - Rebuilt for Python 3.8