From 5c6cc1c715dc7e4c0d88d443aab8426f452b5ce0e9caaab126d7bf9224c4fae9 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 16 Jun 2025 06:18:29 +0000 Subject: [PATCH] - Switch to pyroject macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cachetools?expand=0&rev=49 --- python-cachetools.changes | 6 ++++++ python-cachetools.spec | 9 ++++++--- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/python-cachetools.changes b/python-cachetools.changes index fc73346..2dece58 100644 --- a/python-cachetools.changes +++ b/python-cachetools.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jun 16 06:12:36 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Mon Feb 24 08:18:44 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-cachetools.spec b/python-cachetools.spec index e186d3b..7572c22 100644 --- a/python-cachetools.spec +++ b/python-cachetools.spec @@ -25,7 +25,9 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/tkem/cachetools Source: https://files.pythonhosted.org/packages/source/c/cachetools/cachetools-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -40,10 +42,10 @@ function decorator. %setup -q -n cachetools-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -52,6 +54,7 @@ function decorator. %files %{python_files} %license LICENSE %doc CHANGELOG.rst README.rst -%{python_sitelib}/* +%{python_sitelib}/cachetools +%{python_sitelib}/cachetools-%{version}.dist-info %changelog