14
0

Accepting request 1273888 from devel:languages:python

- Switch to pyproject macros.
- No more greedy globs in %files.

OBS-URL: https://build.opensuse.org/request/show/1273888
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-tinyrecord?expand=0&rev=4
This commit is contained in:
2025-05-02 12:59:46 +00:00
committed by Git OBS Bridge
2 changed files with 13 additions and 6 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 2 03:22:45 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- No more greedy globs in %files.
-------------------------------------------------------------------
Wed Nov 3 07:48:26 UTC 2021 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -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