forked from pool/python-requests
Accepting request 184322 from devel:languages:python
- Add no-default-cacert.patch: completely ignore the internal CA bundle and point to /etc/ssl/certs/. This works because we patched python to do the right thing when a directory is used there instead of a file. - Manually remove requests/cacert.pem (better than doing that in the patch, since it's big) too. (forwarded request 184317 from vuntz) OBS-URL: https://build.opensuse.org/request/show/184322 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=13
This commit is contained in:
committed by
Git OBS Bridge
parent
d405eaba73
commit
2f9f75aedd
@@ -25,6 +25,8 @@ License: Apache-2.0 and LGPL-2.1+ and MIT
|
||||
Group: Development/Languages/Python
|
||||
#TODO/FIXME: Maybe split out charade and urllib3 into sub-packages to simplify:
|
||||
Source: http://pypi.python.org/packages/source/r/requests/requests-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE no-default-cacert.patch -- completely ignore the internal CA bundle
|
||||
Patch0: no-default-cacert.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python
|
||||
BuildRequires: python-devel
|
||||
@@ -64,6 +66,8 @@ Features:
|
||||
%setup -q -n requests-%{version}
|
||||
# For rpmlint warning: remove shebang from python library:
|
||||
sed -i '/^#!/d' ./requests/certs.py
|
||||
%patch0 -p1
|
||||
rm ./requests/cacert.pem
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
|
Reference in New Issue
Block a user