diff --git a/python-tornado.changes b/python-tornado.changes index 7d7d9aa..166e2c3 100644 --- a/python-tornado.changes +++ b/python-tornado.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 4 15:56:26 UTC 2018 - jmatejek@suse.com + +- only buildrequire futures / singledispatch if python2 is present + (fixes build in environments that don't have python2 at all) + ------------------------------------------------------------------- Wed Dec 6 13:59:31 UTC 2017 - tchvatal@suse.com diff --git a/python-tornado.spec b/python-tornado.spec index 8b6bace..110fd61 100644 --- a/python-tornado.spec +++ b/python-tornado.spec @@ -1,7 +1,7 @@ # # spec file for package python-tornado # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-tornado Version: 4.5.2 @@ -31,7 +32,6 @@ BuildRequires: %{python_module pycurl} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module simplejson} BuildRequires: fdupes -BuildRequires: python-futures BuildRequires: python-rpm-macros Requires: python >= 2.7.9 Requires: python-simplejson @@ -43,9 +43,12 @@ Recommends: python-service_identity BuildRequires: %{python_module backports.ssl_match_hostname} BuildRequires: %{python_module certifi} %endif +%if %{with python2} +BuildRequires: python-futures +BuildRequires: python-singledispatch +%endif # SECTION test requirements BuildRequires: %{python_module backports_abc} -BuildRequires: python-singledispatch # /SECTION %if %{python_version_nodots} < 35 Requires: python-backports_abc