Fix conditionals.

This commit is contained in:
Gwyn Ciesla 2020-01-15 09:56:05 -05:00
parent 4c6a7f3b37
commit f2cffb2e05

View File

@ -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 <gwync@protonmail.com> - 0.14.1-21
- Fix conditionals.
* Mon Jan 13 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.14.1-19
- Disable tests on EL-8