From f118e3bd2c8825e508e13a77c37a90e55b60ea69 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Tue, 25 Jun 2024 13:34:01 +0200 Subject: [PATCH] Update to version 0.22.0; Fixes RHBZ#2293990 --- .gitignore | 1 + pyo3-fix-metadata.diff | 8 ++++---- rust-pyo3.spec | 38 +++++++++++++++++++++++++------------- sources | 2 +- 4 files changed, 31 insertions(+), 18 deletions(-) diff --git a/.gitignore b/.gitignore index e26a358..1a34795 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,4 @@ /pyo3-0.20.2.crate /pyo3-0.21.1.crate /pyo3-0.21.2.crate +/pyo3-0.22.0.crate diff --git a/pyo3-fix-metadata.diff b/pyo3-fix-metadata.diff index 089ff85..e5f22f3 100644 --- a/pyo3-fix-metadata.diff +++ b/pyo3-fix-metadata.diff @@ -1,10 +1,10 @@ ---- pyo3-0.21.2/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ pyo3-0.21.2/Cargo.toml 2024-04-24T18:52:26.047641+00:00 -@@ -241,7 +241,6 @@ +--- pyo3-0.22.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pyo3-0.22.0/Cargo.toml 2024-06-25T10:43:21.348671+00:00 +@@ -239,7 +239,6 @@ "serde", "smallvec", ] -generate-import-lib = ["pyo3-ffi/generate-import-lib"] - gil-refs = [] + gil-refs = ["pyo3-macros/gil-refs"] macros = [ "pyo3-macros", diff --git a/rust-pyo3.spec b/rust-pyo3.spec index 7aaeaaf..983e2f8 100644 --- a/rust-pyo3.spec +++ b/rust-pyo3.spec @@ -5,7 +5,7 @@ %global crate pyo3 Name: rust-pyo3 -Version: 0.21.2 +Version: 0.22.0 Release: %autorelease Summary: Bindings to Python interpreter @@ -213,18 +213,6 @@ use the "experimental-async" feature of the "%{crate}" crate. %files -n %{name}+experimental-async-devel %ghost %{crate_instdir}/Cargo.toml -%package -n %{name}+experimental-declarative-modules-devel -Summary: %{summary} -BuildArch: noarch - -%description -n %{name}+experimental-declarative-modules-devel %{_description} - -This package contains library source intended for building other packages which -use the "experimental-declarative-modules" feature of the "%{crate}" crate. - -%files -n %{name}+experimental-declarative-modules-devel -%ghost %{crate_instdir}/Cargo.toml - %package -n %{name}+experimental-inspect-devel Summary: %{summary} BuildArch: noarch @@ -393,6 +381,30 @@ use the "num-complex" feature of the "%{crate}" crate. %files -n %{name}+num-complex-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+num-rational-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+num-rational-devel %{_description} + +This package contains library source intended for building other packages which +use the "num-rational" feature of the "%{crate}" crate. + +%files -n %{name}+num-rational-devel +%ghost %{crate_instdir}/Cargo.toml + +%package -n %{name}+py-clone-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+py-clone-devel %{_description} + +This package contains library source intended for building other packages which +use the "py-clone" feature of the "%{crate}" crate. + +%files -n %{name}+py-clone-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+pyo3-macros-devel Summary: %{summary} BuildArch: noarch diff --git a/sources b/sources index 87b11b7..d72404a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pyo3-0.21.2.crate) = 5f88cda423e82b62698a74ceaa31fc27e5c1f1d417928accddb2e00337d163fda622f774ae6e24c1cb73c467d6b01e9a2ba866e4454338b1fbfc892ae14ffc53 +SHA512 (pyo3-0.22.0.crate) = 44e0237fd3a8d4c7b082c48a5c8a52d8f4cc4673d134f680e29504bb46d870015fa210da34de4c1998defbcd4afdf2aaea4e148fbe093e4b2c8b0d064cd48da4