From cadf0315e1fe8fde89167a1a723b12a79717cb9bacdbde70e206fb2e9baaf2f7 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:40:04 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-services?expand=0&rev=7 --- python-pytest-services.changes | 5 +++++ python-pytest-services.spec | 3 +++ 2 files changed, 8 insertions(+) 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