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 %global pypi_name fasteners
%if 0%{?rhel} >= 8 %if 0%{?rhel} >= 8
%bcond_without tests %bcond_with pytests
%else %else
%bcond_with tests %bcond_without pytests
%endif %endif
Name: python-%{pypi_name} Name: python-%{pypi_name}
Version: 0.14.1 Version: 0.14.1
Release: 19%{?dist} Release: 20%{?dist}
Summary: A python package that provides useful locks Summary: A python package that provides useful locks
License: ASL 2.0 License: ASL 2.0
@ -28,7 +28,7 @@ Summary: A python package that provides useful locks
BuildRequires: python3-six BuildRequires: python3-six
BuildRequires: python3-devel BuildRequires: python3-devel
# tests # tests
%if %{with tests} %if %{with pytests}
BuildRequires: python3-testtools BuildRequires: python3-testtools
BuildRequires: python3-nose BuildRequires: python3-nose
Requires: python3-six Requires: python3-six
@ -49,7 +49,7 @@ A python package that provides useful locks.
%install %install
%py3_install %py3_install
%if %{with tests} %if %{with pytests}
%check %check
nosetests-%{python3_version} nosetests-%{python3_version}
%endif %endif
@ -62,6 +62,9 @@ nosetests-%{python3_version}
%changelog %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 * Mon Jan 13 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.14.1-19
- Disable tests on EL-8 - Disable tests on EL-8