From 558551ad4635594cae309b4c3b4bf98cf683e111 Mon Sep 17 00:00:00 2001 From: Stephen Smoogen Date: Thu, 25 Jul 2019 13:52:46 +0000 Subject: [PATCH] Python-tests is now required for %check but is not in EPEL. Turning off for initial buildset. --- python-freezegun.spec | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/python-freezegun.spec b/python-freezegun.spec index 40288c8..989d34b 100644 --- a/python-freezegun.spec +++ b/python-freezegun.spec @@ -12,12 +12,14 @@ %bcond_without python2 %endif +%global with_tests 0 + %global modname freezegun %global sum Let your Python tests travel through time Name: python-freezegun Version: 0.3.12 -Release: 1%{?dist} +Release: 1%{?dist}.1 Summary: %{sum} License: ASL 2.0 @@ -39,9 +41,11 @@ BuildRequires: python2-setuptools BuildRequires: python2-six BuildRequires: python2-dateutil BuildRequires: python2-sure -BuildRequires: python2-pytest BuildRequires: python2-coverage BuildRequires: python2-mock +%if 0%{?with_tests} +BuildRequires: python2-pytest +%endif %{?python_provide:%python_provide python2-freezegun} @@ -62,10 +66,13 @@ BuildRequires: python3-setuptools BuildRequires: python3-six BuildRequires: python3-dateutil BuildRequires: python3-sure -BuildRequires: python3-pytest -BuildRequires: python3-coverage +BuildRequires: python3.6dist(coverage) BuildRequires: python3-mock +%if 0%{?with_tests} +BuildRequires: python3-pytest +%endif + %{?python_provide:%python_provide python3-freezegun} Requires: python3-six @@ -109,6 +116,7 @@ popd rm -f $RPM_BUILD_ROOT/%{python2_sitelib}/%{modname}/_async.py %endif # with python2 +%if 0%{?with_tests} %check %if %{with python3} pushd %{py3dir} @@ -121,6 +129,8 @@ popd %if %{with python2} pytest-2 %endif # with python2 +%endif # with_tests + %if %{with python2} %files -n python2-freezegun @@ -137,6 +147,9 @@ pytest-2 %endif # with python3 %changelog +* Thu Jul 25 2019 Stephen Smoogen - 0.3.12-1.1 +- Python-tests is now required for %check but is not in EPEL. Turning off for initial buildset. + * Wed Jun 05 2019 Charalampos Stratakis - 0.3.12-1 - Update to 0.3.12