From e29c51bbe92f99dbc0f7e999cc03239beb00775f Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sun, 15 Sep 2024 15:01:01 -0400 Subject: [PATCH] Use hashbrown 0.14 instead of 0.13 Signed-off-by: Benjamin A. Beasley --- fallible_collections-fix-metadata.diff | 11 +++++++++++ rust-fallible_collections.spec | 10 +++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 fallible_collections-fix-metadata.diff diff --git a/fallible_collections-fix-metadata.diff b/fallible_collections-fix-metadata.diff new file mode 100644 index 0000000..e894708 --- /dev/null +++ b/fallible_collections-fix-metadata.diff @@ -0,0 +1,11 @@ +--- fallible_collections-0.4.9/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ fallible_collections-0.4.9/Cargo.toml 2024-09-15T19:04:19.858635+00:00 +@@ -24,7 +24,7 @@ + repository = "https://github.com/vcombey/fallible_collections.git" + + [dependencies.hashbrown] +-version = "0.13" ++version = "0.14" + optional = true + + [features] diff --git a/rust-fallible_collections.spec b/rust-fallible_collections.spec index 494226a..c5f53f3 100644 --- a/rust-fallible_collections.spec +++ b/rust-fallible_collections.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 24 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} @@ -13,8 +13,12 @@ Summary: Which adds fallible allocation api to std collections License: MIT OR Apache-2.0 URL: https://crates.io/crates/fallible_collections Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * use hashbrown 0.14 instead of 0.13 +# (https://github.com/vcombey/fallible_collections/pull/46) +Patch: fallible_collections-fix-metadata.diff -BuildRequires: rust-packaging >= 21 +BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A crate which adds fallible allocation api to std collections.} @@ -121,7 +125,7 @@ use the "unstable" 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