diff --git a/.gitignore b/.gitignore index ba2877c..5db48dd 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,4 @@ /pyo3-0.22.2.crate /pyo3-0.22.3.crate /pyo3-0.22.4.crate +/pyo3-0.22.6.crate diff --git a/pyo3-fix-metadata.diff b/pyo3-fix-metadata.diff index 5b407b8..85df163 100644 --- a/pyo3-fix-metadata.diff +++ b/pyo3-fix-metadata.diff @@ -1,5 +1,5 @@ ---- pyo3-0.22.4/Cargo.toml 1970-01-01T00:00:01+00:00 -+++ pyo3-0.22.4/Cargo.toml 2024-10-15T10:14:21.583551+00:00 +--- pyo3-0.22.6/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ pyo3-0.22.6/Cargo.toml 2024-11-09T20:58:49.612339+00:00 @@ -423,7 +423,6 @@ "serde", "smallvec", diff --git a/rust-pyo3.spec b/rust-pyo3.spec index b951484..c8cc428 100644 --- a/rust-pyo3.spec +++ b/rust-pyo3.spec @@ -5,7 +5,7 @@ %global crate pyo3 Name: rust-pyo3 -Version: 0.22.4 +Version: 0.22.6 Release: %autorelease Summary: Bindings to Python interpreter @@ -15,10 +15,9 @@ Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * 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 -Patch: 0001-Make-unsafe-subinterpreter-support-available-via-cfg.patch +Patch2: 0001-Make-unsafe-subinterpreter-support-available-via-cfg.patch BuildRequires: cargo-rpm-macros >= 24 diff --git a/rust2rpm.toml b/rust2rpm.toml index 127cff2..adf7570 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -2,6 +2,15 @@ cargo-toml-patch-comments = [ "drop MSVC- and MinGW-only features", ] +doc-files.exclude = [".towncrier.template.md"] + +[[package.extra-patches]] +number = 2 +file = "0001-Make-unsafe-subinterpreter-support-available-via-cfg.patch" +comments = ["""\ +make unsafe subinterpreter support available via cfg flag: +https://bugzilla.redhat.com/show_bug.cgi?id=2298403""", +] [scripts] prep.post = [ diff --git a/sources b/sources index 514921a..90cbac8 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pyo3-0.22.4.crate) = 58dc4ccde8f534f1b70019d4e3d4d0834b7698acdbbcba0d5c470c9ccbe257f251df9664b918a34784b2fb76ede2758ec8c168bb2603750f3b53ed9de2d195b7 +SHA512 (pyo3-0.22.6.crate) = d746007eae22f5b7bbf173759c61cbd2aa893898d88b8be5680a0237deec4d113246edf5f62fbbec3579ad4bd7307499b94b887ec306112ffe3df5190fe70e44