From 12f3fe26f6047076cc2b2c52c5e0ce224e794e7c3a4608d5541870b829f5b5d8 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 2 May 2025 03:23:14 +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-tinyrecord?expand=0&rev=6 --- python-tinyrecord.changes | 6 ++++++ python-tinyrecord.spec | 13 +++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) 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