15
0

Accepting request 333890 from home:TheBlackCat:branches:devel:languages:python

Update to version 2015.9.6.2

OBS-URL: https://build.opensuse.org/request/show/333890
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-certifi?expand=0&rev=3
This commit is contained in:
Todd R
2015-09-26 10:57:24 +00:00
committed by Git OBS Bridge
parent 17beff2dbc
commit feb3a637b4
5 changed files with 36 additions and 19 deletions

View File

@@ -16,24 +16,26 @@
Name: python-certifi
Version: 14.05.14
Version: 2015.9.6.2
Release: 0
License: ISC
License: MPL-2.0
Summary: Python package for providing Mozilla's CA Bundle
Url: http://python-requests.org
Url: https://pypi.python.org/pypi/certifi
Group: Development/Languages/Python
Source: https://pypi.python.org/packages/source/c/certifi/certifi-%{version}.tar.gz
# PATCH-FIX-SUSE -- prefer SUSE certificates
Patch0: python-certifi-shipped-requests-cabundle.patch
Patch0: python-certifi-shipped-requests-cabundle.patch
BuildRequires: python-devel
BuildRequires: python-setuptools
%if 0%{?suse_version}
Requires: ca-certificates
%endif
BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
%if 0%{?suse_version}
%if 0%{?suse_version} <= 1110
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%else
BuildRequires: ca-certificates
Requires: ca-certificates
%endif
%else
BuildArch: noarch
%endif
@@ -46,7 +48,7 @@ derived from Mozilla Firefox's canonical set.
%prep
%setup -q -n certifi-%{version}
%if 0%{?suse_version}
%if 0%{?suse_version} && 0%{?suse_version} > 1110
%patch0 -p1
%endif
@@ -55,7 +57,7 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%if 0%{?suse_version}
%if 0%{?suse_version} && 0%{?suse_version} > 1110
rm %{buildroot}/%{python_sitelib}/certifi/cacert.pem
%endif