From f70a1eb1569b76214b1aa0951a2cbcf1c598927f2089ece26739e01eb0ee7316 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 13 Jun 2025 02:53:06 +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-web_cache?expand=0&rev=11 --- python-web_cache.changes | 6 ++++++ python-web_cache.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-web_cache.changes b/python-web_cache.changes index 7b72a84..6d27d18 100644 --- a/python-web_cache.changes +++ b/python-web_cache.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Jun 13 02:43:24 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Wed Jun 3 10:19:53 UTC 2020 - pgajdos@suse.com diff --git a/python-web_cache.spec b/python-web_cache.spec index 89baef7..f873ba6 100644 --- a/python-web_cache.spec +++ b/python-web_cache.spec @@ -1,7 +1,7 @@ # # spec file for package python-web_cache # -# Copyright (c) 2020 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-web_cache Version: 1.1.0 Release: 0 @@ -25,7 +24,9 @@ Summary: Persistent cache storage python module License: LGPL-2.1-only URL: https://github.com/desbma/web_cache Source: https://github.com/desbma/web_cache/archive/%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: %{pythons} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -43,10 +44,10 @@ strategies and optional compression. %setup -q -n web_cache-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -55,6 +56,7 @@ strategies and optional compression. %files %{python_files} %doc README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/web_cache +%{python_sitelib}/web_cache-%{version}.dist-info %changelog