From 5de4f9cc8e3cb0859e02526c68222b859c709a7c679bc240c23215400964bd35 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 4 Jun 2025 06:17:43 +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-timeout-decorator?expand=0&rev=5 --- python-timeout-decorator.changes | 6 ++++++ python-timeout-decorator.spec | 12 +++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/python-timeout-decorator.changes b/python-timeout-decorator.changes index 7ccb7b9..2648fad 100644 --- a/python-timeout-decorator.changes +++ b/python-timeout-decorator.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 4 06:09:43 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Fri May 12 11:54:22 UTC 2023 - Dirk Müller diff --git a/python-timeout-decorator.spec b/python-timeout-decorator.spec index b603bbc..6f51c8b 100644 --- a/python-timeout-decorator.spec +++ b/python-timeout-decorator.spec @@ -1,7 +1,7 @@ # # spec file for package python-timeout-decorator # -# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-timeout-decorator Version: 0.5.0 Release: 0 @@ -28,8 +27,10 @@ Source: https://files.pythonhosted.org/packages/source/t/timeout-decorat Source1: https://raw.githubusercontent.com/pnpnpn/timeout-decorator/master/tests/test_timeout_decorator.py # https://github.com/pnpnpn/timeout-decorator/issues/68 Source2: https://raw.githubusercontent.com/pnpnpn/timeout-decorator/master/LICENSE.txt +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -43,10 +44,10 @@ Python timeout decorator. cp %{SOURCE1} %{SOURCE2} . %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -55,6 +56,7 @@ cp %{SOURCE1} %{SOURCE2} . %files %{python_files} %doc CHANGES.rst README.rst %license LICENSE.txt -%{python_sitelib}/* +%{python_sitelib}/timeout_decorator +%{python_sitelib}/timeout_decorator-%{version}.dist-info %changelog