forked from pool/python-requests
- Load directory-based cert store in openSUSE >= 12.2
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=18
This commit is contained in:
@@ -25,6 +25,8 @@ Summary: Awesome Python HTTP Library That's Actually Usable
|
||||
License: ISC
|
||||
Group: Development/Languages/Python
|
||||
Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE requests-use_directory_cert_store.patch [bnc#761501] -- Load directory-based cert store in /etc/ssl/certs. Depends on Python patched to allow it
|
||||
Patch0: requests-use_directory_cert_store.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python
|
||||
BuildRequires: python-devel
|
||||
@@ -32,9 +34,12 @@ BuildRequires: python-distribute
|
||||
BuildRequires: python-chardet
|
||||
BuildRequires: python-oauthlib
|
||||
Requires: python
|
||||
Requires: python-certifi
|
||||
Requires: python-chardet
|
||||
Requires: python-oauthlib
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1220
|
||||
BuildRequires: python-certifi
|
||||
Requires: python-certifi
|
||||
%endif
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||
%else
|
||||
@@ -67,6 +72,9 @@ Features:
|
||||
|
||||
%prep
|
||||
%setup -q -n requests-%{version}
|
||||
%if 0%{?suse_version} && 0%{?suse_version} < 1220
|
||||
%patch0 -p1
|
||||
%endif
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
|
Reference in New Issue
Block a user