From ecdba36171f93c5e79a39e81b3744a946582feec Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 16 May 2024 22:48:19 +0200 Subject: [PATCH] Update to version 0.9.34 --- .gitignore | 1 + rust-serde_yaml.spec | 9 ++++++--- serde_yaml-fix-metadata-auto.diff | 16 ++++++++++++++++ sources | 2 +- 4 files changed, 24 insertions(+), 4 deletions(-) create mode 100644 serde_yaml-fix-metadata-auto.diff diff --git a/.gitignore b/.gitignore index 2f0ff6c..4a728c7 100644 --- a/.gitignore +++ b/.gitignore @@ -37,3 +37,4 @@ /serde_yaml-0.9.30.crate /serde_yaml-0.9.31.crate /serde_yaml-0.9.33.crate +/serde_yaml-0.9.34+deprecated.crate diff --git a/rust-serde_yaml.spec b/rust-serde_yaml.spec index c550ad7..1801baa 100644 --- a/rust-serde_yaml.spec +++ b/rust-serde_yaml.spec @@ -3,15 +3,18 @@ %global debug_package %{nil} %global crate serde_yaml +%global upstream_version 0.9.34+deprecated Name: rust-serde_yaml -Version: 0.9.33 +Version: 0.9.34 Release: %autorelease Summary: YAML data format for Serde License: MIT OR Apache-2.0 URL: https://crates.io/crates/serde_yaml -Source: %{crates_source} +Source: %{crates_source %{crate} %{upstream_version}} +# Automatically generated patch to strip dependencies and normalize metadata +Patch: serde_yaml-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 @@ -48,7 +51,7 @@ use the "default" feature of the "%{crate}" crate. %ghost %{crate_instdir}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{upstream_version} -p1 %cargo_prep %generate_buildrequires diff --git a/serde_yaml-fix-metadata-auto.diff b/serde_yaml-fix-metadata-auto.diff new file mode 100644 index 0000000..0df9045 --- /dev/null +++ b/serde_yaml-fix-metadata-auto.diff @@ -0,0 +1,16 @@ +--- serde_yaml-0.9.34+deprecated/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ serde_yaml-0.9.34+deprecated/Cargo.toml 2024-05-16T20:43:59.833589+00:00 +@@ -13,7 +13,7 @@ + edition = "2021" + rust-version = "1.64" + name = "serde_yaml" +-version = "0.9.34+deprecated" ++version = "0.9.34" + authors = ["David Tolnay "] + description = "YAML data format for Serde" + documentation = "https://docs.rs/serde_yaml/" +@@ -60,3 +60,4 @@ + + [dev-dependencies.serde_derive] + version = "1.0.195" ++ diff --git a/sources b/sources index a9c03e4..84ce803 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (serde_yaml-0.9.33.crate) = cd41feeabc886b1f02a240d1234f31ea0a67b787e9888e5d8d4397dd5bd389cb5c920bc6dc72f44c5b25e1cb4434e410d8c0b01559f1338e8b1a3f90505f6e02 +SHA512 (serde_yaml-0.9.34+deprecated.crate) = 64329436d18bc3b1a0737afff7c8727f7e04c71b2bf6022f597a45f0860fa3a678eac688f61f0bf7a7846f98809f427c9907625e1d00c8691c383043c1cffaca