From 5d962247ee743703371ace1bb5f30c030dba2294d9afa844cee4cf6620264bee Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:21:23 +0000 Subject: [PATCH] - Switch to pyproject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-py-radix?expand=0&rev=13 --- python-py-radix.changes | 6 ++++++ python-py-radix.spec | 11 +++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/python-py-radix.changes b/python-py-radix.changes index 6e35dd1..de0c055 100644 --- a/python-py-radix.changes +++ b/python-py-radix.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 11 05:54:36 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Fri Jul 26 13:36:59 UTC 2024 - Dominique Leuenberger diff --git a/python-py-radix.spec b/python-py-radix.spec index 03d195c..e434043 100644 --- a/python-py-radix.spec +++ b/python-py-radix.spec @@ -1,7 +1,7 @@ # # spec file for package python-py-radix # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,7 +28,9 @@ Source: https://files.pythonhosted.org/packages/source/p/py-radix/py-rad # PATCH-FIX-UPSTREAM - Change incompatible pointer type from RadixNodeObject to PyObject Patch0: https://github.com/mjschultz/py-radix/pull/58.patch BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros %python_subpackages @@ -48,15 +50,16 @@ This package includes the C-extension. %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %files %{python_files} %doc README.rst %license LICENSE -%{python_sitearch}/* +%{python_sitearch}/radix +%{python_sitearch}/py_radix-%{version}.dist-info %changelog