From 36a2ee23d712b8fd79df2efc8f74aa4f67094f6e Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Wed, 11 Dec 2024 07:19:02 -0500 Subject: [PATCH] Bump pretty_assertions dependency to 1.4.0 This is just a dev-dependency for one test, and upstream already made (but did not yet release) the change in https://github.com/yaahc/displaydoc/pull/53. The package no longer depends on the rust-pretty_assertions0.6 compat package. --- displaydoc-fix-metadata.diff | 11 +++++++++++ rust-displaydoc.spec | 8 ++++++-- rust2rpm.toml | 4 +++- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 displaydoc-fix-metadata.diff diff --git a/displaydoc-fix-metadata.diff b/displaydoc-fix-metadata.diff new file mode 100644 index 0000000..7179123 --- /dev/null +++ b/displaydoc-fix-metadata.diff @@ -0,0 +1,11 @@ +--- displaydoc-0.2.5/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ displaydoc-0.2.5/Cargo.toml 2024-12-11T12:17:38.790823+00:00 +@@ -96,7 +96,7 @@ + default-features = false + + [dev-dependencies.pretty_assertions] +-version = "0.6.1" ++version = "1.4.0" + + [dev-dependencies.rustversion] + version = "1.0.0" diff --git a/rust-displaydoc.spec b/rust-displaydoc.spec index b72e3b3..1d147b0 100644 --- a/rust-displaydoc.spec +++ b/rust-displaydoc.spec @@ -1,5 +1,5 @@ -# Generated by rust2rpm 26 -%bcond_without check +# Generated by rust2rpm 27 +%bcond check 1 %global debug_package %{nil} %global crate displaydoc @@ -12,6 +12,10 @@ Summary: Derive macro for implementing the display Trait License: MIT OR Apache-2.0 URL: https://crates.io/crates/displaydoc Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * Bump pretty_assertions dependency to 1.4.0: +# https://github.com/yaahc/displaydoc/pull/53 +Patch: displaydoc-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 diff --git a/rust2rpm.toml b/rust2rpm.toml index be8e5b2..2fd0d80 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,3 +1,5 @@ [package] summary = "Derive macro for implementing the display Trait" - +cargo-toml-patch-comments = [ + "Bump pretty_assertions dependency to 1.4.0: https://github.com/yaahc/displaydoc/pull/53", +]