forked from pool/python-ujson
- Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ujson?expand=0&rev=53
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Jun 12 05:01:35 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||||
|
|
||||||
|
- Switch to pyproject macros.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Jun 13 15:43:08 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
Thu Jun 13 15:43:08 UTC 2024 - Dirk Müller <dmueller@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-ujson
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -25,9 +25,11 @@ License: BSD-3-Clause
|
|||||||
URL: https://github.com/esnme/ultrajson
|
URL: https://github.com/esnme/ultrajson
|
||||||
Source: https://files.pythonhosted.org/packages/source/u/ujson/ujson-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/u/ujson/ujson-%{version}.tar.gz
|
||||||
BuildRequires: %{python_module devel}
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools_scm}
|
BuildRequires: %{python_module setuptools_scm}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
|
BuildRequires: %{python_module wheel}
|
||||||
BuildRequires: double-conversion-devel
|
BuildRequires: double-conversion-devel
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
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+
|
bindings for Python 2.7 and 3.8+
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n ujson-%{version}
|
%autosetup -p1 -n ujson-%{version}
|
||||||
%autopatch -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
rm -r deps
|
rm -r deps
|
||||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
||||||
export UJSON_BUILD_DC_INCLUDES='%{_includedir}/double-conversion'
|
export UJSON_BUILD_DC_INCLUDES='%{_includedir}/double-conversion'
|
||||||
export UJSON_BUILD_DC_LIBS='-ldouble-conversion'
|
export UJSON_BUILD_DC_LIBS='-ldouble-conversion'
|
||||||
%python_build
|
%pyproject_wheel
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_install
|
%pyproject_install
|
||||||
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
@@ -59,7 +60,7 @@ export UJSON_BUILD_DC_LIBS='-ldouble-conversion'
|
|||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%doc README.md
|
%doc README.md
|
||||||
%{python_sitearch}/ujson.*
|
%{python_sitearch}/ujson.cpython-*-linux-gnu.so
|
||||||
%{python_sitearch}/ujson-%{version}*-info
|
%{python_sitearch}/ujson-%{version}.dist-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user