From 2a922c08c07c6ba610ce98afb0ffa7bd88356b95e84a2f9e568dea00fdbb1be6 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 2 May 2025 03:35:48 +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-cbor?expand=0&rev=4 --- python-cbor.changes | 6 ++++++ python-cbor.spec | 14 +++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-cbor.changes b/python-cbor.changes index 028547d..d600c67 100644 --- a/python-cbor.changes +++ b/python-cbor.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri May 2 03:35:18 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Mon Apr 1 10:49:33 UTC 2019 - Tomáš Chvátal diff --git a/python-cbor.spec b/python-cbor.spec index b70dc5f..22fbca4 100644 --- a/python-cbor.spec +++ b/python-cbor.spec @@ -1,7 +1,7 @@ # # spec file for package python-cbor # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# 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,21 +16,20 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cbor Version: 1.0.0 Release: 0 Summary: RFC 7049 - Concise Binary Object Representation License: Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/brianolson/cbor_py Source: https://files.pythonhosted.org/packages/source/c/cbor/cbor-%{version}.tar.gz Source1: https://raw.githubusercontent.com/brianolson/cbor_py/master/LICENSE BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros -Requires: python-base %python_subpackages %description @@ -42,14 +41,15 @@ cp %{SOURCE1} . %build export CFLAGS="-fno-strict-aliasing %{optflags}" -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %files %{python_files} %license LICENSE -%{python_sitearch}/* +%{python_sitearch}/cbor +%{python_sitearch}/cbor-%{version}.dist-info %changelog