# SPDX-FileCopyrightText: (C) 2025 Institute of Software, Chinese Academy of Sciences (ISCAS) # SPDX-FileCopyrightText: (C) 2025 openRuyi Project Contributors # SPDX-FileContributor: Zheng Junjie # SPDX-FileContributor: laokz # SPDX-FileContributor: yyjeqhc # # SPDX-License-Identifier: MulanPSL-2.0 %global srcname simplejson Name: python-%{srcname} Version: 3.17.6 Release: %autorelease Summary: Json library for Python License: AFL-2.1 OR MIT URL: https://simplejson.readthedocs.io/en/latest #!RemoteAsset: sha256:cf98038d2abf63a1ada5730e91e84c642ba6c225b0198c3684151b1f80c5f8a6 Source0: https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz BuildSystem: pyproject BuildOption(install): -l %{srcname} # skip the tests which use python2. BuildOption(check): -e simplejson.ordered_dict BuildRequires: pyproject-rpm-macros BuildRequires: pkgconfig(python3) BuildRequires: python3dist(pip) BuildRequires: python3dist(setuptools) Provides: python3-%{srcname} %python_provide python3-%{srcname} %description JSON (JavaScript Object Notation) is a subset of JavaScript syntax (ECMA-262 3rd edition) used as a lightweight data interchange format. Simplejson exposes an API familiar to users of the standard library marshal and pickle modules. It is the externally maintained version of the json library contained in Python 2.6, but maintains compatibility with Python 2.5 and (currently) has significant performance advantages, even without using the optional C extension for speedups. Simplejson is also supported on Python 3.3+. %generate_buildrequires %pyproject_buildrequires %files -f %{pyproject_files} %license LICENSE* %doc README* %changelog %autochangelog