diff --git a/python-pytest-benchmark.changes b/python-pytest-benchmark.changes index 8e23dc0..940724c 100644 --- a/python-pytest-benchmark.changes +++ b/python-pytest-benchmark.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Mar 13 12:42:10 UTC 2020 - Tomáš Chvátal + +- Fix buidling without python2 + ------------------------------------------------------------------- Mon Jan 13 14:13:23 UTC 2020 - Tomáš Chvátal diff --git a/python-pytest-benchmark.spec b/python-pytest-benchmark.spec index 33008b8..80f0df9 100644 --- a/python-pytest-benchmark.spec +++ b/python-pytest-benchmark.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-pytest-benchmark Version: 3.2.3 Release: 0 @@ -36,10 +37,12 @@ BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: git-core +%if %{with python2} BuildRequires: python-mock BuildRequires: python-pathlib2 -BuildRequires: python-rpm-macros BuildRequires: python-statistics +%endif +BuildRequires: python-rpm-macros Requires: python-py-cpuinfo Requires: python-pytest >= 3.8 Requires(post): update-alternatives