From 4de9de6c931a870ff9ce0bdee32b8e0f3c3f64a45a2b96aedee7b78d0f171631 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Mon, 20 Apr 2020 12:03:55 +0000 Subject: [PATCH] - Fix build without python2 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-flower?expand=0&rev=8 --- python-flower.changes | 5 +++++ python-flower.spec | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/python-flower.changes b/python-flower.changes index c03e90e..8599c4b 100644 --- a/python-flower.changes +++ b/python-flower.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Apr 20 12:03:43 UTC 2020 - Tomáš Chvátal + +- Fix build without python2 + ------------------------------------------------------------------- Fri Nov 15 19:15:59 CET 2019 - Matej Cepl diff --git a/python-flower.spec b/python-flower.spec index 74a53dd..ed6f249 100644 --- a/python-flower.spec +++ b/python-flower.spec @@ -1,7 +1,7 @@ # # spec file for package python-flower # -# Copyright (c) 2019 SUSE LLC. +# 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 @@ -16,6 +16,7 @@ # +%bcond_without python2 Name: python-flower Version: 0.9.3 Release: 0 @@ -36,7 +37,6 @@ BuildRequires: %{python_module pytz} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module tornado >= 4.2.0} BuildRequires: fdupes -BuildRequires: python-futures Requires: python-Babel >= 1.0 Requires: python-celery >= 3.1.0 Requires: python-certifi @@ -45,6 +45,9 @@ Requires: python-tornado >= 4.2.0 Requires(post): update-alternatives Requires(postun): update-alternatives BuildArch: noarch +%if %{with python2} +BuildRequires: python-futures +%endif %ifpython2 Requires: python-futures %endif