14
0

Accepting request 334984 from home:flavio_castelli:branches:devel:languages:python

fix python-certifi requirement

OBS-URL: https://build.opensuse.org/request/show/334984
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tornado?expand=0&rev=44
This commit is contained in:
Jan Matejek
2015-09-30 15:16:17 +00:00
committed by Git OBS Bridge
parent db5a2c5bf8
commit a04745ca14
2 changed files with 20 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Sep 30 09:11:37 UTC 2015 - fcastelli@suse.com
- python-certifi is an optional depedency when python 2.7.9 is available.
-------------------------------------------------------------------
Sat Sep 26 10:21:28 UTC 2015 - toddrme2178@gmail.com

View File

@@ -27,13 +27,27 @@ Source: https://pypi.python.org/packages/source/t/tornado/tornado-%{vers
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-backports.ssl_match_hostname
BuildRequires: python-devel
BuildRequires: python-certifi
BuildRequires: python-futures
BuildRequires: python-pycurl
BuildRequires: python-setuptools
BuildRequires: python-simplejson
Requires: python-backports.ssl_match_hostname
# Tornado requires python-certifi when the ssl module
# does not provide the 'create_default_context' function.
# The ssl module is part of the python package.
# Starting from python 2.7.9 the ssl module satisfies
# tornado's requirement, making the python-certifi package
# optional.
# Python 2.7.9 is availalbe on SLE12 Updates channel and is going
# to be available also on openSUSE leap.
%if 0%{?sles_version} >= 12 || 0%{suse_version} > 1320
Requires: python >= 2.7.9
%else
BuildRequires: python-certifi
Requires: python-certifi
%endif
Requires: python-simplejson
%if 0%{?suse_version}
Recommends: python-futures