diff --git a/python-pytimeparse.changes b/python-pytimeparse.changes index 304d569..3fe5269 100644 --- a/python-pytimeparse.changes +++ b/python-pytimeparse.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 11 05:56:42 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Sun Aug 16 21:09:10 UTC 2020 - John Vandenberg diff --git a/python-pytimeparse.spec b/python-pytimeparse.spec index c9b0957..b9db1ff 100644 --- a/python-pytimeparse.spec +++ b/python-pytimeparse.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytimeparse # -# 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 @@ -16,7 +16,6 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytimeparse Version: 1.1.8 Release: 0 @@ -25,8 +24,10 @@ License: MIT Group: Development/Languages/Python URL: https://github.com/wroberts/pytimeparse Source: https://files.pythonhosted.org/packages/source/p/pytimeparse/pytimeparse-%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -59,10 +60,10 @@ datetime module in the standard library. sed -i '/nose/d' setup.py %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -71,6 +72,7 @@ sed -i '/nose/d' setup.py %files %{python_files} %doc README.rst %license LICENSE.rst -%{python_sitelib}/* +%{python_sitelib}/pytimeparse +%{python_sitelib}/pytimeparse-%{version}.dist-info %changelog