Skip tests on EL-8
This commit is contained in:
parent
bdf5ee6ec2
commit
4c6a7f3b37
@ -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 <gwync@protonmail.com> - 0.14.1-19
|
||||
- Disable tests on EL-8
|
||||
|
||||
* Mon Sep 02 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-18
|
||||
- Subpackage python2-fasteners has been removed
|
||||
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||
|
||||
Loading…
Reference in New Issue
Block a user