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