From bb018c83d0ff9116cb29922406984f698fce3527a7587083173643a1235a5213 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Jun 2025 06:31:00 +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-py-ubjson?expand=0&rev=13 --- python-py-ubjson.changes | 6 ++++++ python-py-ubjson.spec | 14 ++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/python-py-ubjson.changes b/python-py-ubjson.changes index 081fa1b..27141b1 100644 --- a/python-py-ubjson.changes +++ b/python-py-ubjson.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Jun 11 05:57:23 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. +- No more greedy globs in %files. + ------------------------------------------------------------------- Thu Apr 22 20:14:34 UTC 2021 - Dirk Müller diff --git a/python-py-ubjson.spec b/python-py-ubjson.spec index 03d11f0..9456962 100644 --- a/python-py-ubjson.spec +++ b/python-py-ubjson.spec @@ -1,7 +1,7 @@ # # spec file for package python-py-ubjson # -# 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-%{**}} %define modname py-ubjson Name: python-py-ubjson Version: 0.16.1 Release: 0 Summary: Universal Binary JSON encoder/decoder License: Apache-2.0 -Group: Development/Languages/Python URL: https://github.com/Iotic-Labs/py-ubjson Source: https://files.pythonhosted.org/packages/source/p/py-ubjson/%{modname}-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: fdupes BuildRequires: python-rpm-macros %python_subpackages @@ -41,17 +41,19 @@ encoder/decoder based on the `draft-12` specification. %setup -q -n %{modname}-%{version} %build -%python_build +%pyproject_wheel %check touch test/__init__.py %pytest test/test.py %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %files %{python_files} -%{python_sitearch}/* +%{python_sitearch}/ubjson +%{python_sitearch}/_ubjson.cpython-*-linux-gnu.so +%{python_sitearch}/py_ubjson-%{version}.dist-info %changelog