From 5b23c35d36a5b4de034889bfa9222a77df92373194ffb03ae1c955ddd6fe5dc1 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 02:56:58 +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-whichcraft?expand=0&rev=16 --- python-whichcraft.changes | 6 ++++++ python-whichcraft.spec | 13 ++++++++----- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/python-whichcraft.changes b/python-whichcraft.changes index 84f7cb4..e11cb5f 100644 --- a/python-whichcraft.changes +++ b/python-whichcraft.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 13 02:44:26 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Wed May 10 08:44:44 UTC 2023 - Johannes Kastl diff --git a/python-whichcraft.spec b/python-whichcraft.spec index d6b3b25..82caaa7 100644 --- a/python-whichcraft.spec +++ b/python-whichcraft.spec @@ -1,7 +1,7 @@ # # spec file for package python-whichcraft # -# 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 @@ -22,10 +22,11 @@ Version: 0.6.1 Release: 0 Summary: Cross-python shutil.which functionality License: BSD-3-Clause -Group: Development/Languages/Python URL: https://github.com/pydanny/whichcraft Source: https://files.pythonhosted.org/packages/source/w/whichcraft/whichcraft-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -44,10 +45,10 @@ Python 3 code that was extracted from source. %setup -q -n whichcraft-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -56,6 +57,8 @@ Python 3 code that was extracted from source. %files %{python_files} %license LICENSE %doc AUTHORS.rst HISTORY.rst README.rst -%{python_sitelib}/* +%{python_sitelib}/whichcraft.py +%pycache_only %{python_sitelib}/__pycache__/whichcraft.*.pyc +%{python_sitelib}/whichcraft-%{version}.dist-info %changelog