From e2a10b462339c44d027591230d4c9edcf2380d4ee72df124dd5a4a75de5f9b63 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:20:03 +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-pymad?expand=0&rev=7 --- python-pymad.changes | 6 ++++++ python-pymad.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-pymad.changes b/python-pymad.changes index f616ac5..1407e1d 100644 --- a/python-pymad.changes +++ b/python-pymad.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 11 05:54:14 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Sun Oct 22 07:45:17 UTC 2023 - Luigi Baldoni diff --git a/python-pymad.spec b/python-pymad.spec index 02b6172..34c8f07 100644 --- a/python-pymad.spec +++ b/python-pymad.spec @@ -1,7 +1,7 @@ # # spec file for package python-pymad # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2025 SUSE LLC # Copyright (c) 2008 Pascal Bleser # # All modifications and additions to the file contributed by third parties @@ -22,11 +22,12 @@ Version: 0.11.3 Release: 0 Summary: Python Module to use the MPEG Audio Decoder Library License: LGPL-2.0-or-later -Group: Development/Libraries/Python URL: http://spacepants.org/src/pymad Source: https://files.pythonhosted.org/packages/source/p/pymad/pymad-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module wheel} BuildRequires: pkgconfig BuildRequires: python-rpm-macros BuildRequires: pkgconfig(mad) @@ -41,14 +42,15 @@ allowing to read PCM data from MPEG audio streams. %autosetup -p1 -n pymad-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %files %{python_files} %doc AUTHORS NEWS README.md THANKS %license COPYING -%{python_sitearch}/* +%{python_sitearch}/mad.cpython-*-linux-gnu.so +%{python_sitearch}/pymad-%{version}.dist-info %changelog