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
|
|
|
#
|
2020-04-06 16:34:13 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
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.
|
|
|
|
|
2019-08-24 09:37:13 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:34:01 +01:00
|
|
|
#
|
|
|
|
|
2018-01-09 12:05:33 +01:00
|
|
|
|
2019-10-09 12:47:58 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-04-19 16:21:15 +02:00
|
|
|
# Tests require network connection
|
|
|
|
%bcond_with tests
|
2007-01-16 00:34:01 +01:00
|
|
|
Name: python-httplib2
|
2020-04-29 12:55:11 +02:00
|
|
|
Version: 0.17.3
|
2011-12-22 14:04:02 +01:00
|
|
|
Release: 0
|
2012-01-27 17:11:01 +01:00
|
|
|
Summary: A Python HTTP client library
|
2019-08-24 09:37:13 +02:00
|
|
|
License: MIT AND Apache-2.0 AND (MPL-1.1 OR GPL-2.0-or-later OR LGPL-2.1-or-later)
|
2019-10-09 12:47:58 +02:00
|
|
|
URL: https://github.com/httplib2/httplib2
|
2017-04-20 00:24:01 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
2017-04-19 16:09:02 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-08-24 09:37:13 +02:00
|
|
|
BuildRequires: fdupes
|
2017-04-19 16:09:02 +02:00
|
|
|
BuildRequires: python-rpm-macros
|
2019-10-09 12:47:58 +02:00
|
|
|
Requires: ca-certificates
|
|
|
|
Requires: python-certifi
|
|
|
|
BuildArch: noarch
|
2017-04-19 16:21:15 +02:00
|
|
|
%if %{with tests}
|
|
|
|
# Test requirements (for ssl module):
|
|
|
|
BuildRequires: python
|
|
|
|
BuildRequires: python3
|
|
|
|
%endif
|
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
|
|
|
|
|
|
|
%prep
|
2013-03-22 14:33:59 +01:00
|
|
|
%setup -q -n httplib2-%{version}
|
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
|
2019-08-24 09:37:13 +02:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2007-01-16 00:34:01 +01:00
|
|
|
|
2017-04-19 16:21:15 +02:00
|
|
|
%if %{with tests}
|
|
|
|
%check
|
2019-10-09 12:47:58 +02:00
|
|
|
%if %{have_python2}
|
2017-04-19 16:21:15 +02:00
|
|
|
python2 python2/httplib2test.py
|
|
|
|
%endif
|
2019-10-09 12:47:58 +02:00
|
|
|
%if %{have_python3}
|
2017-04-19 16:21:15 +02:00
|
|
|
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}
|
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
|