14
0

- Don't ship private copy of Mozilla NSS certs, use system certs

instead (bnc#761162)

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httplib2?expand=0&rev=17
This commit is contained in:
Sascha Peilicke
2012-06-20 11:42:51 +00:00
committed by Git OBS Bridge
parent 7a36ed553e
commit 9e561e42a6
3 changed files with 63 additions and 7 deletions

View File

@@ -24,14 +24,17 @@ Summary: A Python HTTP client library
License: MIT
Group: Development/Libraries/Python
Source0: httplib2-%{version}.tar.gz
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
Patch0: httplib2-use-system-certs.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: ca-certificates
BuildRequires: python-devel
%if 0%{?suse_version}
%py_requires
%if 0%{?suse_version} > 1110
Requires: ca-certificates
%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
BuildArch: noarch
%endif
%endif
%description
A comprehensive HTTP client library that supports many features
@@ -39,15 +42,17 @@ left out of other HTTP libraries.
%prep
%setup -q -n httplib2-%{version}
%patch0 -p1
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files -f INSTALLED_FILES
%files
%defattr(-,root,root)
%doc CHANGELOG README
%doc README
%{python_sitelib}/*
%changelog