From f2cffb2e052145672341814e93edf556b3c0b6cc Mon Sep 17 00:00:00 2001 From: Gwyn Ciesla Date: Wed, 15 Jan 2020 09:56:05 -0500 Subject: [PATCH] Fix conditionals. --- python-fasteners.spec | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/python-fasteners.spec b/python-fasteners.spec index 94248b6..b1661c8 100644 --- a/python-fasteners.spec +++ b/python-fasteners.spec @@ -1,14 +1,14 @@ %global pypi_name fasteners -%if 0%{?rhel} >= 8 -%bcond_without tests +%if 0%{?rhel} >= 8 +%bcond_with pytests %else -%bcond_with tests +%bcond_without pytests %endif Name: python-%{pypi_name} Version: 0.14.1 -Release: 19%{?dist} +Release: 20%{?dist} Summary: A python package that provides useful locks License: ASL 2.0 @@ -28,7 +28,7 @@ Summary: A python package that provides useful locks BuildRequires: python3-six BuildRequires: python3-devel # tests -%if %{with tests} +%if %{with pytests} BuildRequires: python3-testtools BuildRequires: python3-nose Requires: python3-six @@ -49,7 +49,7 @@ A python package that provides useful locks. %install %py3_install -%if %{with tests} +%if %{with pytests} %check nosetests-%{python3_version} %endif @@ -62,6 +62,9 @@ nosetests-%{python3_version} %changelog +* Wed Jan 15 2020 Gwyn Ciesla - 0.14.1-21 +- Fix conditionals. + * Mon Jan 13 2020 Gwyn Ciesla - 0.14.1-19 - Disable tests on EL-8