diff --git a/python-fasteners.spec b/python-fasteners.spec index 388a8bf..94248b6 100644 --- a/python-fasteners.spec +++ b/python-fasteners.spec @@ -1,8 +1,14 @@ %global pypi_name fasteners +%if 0%{?rhel} >= 8 +%bcond_without tests +%else +%bcond_with tests +%endif + Name: python-%{pypi_name} Version: 0.14.1 -Release: 18%{?dist} +Release: 19%{?dist} Summary: A python package that provides useful locks License: ASL 2.0 @@ -22,10 +28,11 @@ Summary: A python package that provides useful locks BuildRequires: python3-six BuildRequires: python3-devel # tests +%if %{with tests} BuildRequires: python3-testtools BuildRequires: python3-nose - Requires: python3-six +%endif %description -n python3-%{pypi_name} A python package that provides useful locks. @@ -42,10 +49,10 @@ A python package that provides useful locks. %install %py3_install - +%if %{with tests} %check nosetests-%{python3_version} - +%endif %files -n python3-%{pypi_name} %doc README.rst @@ -55,6 +62,9 @@ nosetests-%{python3_version} %changelog +* Mon Jan 13 2020 Gwyn Ciesla - 0.14.1-19 +- Disable tests on EL-8 + * 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