From 48f8a82b462c9956045d9bba2be6df8629cf1e180239d762023e7a3bbc2a4748 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 23 Apr 2020 11:16:36 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-click-threading?expand=0&rev=9 --- python-click-threading.changes | 5 +++++ python-click-threading.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-click-threading.changes b/python-click-threading.changes index 18a5a93..c834f78 100644 --- a/python-click-threading.changes +++ b/python-click-threading.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 23 11:16:18 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Mon Oct 14 11:44:00 UTC 2019 - Matej Cepl diff --git a/python-click-threading.spec b/python-click-threading.spec index 6d1d36e..a40f7f6 100644 --- a/python-click-threading.spec +++ b/python-click-threading.spec @@ -1,7 +1,7 @@ # # spec file for package python-click-threading # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without python2 Name: python-click-threading Version: 0.4.4 Release: 0 @@ -28,10 +29,12 @@ BuildRequires: %{python_module click >= 5.0} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: fdupes -BuildRequires: python-futures BuildRequires: python-rpm-macros Requires: python-click >= 5.0 BuildArch: noarch +%if %{with python2} +BuildRequires: python-futures +%endif %ifpython2 Requires: python-futures %endif