From 9a09d4417e299d914b7d4b9a2a79aa0ae3d7525f1142d95312b4c377cb3371ce Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 24 Jun 2025 02:23:39 +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-rcssmin?expand=0&rev=13 --- python-rcssmin.changes | 6 ++++++ python-rcssmin.spec | 16 ++++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/python-rcssmin.changes b/python-rcssmin.changes index 8d849a6..7c28bfd 100644 --- a/python-rcssmin.changes +++ b/python-rcssmin.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jun 24 02:22:10 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Fri Dec 8 16:25:02 UTC 2023 - Dirk Müller diff --git a/python-rcssmin.spec b/python-rcssmin.spec index 8d1107d..26d94a7 100644 --- a/python-rcssmin.spec +++ b/python-rcssmin.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-rcssmin # -# Copyright (c) 2023 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 @@ -25,11 +25,12 @@ Version: 1.1.2 Release: 0 Summary: RCSSmin is a CSS Minifier Written in Python License: Apache-2.0 -Group: Development/Languages/Python URL: http://opensource.perlig.de/rcssmin/ Source: https://files.pythonhosted.org/packages/source/r/%{mod_name}/%{mod_name}-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build @@ -60,17 +61,20 @@ HTML Documentation and examples for %name. %setup -q -n %{mod_name}-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install rm -rf %{buildroot}/usr/share/doc/rcssmin %files %{python_files} %defattr(-,root,root,-) %doc README.md docs/CHANGES %license LICENSE -%{python_sitearch}/* +%{python_sitearch}/%{mod_name}.py +%pycache_only %{python_sitearch}/__pycache__/%{mod_name}.*.pyc +%{python_sitearch}/_%{mod_name}.cpython-*-linux-gnu.so +%{python_sitearch}/%{mod_name}-%{version}.dist-info %files -n %{name}-docs %doc docs/_userdoc/