Compare commits
No commits in common. "rawhide" and "f41" have entirely different histories.
3 changed files with 32 additions and 15 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -24,4 +24,3 @@
|
||||||
/orjson-3.11.1-filtered.tar.xz
|
/orjson-3.11.1-filtered.tar.xz
|
||||||
/orjson-3.11.2-filtered.tar.xz
|
/orjson-3.11.2-filtered.tar.xz
|
||||||
/orjson-3.11.3-filtered.tar.xz
|
/orjson-3.11.3-filtered.tar.xz
|
||||||
/orjson-3.11.4-filtered.tar.xz
|
|
||||||
|
|
|
||||||
|
|
@ -9,21 +9,41 @@
|
||||||
# Not yet in EPEL10: https://bugzilla.redhat.com/show_bug.cgi?id=2356387
|
# Not yet in EPEL10: https://bugzilla.redhat.com/show_bug.cgi?id=2356387
|
||||||
%bcond pendulum %{undefined el10}
|
%bcond pendulum %{undefined el10}
|
||||||
|
|
||||||
|
# By default, orjson uses a bundled copy of the C library yyjson,
|
||||||
|
# https://github.com/ibireme/yyjson, as the JSON deserialization backend. It is
|
||||||
|
# forked (customized) and compiled with a particular set of options via
|
||||||
|
# preprocessor defines (see build.rs), so it is not a candidate for unbundling.
|
||||||
|
#
|
||||||
|
# We do have the option to disable the yyjson backend, in which case the json
|
||||||
|
# crate from the Rust standard library, https://docs.rs/json, is used instead.
|
||||||
|
%bcond yyjson 0
|
||||||
|
|
||||||
Name: python-orjson
|
Name: python-orjson
|
||||||
Version: 3.11.4
|
Version: 3.11.3
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
Summary: Fast, correct Python JSON library
|
Summary: Fast, correct Python JSON library
|
||||||
|
|
||||||
# The entire source is (Apache-2.0 OR MIT), except:
|
# The entire source is (Apache-2.0 OR MIT), except:
|
||||||
#
|
#
|
||||||
|
%if %{with yyjson}
|
||||||
# MIT:
|
# MIT:
|
||||||
# - include/yyjson/yyjson.c
|
# - include/yyjson/yyjson.c
|
||||||
# - include/yyjson/yyjson.h
|
# - include/yyjson/yyjson.h
|
||||||
#
|
#
|
||||||
|
%endif
|
||||||
# Apache-2.0:
|
# Apache-2.0:
|
||||||
# - src/serialize/writer/str/mod.rs
|
# - src/serialize/writer/str/mod.rs
|
||||||
# - src/serialize/writer/str/sse2.rs
|
# - src/serialize/writer/str/sse2.rs
|
||||||
License: (Apache-2.0 OR MIT) AND Apache-2.0 AND MIT
|
License: (Apache-2.0 OR MIT) AND Apache-2.0%{?with_yyjson: AND MIT}
|
||||||
|
%if %{without yyjson}
|
||||||
|
# Additionally, the following are removed in %%prep and do not contribute to
|
||||||
|
# the licenses of the binary RPMs:
|
||||||
|
#
|
||||||
|
# MIT:
|
||||||
|
# - include/yyjson/yyjson.c
|
||||||
|
# - include/yyjson/yyjson.h
|
||||||
|
%endif
|
||||||
|
SourceLicense: (Apache-2.0 OR MIT) AND Apache-2.0 AND MIT
|
||||||
URL: https://github.com/ijl/orjson
|
URL: https://github.com/ijl/orjson
|
||||||
# We must be careful about the source archive.
|
# We must be careful about the source archive.
|
||||||
#
|
#
|
||||||
|
|
@ -76,7 +96,6 @@ Summary: %{summary}
|
||||||
# (Apache-2.0 OR MIT) AND BSD-3-Clause
|
# (Apache-2.0 OR MIT) AND BSD-3-Clause
|
||||||
# Apache-2.0 OR BSL-1.0
|
# Apache-2.0 OR BSL-1.0
|
||||||
# Apache-2.0 OR MIT
|
# Apache-2.0 OR MIT
|
||||||
# BSD-2-Clause OR Apache-2.0 OR MIT
|
|
||||||
# BSL-1.0
|
# BSL-1.0
|
||||||
# MIT
|
# MIT
|
||||||
# MIT OR Apache-2.0
|
# MIT OR Apache-2.0
|
||||||
|
|
@ -87,24 +106,16 @@ License: %{shrink:
|
||||||
(Apache-2.0 OR MIT) AND
|
(Apache-2.0 OR MIT) AND
|
||||||
Apache-2.0 AND
|
Apache-2.0 AND
|
||||||
(Apache-2.0 OR BSL-1.0) AND
|
(Apache-2.0 OR BSL-1.0) AND
|
||||||
(Apache-2.0 OR BSD-2-Clause OR MIT) AND
|
|
||||||
BSD-3-Clause AND
|
BSD-3-Clause AND
|
||||||
BSL-1.0 AND
|
BSL-1.0 AND
|
||||||
MIT AND
|
MIT AND
|
||||||
(Unlicense OR MIT)
|
(Unlicense OR MIT)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
%if %{with yyjson}
|
||||||
# Version from YYJSON_VERSION_STRING in include/yyjson/yyjson.h
|
# Version from YYJSON_VERSION_STRING in include/yyjson/yyjson.h
|
||||||
#
|
|
||||||
# Since version 3.11.4, orjson unconditionally uses a bundled copy of the C
|
|
||||||
# library yyjson, https://github.com/ibireme/yyjson, as the JSON
|
|
||||||
# deserialization backend. It is forked (customized) and compiled with a
|
|
||||||
# particular set of options via preprocessor defines (see build.rs), so it is
|
|
||||||
# not a candidate for unbundling. (Prior to version 3.11.4, this could be
|
|
||||||
# disabled, and the json crate from the Rust standard library,
|
|
||||||
# https://docs.rs/json, would be used instead, but this is no longer
|
|
||||||
# supported.)
|
|
||||||
Provides: bundled(yyjson) = 0.9.0
|
Provides: bundled(yyjson) = 0.9.0
|
||||||
|
%endif
|
||||||
|
|
||||||
%description -n python3-orjson %{_description}
|
%description -n python3-orjson %{_description}
|
||||||
|
|
||||||
|
|
@ -117,6 +128,10 @@ Provides: bundled(yyjson) = 0.9.0
|
||||||
# “Avoid bundling libgcc on musl.”
|
# “Avoid bundling libgcc on musl.”
|
||||||
tomcli-set Cargo.toml del 'features.unwind'
|
tomcli-set Cargo.toml del 'features.unwind'
|
||||||
tomcli-set Cargo.toml del 'dependencies.unwinding'
|
tomcli-set Cargo.toml del 'dependencies.unwinding'
|
||||||
|
%if %{without yyjson}
|
||||||
|
# Remove bundled yyjson.
|
||||||
|
rm -rv include/yyjson/
|
||||||
|
%endif
|
||||||
|
|
||||||
%if %{without pendulum}
|
%if %{without pendulum}
|
||||||
sed -i '/^pendulum\b/d' test/requirements.txt
|
sed -i '/^pendulum\b/d' test/requirements.txt
|
||||||
|
|
@ -137,6 +152,9 @@ sed -i '/pytest-random-order/d' test/requirements.txt
|
||||||
export RUSTFLAGS='%{build_rustflags}'
|
export RUSTFLAGS='%{build_rustflags}'
|
||||||
%cargo_license_summary
|
%cargo_license_summary
|
||||||
%{cargo_license} > LICENSES.dependencies
|
%{cargo_license} > LICENSES.dependencies
|
||||||
|
%if %{without yyjson}
|
||||||
|
export ORJSON_DISABLE_YYJSON=1
|
||||||
|
%endif
|
||||||
%pyproject_wheel
|
%pyproject_wheel
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
2
sources
2
sources
|
|
@ -1 +1 @@
|
||||||
SHA512 (orjson-3.11.4-filtered.tar.xz) = 1a457a91dfa1918341acfebcdb86ddf92b5776f166be9dbd16a4253f55140ae0bc90f911ceb3a9b33abd963be22f089aa2764b25e1701691298c0e8840c8225a
|
SHA512 (orjson-3.11.3-filtered.tar.xz) = 1a1447046743469c20b43c1ab99a752e48f91828d0a13e0587fad1174640c6355f5fd973e25c0bc8950852992020852d202184cfe0b7aeb309e2a0c3d1b5feae
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue