From a53fc1a775aed18a196051ce882488e8d6d960cc11f53db9c24222a8107047a5 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 5 Jul 2023 07:47:20 +0000 Subject: [PATCH] - Clean up SPEC file. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-httplib2?expand=0&rev=102 --- python-httplib2.changes | 5 +++++ python-httplib2.spec | 21 ++++++++------------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/python-httplib2.changes b/python-httplib2.changes index 09d82cb..5d0f5d5 100644 --- a/python-httplib2.changes +++ b/python-httplib2.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Jul 5 07:47:13 UTC 2023 - Matej Cepl + +- Clean up SPEC file. + ------------------------------------------------------------------- Tue Jun 13 08:39:56 UTC 2023 - ecsos diff --git a/python-httplib2.spec b/python-httplib2.spec index 45d5eb4..8bacda6 100644 --- a/python-httplib2.spec +++ b/python-httplib2.spec @@ -26,7 +26,8 @@ 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) URL: https://github.com/httplib2/httplib2 Source: https://files.pythonhosted.org/packages/source/h/httplib2/httplib2-%{version}.tar.gz -BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: ca-certificates @@ -45,27 +46,21 @@ A comprehensive HTTP client library that supports many features left out of other HTTP libraries. %prep -%setup -q -n httplib2-%{version} +%autosetup -p1 -n httplib2-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with tests} %check -%if %{have_python2} -python2 python2/httplib2test.py -%endif -%if %{have_python3} -python3 python3/httplib2test.py -%endif -%endif +# Tests require network connection +# python3 python3/httplib2test.py %files %{python_files} -%{python_sitelib}/httplib2-%{version}-py*.egg-info +%{python_sitelib}/httplib2-%{version}*-info %{python_sitelib}/httplib2 %changelog