diff --git a/python-CherryPy.changes b/python-CherryPy.changes index 2686ec6..a6a8a2d 100644 --- a/python-CherryPy.changes +++ b/python-CherryPy.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 8 18:06:13 UTC 2017 - jmatejek@suse.com + +- conditionally disable python2 + ------------------------------------------------------------------- Fri Mar 31 15:30:01 UTC 2017 - jmatejek@suse.com diff --git a/python-CherryPy.spec b/python-CherryPy.spec index 3e3da0c..89e59db 100644 --- a/python-CherryPy.spec +++ b/python-CherryPy.spec @@ -16,6 +16,8 @@ # +%bcond_without python2 + %{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oldpython python Name: python-CherryPy @@ -37,7 +39,9 @@ BuildRequires: %{python_module portend >= 1.6.1} BuildRequires: %{python_module pytest-runner} BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} +%if %{with python2} BuildRequires: python2-backports.unittest_mock +%endif # /SECTION BuildRequires: python-rpm-macros Requires(post): update-alternatives