2007-01-16 00:34:01 +01:00
|
|
|
#
|
2011-12-12 10:02:24 +01:00
|
|
|
# spec file for package python-httplib2
|
2007-01-16 00:34:01 +01:00
|
|
|
#
|
2017-04-19 16:09:02 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:34:01 +01:00
|
|
|
#
|
2008-09-09 22:19:41 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:34:01 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2017-04-19 16:21:15 +02:00
|
|
|
# Tests require network connection
|
|
|
|
%bcond_with tests
|
2008-09-09 22:19:41 +02:00
|
|
|
|
2017-04-19 16:09:02 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2007-01-16 00:34:01 +01:00
|
|
|
Name: python-httplib2
|
2017-04-19 16:09:02 +02:00
|
|
|
Version: 0.10.3
|
2011-12-22 14:04:02 +01:00
|
|
|
Release: 0
|
2016-10-12 21:52:23 +02:00
|
|
|
Url: https://github.com/httplib2/httplib2
|
2012-01-27 17:11:01 +01:00
|
|
|
Summary: A Python HTTP client library
|
2012-07-09 12:56:49 +02:00
|
|
|
License: MIT and Apache-2.0 and (MPL-1.1 or GPL-2.0+ or LGPL-2.1+)
|
2007-01-16 00:34:01 +01:00
|
|
|
Group: Development/Libraries/Python
|
2017-04-20 00:24:01 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
2012-06-20 13:42:51 +02:00
|
|
|
# PATCH-FIX-OPENSUSE: Don't ship private copy of Mozilla NSS certs, use system certs instead (bnc#761162)
|
2013-07-03 14:43:31 +02:00
|
|
|
Patch0: httplib2-use-system-certs.patch
|
2017-04-19 16:09:02 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: python-rpm-macros
|
2017-04-19 16:21:15 +02:00
|
|
|
%if %{with tests}
|
|
|
|
# Test requirements (for ssl module):
|
|
|
|
BuildRequires: python
|
|
|
|
BuildRequires: python3
|
|
|
|
%endif
|
|
|
|
Requires: ca-certificates
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-08-13 23:50:37 +02:00
|
|
|
BuildArch: noarch
|
2017-04-19 16:09:02 +02:00
|
|
|
%python_subpackages
|
2007-01-16 00:34:01 +01:00
|
|
|
|
|
|
|
%description
|
2012-01-27 17:11:01 +01:00
|
|
|
A comprehensive HTTP client library that supports many features
|
|
|
|
left out of other HTTP libraries.
|
2007-01-16 00:34:01 +01:00
|
|
|
|
2017-04-19 16:09:02 +02:00
|
|
|
|
2007-01-16 00:34:01 +01:00
|
|
|
%prep
|
2013-03-22 14:33:59 +01:00
|
|
|
%setup -q -n httplib2-%{version}
|
2012-06-20 13:42:51 +02:00
|
|
|
%patch0 -p1
|
2007-01-16 00:34:01 +01:00
|
|
|
|
|
|
|
%build
|
2017-04-19 16:09:02 +02:00
|
|
|
%python_build
|
2007-01-16 00:34:01 +01:00
|
|
|
|
|
|
|
%install
|
2017-04-19 16:09:02 +02:00
|
|
|
%python_install
|
2007-01-16 00:34:01 +01:00
|
|
|
|
2017-04-19 16:21:15 +02:00
|
|
|
%if %{with tests}
|
|
|
|
%check
|
|
|
|
%if %have_python2
|
|
|
|
python2 python2/httplib2test.py
|
|
|
|
%endif
|
|
|
|
%if %have_python2
|
|
|
|
python3 python3/httplib2test.py
|
|
|
|
%endif
|
|
|
|
%endif
|
2012-07-17 10:25:57 +02:00
|
|
|
|
2017-04-19 16:09:02 +02:00
|
|
|
%files %{python_files}
|
2007-01-16 00:34:01 +01:00
|
|
|
%defattr(-,root,root)
|
2017-04-19 16:21:15 +02:00
|
|
|
%{python_sitelib}/httplib2-%{version}-py*.egg-info
|
2013-07-03 14:43:31 +02:00
|
|
|
%{python_sitelib}/httplib2
|
2007-01-16 00:34:01 +01:00
|
|
|
|
2008-09-09 22:19:41 +02:00
|
|
|
%changelog
|