diff --git a/python-tinyrecord.changes b/python-tinyrecord.changes index 37eebb7..8be16be 100644 --- a/python-tinyrecord.changes +++ b/python-tinyrecord.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 2 03:22:45 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Wed Nov 3 07:48:26 UTC 2021 - Steve Kowalik diff --git a/python-tinyrecord.spec b/python-tinyrecord.spec index 4e5c53b..fb4a4e0 100644 --- a/python-tinyrecord.spec +++ b/python-tinyrecord.spec @@ -1,7 +1,7 @@ # # spec file for package python-tinyrecord # -# Copyright (c) 2021 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,19 +16,19 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} %global skip_python2 1 Name: python-tinyrecord Version: 0.2.0 Release: 0 Summary: Atomic transactions for TinyDB License: MIT -Group: Development/Languages/Python URL: https://github.com/eugene-eeo/tinyrecord Source: https://github.com/eugene-eeo/tinyrecord/archive/v%{version}.tar.gz +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} BuildRequires: %{python_module tinydb} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-tinydb @@ -43,10 +43,10 @@ Atomic transactions for TinyDB. %setup -q -n tinyrecord-%{version} %build -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitelib} %check @@ -55,6 +55,7 @@ Atomic transactions for TinyDB. %files %{python_files} %license LICENSE %doc README.rst -%{python_sitelib}/* +%{python_sitelib}/tinyrecord +%{python_sitelib}/tinyrecord-%{version}.dist-info %changelog