From d26ca09d70f314761207604ad18372d436e3b7421409947bb8e3020c52046f06 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 05:39:20 +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-acefile?expand=0&rev=10 --- python-acefile.changes | 6 ++++++ python-acefile.spec | 14 +++++++++----- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/python-acefile.changes b/python-acefile.changes index 9f35ffa..a90264e 100644 --- a/python-acefile.changes +++ b/python-acefile.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 13 05:35:23 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Tue Nov 19 12:04:15 UTC 2024 - Dirk Müller diff --git a/python-acefile.spec b/python-acefile.spec index e1b3dfd..8c3dbe6 100644 --- a/python-acefile.spec +++ b/python-acefile.spec @@ -1,7 +1,7 @@ # # spec file for package python-acefile # -# 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 @@ -17,7 +17,6 @@ %define skip_python2 1 -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-acefile Version: 0.6.13 Release: 0 @@ -27,7 +26,9 @@ Group: Development/Languages/Python URL: https://www.roe.ch/acefile Source: https://files.pythonhosted.org/packages/source/a/acefile/acefile-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-setuptools @@ -44,10 +45,10 @@ sed -i '1 {/^#!/d}' acefile.py %build export CFLAGS="%{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_clone -a %{buildroot}%{_bindir}/acefile-unace %python_expand %fdupes %{buildroot}%{$python_sitearch} @@ -61,7 +62,10 @@ export CFLAGS="%{optflags}" %doc NEWS.md README.md %license LICENSE.md %python_alternative %{_bindir}/acefile-unace -%{python_sitearch}/* +%{python_sitearch}/acefile.py +%pycache_only %{python_sitearch}/__pycache__/acefile.*.pyc +%{python_sitearch}/acebitstream.cpython-*-linux-gnu.so +%{python_sitearch}/acefile-%{version}.dist-info %check # no testsuite found