diff --git a/.gitignore b/.gitignore index d7821ad..ca84696 100644 --- a/.gitignore +++ b/.gitignore @@ -1,28 +1 @@ -/results_*/ -/*.src.rpm - -/pyo3-0.13.0.crate -/pyo3-0.13.1.crate -/pyo3-0.13.2.crate -/pyo3-0.14.3.crate -/pyo3-0.14.5.crate -/pyo3-0.15.1.crate -/pyo3-0.15.2.crate -/pyo3-0.16.6.crate -/pyo3-0.17.3.crate -/pyo3-0.18.1.crate -/pyo3-0.18.2.crate -/pyo3-0.18.3.crate -/pyo3-0.19.1.crate -/pyo3-0.19.2.crate -/pyo3-0.20.0.crate -/pyo3-0.20.1.crate -/pyo3-0.20.2.crate -/pyo3-0.21.1.crate -/pyo3-0.21.2.crate -/pyo3-0.22.0.crate -/pyo3-0.22.2.crate -/pyo3-0.22.3.crate -/pyo3-0.22.4.crate -/pyo3-0.22.6.crate -/pyo3-0.23.3.crate +SOURCES/pyo3-0.22.3.crate diff --git a/.rust-pyo3.metadata b/.rust-pyo3.metadata new file mode 100644 index 0000000..048f106 --- /dev/null +++ b/.rust-pyo3.metadata @@ -0,0 +1 @@ +8d33339a27bb3d86d5cdf90faa1e2cdf15938383 SOURCES/pyo3-0.22.3.crate diff --git a/0001-Make-unsafe-subinterpreter-support-available-via-cfg.patch b/SOURCES/0001-Make-unsafe-subinterpreter-support-available-via-cfg.patch similarity index 100% rename from 0001-Make-unsafe-subinterpreter-support-available-via-cfg.patch rename to SOURCES/0001-Make-unsafe-subinterpreter-support-available-via-cfg.patch diff --git a/SOURCES/pyo3-fix-metadata.diff b/SOURCES/pyo3-fix-metadata.diff new file mode 100644 index 0000000..dd909b1 --- /dev/null +++ b/SOURCES/pyo3-fix-metadata.diff @@ -0,0 +1,10 @@ +--- pyo3-0.22.3/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pyo3-0.22.3/Cargo.toml 2024-09-18T17:25:51.757661+00:00 +@@ -423,7 +423,6 @@ + "serde", + "smallvec", + ] +-generate-import-lib = ["pyo3-ffi/generate-import-lib"] + gil-refs = ["pyo3-macros/gil-refs"] + macros = [ + "pyo3-macros", diff --git a/rust-pyo3.spec b/SPECS/rust-pyo3.spec similarity index 71% rename from rust-pyo3.spec rename to SPECS/rust-pyo3.spec index 89bdb03..5a24a2d 100644 --- a/rust-pyo3.spec +++ b/SPECS/rust-pyo3.spec @@ -1,11 +1,21 @@ -# Generated by rust2rpm 27 -%bcond check 1 +## START: Set by rpmautospec +## (rpmautospec version 0.7.2) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 1; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +# Generated by rust2rpm 26 +%bcond_without check %global debug_package %{nil} %global crate pyo3 Name: rust-pyo3 -Version: 0.23.3 +Version: 0.22.3 Release: %autorelease Summary: Bindings to Python interpreter @@ -13,12 +23,12 @@ License: MIT OR Apache-2.0 URL: https://crates.io/crates/pyo3 Source: %{crates_source} # Manually created patch for downstream crate metadata changes -# * relax chrono-tz dependency to allow building with 0.6..=0.10 # * drop MSVC- and MinGW-only features Patch: pyo3-fix-metadata.diff + # * make unsafe subinterpreter support available via cfg flag: # https://bugzilla.redhat.com/show_bug.cgi?id=2298403 -Patch2: 0001-Make-unsafe-subinterpreter-support-available-via-cfg.patch +Patch: 0001-Make-unsafe-subinterpreter-support-available-via-cfg.patch BuildRequires: cargo-rpm-macros >= 24 @@ -265,6 +275,18 @@ use the "full" feature of the "%{crate}" crate. %files -n %{name}+full-devel %ghost %{crate_instdir}/Cargo.toml +%package -n %{name}+gil-refs-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+gil-refs-devel %{_description} + +This package contains library source intended for building other packages which +use the "gil-refs" feature of the "%{crate}" crate. + +%files -n %{name}+gil-refs-devel +%ghost %{crate_instdir}/Cargo.toml + %package -n %{name}+hashbrown-devel Summary: %{summary} BuildArch: noarch @@ -482,4 +504,120 @@ export LANG=C.utf8 %endif %changelog -%autochangelog +* Sun Jan 05 2025 Arkady L. Shane - 0.22.3-1 +- Rebuilt for MSVSphere 10 + +## START: Generated by rpmautospec +* Wed Sep 18 2024 Fabio Valentini - 0.22.3-1 +- Update to version 0.22.3; Fixes RHBZ#2312480 + +* Tue Jul 23 2024 Fabio Valentini - 0.22.2-1 +- Update to version 0.22.2; Fixes RHBZ#2296165 + +* Sat Jul 20 2024 Fedora Release Engineering - 0.22.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Wed Jun 26 2024 Fabio Valentini - 0.22.0-2 +- Fix regression in 128-bit number conversions + +* Tue Jun 25 2024 Fabio Valentini - 0.22.0-1 +- Update to version 0.22.0; Fixes RHBZ#2293990 + +* Wed Apr 24 2024 Fabio Valentini - 0.21.2-1 +- Update to version 0.21.2; Fixes RHBZ#2275246 + +* Fri Apr 12 2024 Fabio Valentini - 0.21.1-1 +- Update to version 0.21.1; Fixes RHBZ#2265638 + +* Fri Apr 05 2024 Fabio Valentini - 0.20.2-3 +- Drop deny(warnings) from doctests to fix building with recent Rust + +* Fri Jan 26 2024 Fedora Release Engineering - 0.20.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 07 2024 Fabio Valentini - 0.20.2-1 +- Update to version 0.20.2; Fixes RHBZ#2256871 + +* Sun Dec 31 2023 Fabio Valentini - 0.20.1-1 +- Update to version 0.20.1; Fixes RHBZ#2256286 + +* Mon Nov 13 2023 Fabio Valentini - 0.20.0-1 +- Update to version 0.20.0; Fixes RHBZ#2243412 + +* Tue Aug 01 2023 Fabio Valentini - 0.19.2-1 +- Update to version 0.19.2; Fixes RHBZ#2228011 + +* Fri Jul 21 2023 Fedora Release Engineering - 0.19.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Mon Jul 10 2023 Fabio Valentini - 0.19.1-3 +- Skip more tests that are unreliable with Python 3.12 + +* Mon Jul 10 2023 Fabio Valentini - 0.19.1-2 +- Skip tests that are unreliable with Python 3.12 + +* Mon Jul 10 2023 Fabio Valentini - 0.19.1-1 +- Update to version 0.19.1; Fixes RHBZ#2211444 + +* Sat May 06 2023 Fabio Valentini - 0.18.3-1 +- Update to version 0.18.3; Fixes RHBZ#2186630 + +* Tue Mar 28 2023 Fabio Valentini - 0.18.2-2 +- Backport upstreamed patch make PyASCIIObject available on big-endian + arches + +* Sun Mar 26 2023 Fabio Valentini - 0.18.2-1 +- Update to version 0.18.2; Fixes RHBZ#2181651 + +* Sat Mar 04 2023 Fabio Valentini - 0.18.1-1 +- Update to version 0.18.1; Fixes RHBZ#2061101 + +* Sat Jan 28 2023 Fabio Valentini - 0.17.3-1 +- Update to version 0.17.3 + +* Sat Jan 21 2023 Fedora Release Engineering - 0.16.6-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jan 18 2023 Fabio Valentini - 0.16.6-1 +- Update to version 0.16.6 + +* Sat Jul 23 2022 Fedora Release Engineering - 0.15.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu May 05 2022 Fabio Valentini - 0.15.2-1 +- Update to version 0.15.2 + +* Sat Mar 12 2022 Fabio Valentini - 0.15.1-3 +- Relax exact versions for optional indexmap dependency + +* Fri Jan 21 2022 Fedora Release Engineering - 0.15.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Mon Nov 22 2021 Fabio Valentini - 0.15.1-1 +- Update to version 0.15.1; Fixes RHBZ#2020053 + +* Sun Sep 05 2021 Fabio Valentini - 0.14.5-1 +- Update to version 0.14.5; Fixes RHBZ#1998825 + +* Mon Aug 23 2021 Fabio Valentini - 0.14.3-2 +- Temporarily ignore test failures on s390x due to endianness problems + +* Mon Aug 23 2021 Fabio Valentini - 0.14.3-1 +- Update to version 0.14.3; Fixes RHBZ#1978983 + +* Fri Jul 23 2021 Fedora Release Engineering - 0.13.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Sun Feb 14 2021 Fabio Valentini - 0.13.2-1 +- Update to version 0.13.2. + +* Wed Jan 27 2021 Fedora Release Engineering - 0.13.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sun Jan 10 2021 Fabio Valentini - 0.13.1-1 +- Update to version 0.13.1. + +* Thu Jan 07 2021 Fabio Valentini - 0.13.0-1 +- Initial package + +## END: Generated by rpmautospec diff --git a/sources b/sources deleted file mode 100644 index 3b4dad1..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (pyo3-0.23.3.crate) = c80377e8673de8b8e51e2423d102dbcc46605a783c13127215916d69fc600efd67ba5f9cca420cb6859124165ec97fde40eb0a0566d8b4b60708e20b8e6e9b6d