From 0fc11f412b0f8f08fb33a281520097a21620343d29c16ecda5c3f39f99b62649 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 25 Sep 2024 02:45:10 +0000 Subject: [PATCH] - Update URL. - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-gear?expand=0&rev=21 --- python-gear.changes | 7 +++++++ python-gear.spec | 13 +++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/python-gear.changes b/python-gear.changes index 3cd4453..9667c3e 100644 --- a/python-gear.changes +++ b/python-gear.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Sep 25 02:44:53 UTC 2024 - Steve Kowalik + +- Update URL. +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Mon May 6 10:51:00 UTC 2024 - Daniel Garcia diff --git a/python-gear.spec b/python-gear.spec index 301cb56..6bdf8a8 100644 --- a/python-gear.spec +++ b/python-gear.spec @@ -16,18 +16,17 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-gear Version: 0.16.0 Release: 0 Summary: Pure Python Async Gear Protocol Library License: Apache-2.0 -Group: Development/Languages/Python -URL: https://github.com/openstack-infra/gear +URL: https://opendev.org/opendev/gear Source: https://files.pythonhosted.org/packages/source/g/gear/gear-%{version}.tar.gz BuildRequires: %{python_module extras} BuildRequires: %{python_module fixtures >= 0.3.12} BuildRequires: %{python_module pbr >= 1.8.0} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pyOpenSSL} BuildRequires: %{python_module python-daemon >= 2.0.4} BuildRequires: %{python_module python-subunit} @@ -37,6 +36,7 @@ BuildRequires: %{python_module testrepository >= 0.0.13} BuildRequires: %{python_module testresources} BuildRequires: %{python_module testscenarios} BuildRequires: %{python_module testtools >= 0.9.27} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-extras @@ -59,10 +59,10 @@ sed -i '9,13d' setup.cfg %endif %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %python_clone -a %{buildroot}%{_bindir}/geard @@ -78,7 +78,8 @@ sed -i '9,13d' setup.cfg %files %{python_files} %license LICENSE %doc README.rst ChangeLog AUTHORS -%{python_sitelib}/* +%{python_sitelib}/gear +%{python_sitelib}/gear-%{version}.dist-info %python_alternative %{_bindir}/geard %changelog