From a84ff913842daa17f68be2f3015a01e5023c1e79 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Sat, 14 Sep 2024 21:58:54 +0200 Subject: [PATCH] Drop unused, benchmark-only bencher dev-dependency --- idna-fix-metadata.diff | 12 ++++++++++++ rust-idna.spec | 5 ++++- rust2rpm.toml | 3 +++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 idna-fix-metadata.diff diff --git a/idna-fix-metadata.diff b/idna-fix-metadata.diff new file mode 100644 index 0000000..5278727 --- /dev/null +++ b/idna-fix-metadata.diff @@ -0,0 +1,12 @@ +--- idna-0.5.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ idna-0.5.0/Cargo.toml 2024-09-14T19:58:41.428643+00:00 +@@ -50,9 +50,6 @@ + [dev-dependencies.assert_matches] + version = "1.3" + +-[dev-dependencies.bencher] +-version = "0.1" +- + [dev-dependencies.serde_json] + version = "1.0" + diff --git a/rust-idna.spec b/rust-idna.spec index 28f3dc1..640c3f7 100644 --- a/rust-idna.spec +++ b/rust-idna.spec @@ -1,4 +1,4 @@ -# Generated by rust2rpm 25 +# Generated by rust2rpm 26 %bcond_without check %global debug_package %{nil} @@ -12,6 +12,9 @@ Summary: IDNA (Internationalizing Domain Names in Applications) and Punyc License: MIT OR Apache-2.0 URL: https://crates.io/crates/idna Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only bencher dev-dependency +Patch: idna-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 diff --git a/rust2rpm.toml b/rust2rpm.toml index dcaf7c3..2464c4b 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,3 +1,6 @@ [package] summary = "IDNA (Internationalizing Domain Names in Applications) and Punycode" +cargo-toml-patch-comments = [ + "drop unused, benchmark-only bencher dev-dependency", +]