forked from pool/python-ujson
- update to 4.3.0 * Enable Windows on ARM64 target (#488) @nsait-linaro - Release 4.2.0 * Add a default keyword argument to dumps (#470) @garenchan * Add support for Python 3.10 (#472) @hugovk * Build 32-bit wheels for Windows (#481) @hugovk * Build PyPy3 wheels for manylinux (#475) @hugovk * Build wheels for musl aarch64 (aka ARM) Linux (musllinux_1_1_aarch64) (#478) @bwoodsend * Build wheels for musl Linux (musllinux_1_1_x86_64) (#476) @bwoodsend * Use declarative setup metadata (#477) @hugovk * Wheel building updates (#473) @hugovk * Rename master to main (#471) @hugovk * Replace README.rst with Markdown (#479) @hugovk - Release 4.1.0 * Add gcov coverage testing for C code (#457) @bwoodsend * Test Python 3.10-dev (#454) @hugovk * Remove unused variable (#459) @hugovk * Remove explicit handling of manylinux platform tag (#452) @bwoodsend * dconv no longer uses global instances of StringToDoubleConverter and (#469) @das-intensity * Switch shebang for the manylinux-wheels script (#465) @bwoodsend * Fix typos in error message (#449) @filipsalomonsson - refresh python-ujson-system-double-conversion.patch - Update requirements: removes unmaintained blist OBS-URL: https://build.opensuse.org/request/show/939939 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ujson?expand=0&rev=29
66 lines
1.9 KiB
RPMSpec
66 lines
1.9 KiB
RPMSpec
#
|
|
# spec file for package python-ujson
|
|
#
|
|
# Copyright (c) 2021 SUSE LLC
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%{?!python_module:%define python_module() python3-%{**}}
|
|
%define skip_python2 1
|
|
Name: python-ujson
|
|
Version: 4.3.0
|
|
Release: 0
|
|
Summary: JSON encoder and decoder for Python
|
|
License: BSD-3-Clause
|
|
URL: https://github.com/esnme/ultrajson
|
|
Source: https://files.pythonhosted.org/packages/source/u/ujson/ujson-%{version}.tar.gz
|
|
# unbundle double-conversion (https://github.com/ultrajson/ultrajson/issues/375)
|
|
Patch0: python-ujson-system-double-conversion.patch
|
|
BuildRequires: %{python_module devel}
|
|
BuildRequires: %{python_module pytest}
|
|
BuildRequires: %{python_module setuptools_scm}
|
|
BuildRequires: %{python_module setuptools}
|
|
BuildRequires: double-conversion-devel
|
|
BuildRequires: fdupes
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: python-rpm-macros
|
|
%python_subpackages
|
|
|
|
%description
|
|
An ultrafast JSON encoder and decoder written in pure C with
|
|
bindings for Python 2.7 and 3.5+
|
|
|
|
%prep
|
|
%setup -q -n ujson-%{version}
|
|
%autopatch -p1
|
|
|
|
%build
|
|
rm -r deps
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
%python_build
|
|
|
|
%install
|
|
%python_install
|
|
%python_expand %fdupes %{buildroot}%{$python_sitearch}
|
|
|
|
%check
|
|
%pytest_arch
|
|
|
|
%files %{python_files}
|
|
%doc README.md
|
|
%{python_sitearch}/ujson.*
|
|
%{python_sitearch}/ujson-%{version}*-info
|
|
|
|
%changelog
|