forked from pool/python-httplib2
Accepting request 487690 from devel:languages:python:singlespec
1 OBS-URL: https://build.opensuse.org/request/show/487690 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httplib2?expand=0&rev=63
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-httplib2
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -16,8 +16,9 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-httplib2
|
||||
Version: 0.9.2
|
||||
Version: 0.10.3
|
||||
Release: 0
|
||||
Url: https://github.com/httplib2/httplib2
|
||||
Summary: A Python HTTP client library
|
||||
@@ -26,44 +27,41 @@ Group: Development/Libraries/Python
|
||||
Source: http://pypi.python.org/packages/source/h/httplib2/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
|
||||
# PATCH-FIX-UPSTREAM: speilicke@suse.com -- SSL certificate hostname mismatch is checked only once
|
||||
Patch1: httplib2-bnc-818100.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: python-devel
|
||||
#%%python_buildrequires
|
||||
# Test requirements (for ssl module):
|
||||
#BuildRequires: python
|
||||
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||
Requires: openssl-certs
|
||||
%else
|
||||
Requires: ca-certificates
|
||||
%endif
|
||||
%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
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%endif
|
||||
|
||||
#%%define _specdir /home/matejcik/obs/home:matejcik:messing-with-macros/python-httplib2
|
||||
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
A comprehensive HTTP client library that supports many features
|
||||
left out of other HTTP libraries.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -n httplib2-%{version}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
||||
%python_install
|
||||
|
||||
#%%check
|
||||
#python python2/httplib2test.py
|
||||
#python2 python2/httplib2test.py
|
||||
#python3 python3/httplib2test.py
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root)
|
||||
%{python_sitelib}/httplib2-%{version}-py%{py_ver}.egg-info
|
||||
%{python_sitelib}/httplib2-%{version}-py%{python_version}.egg-info
|
||||
%{python_sitelib}/httplib2
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user