Update to 3.10.6.

- Fixes rhbz#2291190, fixes rhbz#2278078, fixes rhbz#2264126.
This commit is contained in:
Maxwell G 2024-04-15 23:31:00 +00:00 committed by Benjamin A. Beasley
commit 262e9dc821
3 changed files with 18 additions and 5 deletions

View file

@ -8,7 +8,7 @@
%bcond tests 1
Name: python-orjson
Version: 3.9.15
Version: 3.10.6
Release: %autorelease
Summary: Fast, correct Python JSON library
@ -44,13 +44,14 @@ Summary: %{summary}
# (Apache-2.0 OR MIT) AND BSD-3-Clause
# Apache-2.0 OR BSL-1.0
# Apache-2.0 OR MIT
# BSD-2-Clause OR Apache-2.0 OR MIT
# BSL-1.0
# MIT
# MIT OR Apache-2.0 (duplicate)
License: %{shrink:
(Apache-2.0 OR MIT) AND
BSD-3-Clause AND
(Apache-2.0 OR BSL-1.0) AND
(BSD-2-Clause OR Apache-2.0 OR MIT) AND
BSL-1.0 AND
MIT
}
@ -62,15 +63,26 @@ License: %{shrink:
%autosetup -p1 -n orjson-%{version}
%cargo_prep
# Remove unstable feature that requires rust nightly
# Remove unstable features that require rust nightly; the avx512 feature also
# requires the x86_64 architecture
tomcli-set Cargo.toml del 'features.unstable-simd'
tomcli-set Cargo.toml del 'features.avx512'
# Remove no-panic feature
tomcli-set Cargo.toml del 'features.no-panic'
# Remove unwind feature, which is not useful here: the comment above it says
# “Avoid bundling libgcc on musl.”
tomcli-set Cargo.toml del 'features.unwind'
tomcli-set Cargo.toml del 'dependencies.unwinding'
# Remove strict dependencies
sed -Ei 's|(version = ")=|\1|' Cargo.toml
# Remove bundled rust crates
rm -r include/cargo
# Remove bundled yyjson.
rm -rv include/yyjson/
# Remove unpackaged PyPI plugin
sed -i '/pytest-random-order/d' test/requirements.txt
%generate_buildrequires