From ef6bfc4d380bb3bd03c2a8daecb2eee8b3868f6e Mon Sep 17 00:00:00 2001 From: Aleksei Bavshin Date: Fri, 22 Dec 2023 20:48:39 -0800 Subject: [PATCH] Update to 0.6.0 (rhbz#2241591) --- .gitignore | 1 + raw-window-handle-fix-metadata-auto.diff | 15 +++++++++++++++ raw-window-handle-fix-metadata.diff | 10 ++++++++++ rust-raw-window-handle.spec | 13 +++++++++---- sources | 2 +- 5 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 raw-window-handle-fix-metadata-auto.diff create mode 100644 raw-window-handle-fix-metadata.diff diff --git a/.gitignore b/.gitignore index 56b632e..ae64cc3 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /raw-window-handle-0.4.2.crate /raw-window-handle-0.4.3.crate /raw-window-handle-0.5.2.crate +/raw-window-handle-0.6.0.crate diff --git a/raw-window-handle-fix-metadata-auto.diff b/raw-window-handle-fix-metadata-auto.diff new file mode 100644 index 0000000..5a75c9c --- /dev/null +++ b/raw-window-handle-fix-metadata-auto.diff @@ -0,0 +1,15 @@ +--- raw-window-handle-0.6.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ raw-window-handle-0.6.0/Cargo.toml 2023-11-11T23:02:47.283359+00:00 +@@ -33,12 +33,6 @@ + alloc = [] + std = ["alloc"] + wasm-bindgen-0-2 = [ +- "wasm-bindgen", + "std", + ] + +-[target."cfg(target_family = \"wasm\")".dependencies.wasm-bindgen] +-version = "0.2.87" +-features = ["std"] +-optional = true +-default-features = false diff --git a/raw-window-handle-fix-metadata.diff b/raw-window-handle-fix-metadata.diff new file mode 100644 index 0000000..31a79a5 --- /dev/null +++ b/raw-window-handle-fix-metadata.diff @@ -0,0 +1,10 @@ +--- raw-window-handle-0.6.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ raw-window-handle-0.6.0/Cargo.toml 2023-11-11T23:02:54.692383+00:00 +@@ -32,7 +32,3 @@ + [features] + alloc = [] + std = ["alloc"] +-wasm-bindgen-0-2 = [ +- "std", +-] +- diff --git a/rust-raw-window-handle.spec b/rust-raw-window-handle.spec index d539b5d..a757d72 100644 --- a/rust-raw-window-handle.spec +++ b/rust-raw-window-handle.spec @@ -1,19 +1,24 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 25 %bcond_without check %global debug_package %{nil} %global crate raw-window-handle Name: rust-raw-window-handle -Version: 0.5.2 +Version: 0.6.0 Release: %autorelease Summary: Interoperability library for Rust Windowing applications License: MIT OR Apache-2.0 OR Zlib URL: https://crates.io/crates/raw-window-handle Source: %{crates_source} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: raw-window-handle-fix-metadata-auto.diff +# Manually created patch for downstream crate metadata changes +# * remove wasm-specific features +Patch: raw-window-handle-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Interoperability library for Rust Windowing applications.} @@ -74,7 +79,7 @@ use the "std" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version_no_tilde} -p1 +%autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires diff --git a/sources b/sources index 4abf24c..f410b7d 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (raw-window-handle-0.5.2.crate) = 51d93a4609533742178ab15d4454ffca1668e2a03c2a6e742ee2a61554564c74307311a50e3992919451f4f4d30ac112284413fb4310abbf06c0fa24d85d5971 +SHA512 (raw-window-handle-0.6.0.crate) = bd029ac635ca18e8e041fb868c75fdeba9a4540e19d10db614cc14a67b76c887476954f4aa3b42f9014ee07c5d1c002ba9c88a2a7ec8c84a1589bd71bd65c4eb