14
0

Accepting request 336575 from home:posophe:branches:devel:languages:python

OBS-URL: https://build.opensuse.org/request/show/336575
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=71
This commit is contained in:
Denisart Benjamin
2015-10-05 17:19:10 +00:00
committed by Git OBS Bridge
parent 50bec8800e
commit 53b6e29688
3 changed files with 111 additions and 0 deletions

View File

@@ -29,13 +29,17 @@ Source: http://pypi.python.org/packages/source/r/requests/requests-%{ver
Patch0: no-default-cacert.patch
# PATCH-FIX-OPENSUSE no-default-cacert-sles.patch -- completely ignore the internal CA bundle (SLES version)
Patch1: no-default-cacert-sles.patch
# PATCH-FIX-OPENSUSE requests-do-not-use-bundle.patch --use system libraries instead of bundled ones
Patch2: requests-do-not-use-bundle.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python
BuildRequires: python-devel
BuildRequires: python-py
BuildRequires: python-setuptools
Requires: python
Requires: python-chardet
Requires: python-py
Requires: python-urllib3
%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
@@ -75,6 +79,7 @@ sed -i '/^#!/d' ./requests/certs.py
%else
%patch1 -p1
%endif
%patch2 -p1
rm ./requests/cacert.pem
%build
@@ -88,6 +93,7 @@ python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -rf requests/packages
%files
%defattr(-,root,root)