From 40e2b89798a85687826766746bb09f7186463b55 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Thu, 29 Aug 2024 15:31:45 +0200 Subject: [PATCH] Drop unused, benchmark-only bencher dev-dependency --- crc32fast-fix-metadata.diff | 12 ++++++++++++ rust-crc32fast.spec | 3 +++ rust2rpm.toml | 3 +++ 3 files changed, 18 insertions(+) create mode 100644 crc32fast-fix-metadata.diff create mode 100644 rust2rpm.toml diff --git a/crc32fast-fix-metadata.diff b/crc32fast-fix-metadata.diff new file mode 100644 index 0000000..ae5652d --- /dev/null +++ b/crc32fast-fix-metadata.diff @@ -0,0 +1,12 @@ +--- crc32fast-1.4.2/Cargo.toml 1970-01-01T00:00:01+00:00 ++++ crc32fast-1.4.2/Cargo.toml 2024-08-29T13:27:26.403265+00:00 +@@ -35,9 +35,6 @@ + [dependencies.cfg-if] + version = "1.0" + +-[dev-dependencies.bencher] +-version = "0.1" +- + [dev-dependencies.quickcheck] + version = "1.0" + default-features = false diff --git a/rust-crc32fast.spec b/rust-crc32fast.spec index 381943f..8ab6b6e 100644 --- a/rust-crc32fast.spec +++ b/rust-crc32fast.spec @@ -12,6 +12,9 @@ Summary: Fast, SIMD-accelerated CRC32 (IEEE) checksum computation License: MIT OR Apache-2.0 URL: https://crates.io/crates/crc32fast Source: %{crates_source} +# Manually created patch for downstream crate metadata changes +# * drop unused, benchmark-only bencher dev-dependency +Patch: crc32fast-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 diff --git a/rust2rpm.toml b/rust2rpm.toml new file mode 100644 index 0000000..e283779 --- /dev/null +++ b/rust2rpm.toml @@ -0,0 +1,3 @@ +[package] +cargo-toml-patch-comments = ["drop unused, benchmark-only bencher dev-dependency"] +