From ea0328f348fc9a4e8b6644bb1f0aec14f6b80162bd172e099d1cad7e85e82fe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 20 Apr 2020 11:21:08 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Pebble?expand=0&rev=11 --- python-Pebble.changes | 5 +++++ python-Pebble.spec | 10 ++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/python-Pebble.changes b/python-Pebble.changes index e861093..e07432f 100644 --- a/python-Pebble.changes +++ b/python-Pebble.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 20 11:18:48 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Thu Mar 26 16:16:44 UTC 2020 - Marketa Calabkova diff --git a/python-Pebble.spec b/python-Pebble.spec index fa90b27..74420ac 100644 --- a/python-Pebble.spec +++ b/python-Pebble.spec @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-Pebble Version: 4.5.1 Release: 0 @@ -27,17 +28,18 @@ URL: https://github.com/noxdafox/pebble Source: https://files.pythonhosted.org/packages/source/P/Pebble/Pebble-%{version}.tar.gz BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: git -BuildRequires: python-futures +BuildRequires: git-core BuildRequires: python-rpm-macros +BuildArch: noarch +%if %{with python2} +BuildRequires: python-futures +%endif # SECTION test requirements BuildRequires: %{python_module pytest} # /SECTION %ifpython2 Requires: python-futures %endif -BuildArch: noarch - %python_subpackages %description