forked from pool/python-tornado
- only buildrequire futures / singledispatch if python2 is present
(fixes build in environments that don't have python2 at all) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado?expand=0&rev=68
This commit is contained in:
committed by
Git OBS Bridge
parent
5f0473b918
commit
34ef4d5534
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user