diff --git a/python-pytest-services.changes b/python-pytest-services.changes index d993846..41daf83 100644 --- a/python-pytest-services.changes +++ b/python-pytest-services.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 13 12:39:49 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Mon Feb 24 11:37:28 UTC 2020 - Tomáš Chvátal diff --git a/python-pytest-services.spec b/python-pytest-services.spec index bb1a177..d6daded 100644 --- a/python-pytest-services.spec +++ b/python-pytest-services.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-pytest-services Version: 2.0.1 Release: 0 @@ -33,7 +34,9 @@ BuildRequires: %{python_module setuptools} BuildRequires: %{python_module zc.lockfile >= 2.0} BuildRequires: fdupes BuildRequires: python-rpm-macros +%if %{with python2} BuildRequires: python-subprocess32 +%endif Requires: python-psutil Requires: python-pytest Requires: python-requests