From cf522a0b2325cc34419718e740e2213e0760e713 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 9 Nov 2024 22:04:44 +0100 Subject: [PATCH] Update to version 0.22.6; Fixes RHBZ#2318986 --- .gitignore | 1 + rust-pyo3-ffi.spec | 15 +++++++-------- rust2rpm.toml | 11 +++++++++++ sources | 2 +- 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.gitignore b/.gitignore index ce87515..1f9905b 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ /pyo3-ffi-0.22.2.crate /pyo3-ffi-0.22.3.crate /pyo3-ffi-0.22.4.crate +/pyo3-ffi-0.22.6.crate diff --git a/rust-pyo3-ffi.spec b/rust-pyo3-ffi.spec index 788c2c5..12bf9e5 100644 --- a/rust-pyo3-ffi.spec +++ b/rust-pyo3-ffi.spec @@ -5,20 +5,19 @@ %global crate pyo3-ffi Name: rust-pyo3-ffi -Version: 0.22.4 +Version: 0.22.6 Release: %autorelease Summary: Python-API bindings for the PyO3 ecosystem License: MIT OR Apache-2.0 URL: https://crates.io/crates/pyo3-ffi Source: %{crates_source} - -# Downstream-only patch: always allow unsupported versions of Python. -# We constantly attempt to integrate alpha and beta releases of Python -# and need to rebuild all dependent packages in Copr, also those that -# use pyo3-ffi without patching each and every one of them, -# hence we explicitly allow to skip version check when building RPMs. -Patch: Allow-unsupported-Python-versions-in-RPM-builds.patch +# * Downstream-only patch: always allow unsupported versions of Python. +# We constantly attempt to integrate alpha and beta releases of Python +# and need to rebuild all dependent packages in Copr, also those that +# use pyo3-ffi without patching each and every one of them, hence we +# explicitly allow to skip version check when building RPMs. +Patch2: Allow-unsupported-Python-versions-in-RPM-builds.patch BuildRequires: cargo-rpm-macros >= 24 BuildRequires: python3-devel >= 3.7 diff --git a/rust2rpm.toml b/rust2rpm.toml index 235110c..dc8d333 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,3 +1,14 @@ +[[package.extra-patches]] +number = 2 +file = "Allow-unsupported-Python-versions-in-RPM-builds.patch" +comments = ["""\ +Downstream-only patch: always allow unsupported versions of Python. +We constantly attempt to integrate alpha and beta releases of Python +and need to rebuild all dependent packages in Copr, also those that +use pyo3-ffi without patching each and every one of them, hence we +explicitly allow to skip version check when building RPMs.""", +] + [features] # drop MSVC- and MinGW-only features hide = ["generate-import-lib"] diff --git a/sources b/sources index 939d103..0648b35 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pyo3-ffi-0.22.4.crate) = c81e76aa58672cc894188980db073c81bd9c091e89e281313e81c14ef5573940c114fcf110d1a4c923249db5a1a45cd1732621395edf6f5ea6d29b4f81d81eeb +SHA512 (pyo3-ffi-0.22.6.crate) = 616e51a0eae1207830fe95251d5b62f126daf446bec68ac98cb1b8538aaa59761dbde62d446a9ee205c23453dbd32bd8ecb15e26265ed1fa1e5e2056efd96369