Compare commits
6 Commits
Author | SHA256 | Date | |
---|---|---|---|
b6576fc7a9 | |||
3b85a8f387 | |||
a6edd20665 | |||
a53fc1a775 | |||
7eb7b97d1c | |||
d3c3ca6173 |
@@ -1,3 +1,18 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 2 22:31:23 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
- require setuptools
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 5 07:47:13 UTC 2023 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Clean up SPEC file.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jun 13 08:39:56 UTC 2023 - ecsos <ecsos@opensuse.org>
|
||||||
|
|
||||||
|
- Add %{?sle15_python_module_pythons}
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Mar 26 20:02:41 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
Sun Mar 26 20:02:41 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-httplib2
|
# spec file for package python-httplib2
|
||||||
#
|
#
|
||||||
# Copyright (c) 2023 SUSE LLC
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,9 +16,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
# Tests require network connection
|
# Tests require network connection
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
Name: python-httplib2
|
Name: python-httplib2
|
||||||
Version: 0.22.0
|
Version: 0.22.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -26,7 +26,9 @@ Summary: A Python HTTP client library
|
|||||||
License: Apache-2.0 AND MIT AND (GPL-2.0-or-later OR MPL-1.1 OR LGPL-2.1-or-later)
|
License: Apache-2.0 AND MIT AND (GPL-2.0-or-later OR MPL-1.1 OR LGPL-2.1-or-later)
|
||||||
URL: https://github.com/httplib2/httplib2
|
URL: https://github.com/httplib2/httplib2
|
||||||
Source: https://files.pythonhosted.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: ca-certificates
|
Requires: ca-certificates
|
||||||
@@ -45,27 +47,21 @@ A comprehensive HTTP client library that supports many features
|
|||||||
left out of other HTTP libraries.
|
left out of other HTTP libraries.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n httplib2-%{version}
|
%autosetup -p1 -n httplib2-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%if %{with tests}
|
|
||||||
%check
|
%check
|
||||||
%if %{have_python2}
|
# Tests require network connection
|
||||||
python2 python2/httplib2test.py
|
# python3 python3/httplib2test.py
|
||||||
%endif
|
|
||||||
%if %{have_python3}
|
|
||||||
python3 python3/httplib2test.py
|
|
||||||
%endif
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%{python_sitelib}/httplib2-%{version}-py*.egg-info
|
%{python_sitelib}/httplib2-%{version}*-info
|
||||||
%{python_sitelib}/httplib2
|
%{python_sitelib}/httplib2
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user