Skip tests on EL-8
This commit is contained in:
parent
bdf5ee6ec2
commit
4c6a7f3b37
@ -1,8 +1,14 @@
|
|||||||
%global pypi_name fasteners
|
%global pypi_name fasteners
|
||||||
|
|
||||||
|
%if 0%{?rhel} >= 8
|
||||||
|
%bcond_without tests
|
||||||
|
%else
|
||||||
|
%bcond_with tests
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: python-%{pypi_name}
|
Name: python-%{pypi_name}
|
||||||
Version: 0.14.1
|
Version: 0.14.1
|
||||||
Release: 18%{?dist}
|
Release: 19%{?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
|
||||||
@ -22,10 +28,11 @@ 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}
|
||||||
BuildRequires: python3-testtools
|
BuildRequires: python3-testtools
|
||||||
BuildRequires: python3-nose
|
BuildRequires: python3-nose
|
||||||
|
|
||||||
Requires: python3-six
|
Requires: python3-six
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n python3-%{pypi_name}
|
%description -n python3-%{pypi_name}
|
||||||
A python package that provides useful locks.
|
A python package that provides useful locks.
|
||||||
@ -42,10 +49,10 @@ A python package that provides useful locks.
|
|||||||
%install
|
%install
|
||||||
%py3_install
|
%py3_install
|
||||||
|
|
||||||
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
nosetests-%{python3_version}
|
nosetests-%{python3_version}
|
||||||
|
%endif
|
||||||
|
|
||||||
%files -n python3-%{pypi_name}
|
%files -n python3-%{pypi_name}
|
||||||
%doc README.rst
|
%doc README.rst
|
||||||
@ -55,6 +62,9 @@ nosetests-%{python3_version}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Sep 02 2019 Miro Hrončok <mhroncok@redhat.com> - 0.14.1-18
|
||||||
- Subpackage python2-fasteners has been removed
|
- Subpackage python2-fasteners has been removed
|
||||||
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user