diff --git a/idna-fix-metadata.diff b/idna-fix-metadata.diff new file mode 100644 index 0000000..9af2a89 --- /dev/null +++ b/idna-fix-metadata.diff @@ -0,0 +1,12 @@ +--- idna-0.4.0/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ idna-0.4.0/Cargo.toml 2024-09-22T00:13:34.159734+00:00 +@@ -47,9 +47,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-idna0.4.spec b/rust-idna0.4.spec index 7492344..b08ad5d 100644 --- a/rust-idna0.4.spec +++ b/rust-idna0.4.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 criterion dev-dependency +Patch: idna-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 diff --git a/rust2rpm.toml b/rust2rpm.toml index dcaf7c3..4fac5dd 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 criterion dev-dependency", +]