forked from pool/python-requests
Accepting request 210028 from home:vuntz:branches:devel:languages:python
- Add no-default-cacert-sles.patch: use this patch when building for SLES, since python in SLES and openSUSE behave differently when it comes to SSL, and no-default-cacert.patch is wrong for SLES. OBS-URL: https://build.opensuse.org/request/show/210028 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests?expand=0&rev=44
This commit is contained in:
committed by
Git OBS Bridge
parent
221f6069f7
commit
c2a2f1bd4b
@@ -27,6 +27,8 @@ Group: Development/Languages/Python
|
||||
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
|
||||
# PATCH-FIX-OPENSUSE no-default-cacert-sles.patch -- completely ignore the internal CA bundle (SLES version)
|
||||
Patch1: no-default-cacert-sles.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python
|
||||
BuildRequires: python-devel
|
||||
@@ -66,7 +68,11 @@ Features:
|
||||
%setup -q -n requests-%{version}
|
||||
# For rpmlint warning: remove shebang from python library:
|
||||
sed -i '/^#!/d' ./requests/certs.py
|
||||
%if %suse_version > 1110
|
||||
%patch0 -p1
|
||||
%else
|
||||
%patch1 -p1
|
||||
%endif
|
||||
rm ./requests/cacert.pem
|
||||
|
||||
%build
|
||||
|
Reference in New Issue
Block a user