Remove setuptools_rust patch

maturin is now packaged for all stable Fedora releases.
This commit is contained in:
Maxwell G 2023-07-04 19:51:05 +00:00 committed by Tomáš Hrnčiar
commit 0ceb97925f
2 changed files with 1 additions and 89 deletions

View file

@ -6,7 +6,6 @@
# Specfile compatability: EPEL >= 9 or Fedora >= 37 and RPM >= 4.16
%bcond tests 1
%bcond maturin %[ 0%{?fedora} >= 39 ]
Name: python-orjson
Version: 3.8.14
@ -19,10 +18,6 @@ Source: %{pypi_source orjson}
# Ineligble for upstreaming
Patch: Remove-unstable-simd-feature.patch
# Ineligble for upstreaming
# Used when maturin bcond is disabled
Patch5000: Use-setuptools-rust-instead-of-maturin.patch
BuildRequires: python3-devel
BuildRequires: rust-packaging
@ -68,9 +63,7 @@ License: (Apache-2.0 OR MIT) AND (Apache-2.0 OR BSL-1.0) AND BSD-3-Clause
%prep
%autosetup -p1 -n orjson-%{version} -N
%autopatch -M 4999
%{!?with_maturin:%autopatch -m5000 -M5000 -p1}
%autosetup -p1 -n orjson-%{version}
# Remove bundled yyjson.
rm -rv include/yyjson/