14
0

Accepting request 210031 from 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. (forwarded request 210028 from vuntz)

OBS-URL: https://build.opensuse.org/request/show/210031
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-requests?expand=0&rev=17
This commit is contained in:
Stephan Kulow
2013-12-10 08:34:52 +00:00
committed by Git OBS Bridge
parent f92d834cf4
commit 7840e5564a
3 changed files with 67 additions and 0 deletions

View File

@@ -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