diff --git a/directories-fix-metadata.diff b/directories-fix-metadata.diff new file mode 100644 index 0000000..45e5930 --- /dev/null +++ b/directories-fix-metadata.diff @@ -0,0 +1,15 @@ +--- directories-5.0.1/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ directories-5.0.1/Cargo.toml 2024-11-12T22:28:37.157435+00:00 +@@ -25,12 +25,5 @@ + license = "MIT OR Apache-2.0" + repository = "https://github.com/soc/directories-rs" + +-[[bench]] +-name = "constructors" +-harness = false +- + [dependencies.dirs-sys] + version = "0.4.1" +- +-[dev-dependencies.bencher] +-version = "0.1.5" diff --git a/rust-directories.spec b/rust-directories.spec index a80c36a..2bc042e 100644 --- a/rust-directories.spec +++ b/rust-directories.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: Platform-specific standard locations of directories License: MIT OR Apache-2.0 URL: https://crates.io/crates/directories Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only criterion dev-dependency +Patch: directories-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 diff --git a/rust2rpm.toml b/rust2rpm.toml index 1c04cd9..b9d2707 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,3 +1,6 @@ [package] summary = "Platform-specific standard locations of directories" +cargo-toml-patch-comments = [ + "drop unused, benchmark-only criterion dev-dependency", +]