From f1b75adf6ae6b0500fc414260d2bfb0d21f07a5981f06b86d356989a1a3d0895 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 12 Jun 2025 05:10:08 +0000 Subject: [PATCH] - Switch to pyproject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ujson?expand=0&rev=53 --- python-ujson.changes | 5 +++++ python-ujson.spec | 15 ++++++++------- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/python-ujson.changes b/python-ujson.changes index 460f0ef..dcbb8b0 100644 --- a/python-ujson.changes +++ b/python-ujson.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 12 05:01:35 UTC 2025 - Steve Kowalik + +- Switch to pyproject macros. + ------------------------------------------------------------------- Thu Jun 13 15:43:08 UTC 2024 - Dirk Müller diff --git a/python-ujson.spec b/python-ujson.spec index b402790..ec4e954 100644 --- a/python-ujson.spec +++ b/python-ujson.spec @@ -1,7 +1,7 @@ # # spec file for package python-ujson # -# Copyright (c) 2024 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 @@ -25,9 +25,11 @@ License: BSD-3-Clause URL: https://github.com/esnme/ultrajson Source: https://files.pythonhosted.org/packages/source/u/ujson/ujson-%{version}.tar.gz BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRequires: %{python_module pytest} BuildRequires: %{python_module setuptools_scm} BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} BuildRequires: double-conversion-devel BuildRequires: fdupes BuildRequires: gcc-c++ @@ -40,18 +42,17 @@ An ultrafast JSON encoder and decoder written in pure C with bindings for Python 2.7 and 3.8+ %prep -%setup -q -n ujson-%{version} -%autopatch -p1 +%autosetup -p1 -n ujson-%{version} %build rm -r deps export CFLAGS="%{optflags} -fno-strict-aliasing" export UJSON_BUILD_DC_INCLUDES='%{_includedir}/double-conversion' export UJSON_BUILD_DC_LIBS='-ldouble-conversion' -%python_build +%pyproject_wheel %install -%python_install +%pyproject_install %python_expand %fdupes %{buildroot}%{$python_sitearch} %check @@ -59,7 +60,7 @@ export UJSON_BUILD_DC_LIBS='-ldouble-conversion' %files %{python_files} %doc README.md -%{python_sitearch}/ujson.* -%{python_sitearch}/ujson-%{version}*-info +%{python_sitearch}/ujson.cpython-*-linux-gnu.so +%{python_sitearch}/ujson-%{version}.dist-info %changelog