From 1c44138c7c16a581a92151280815242de25322424fe3a105c77dc922167a5e64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Fri, 13 Mar 2020 12:42:22 +0000 Subject: [PATCH] - Fix buidling without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-benchmark?expand=0&rev=15 --- python-pytest-benchmark.changes | 5 +++++ python-pytest-benchmark.spec | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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