From 9989cb96f451c908e4b9b01d539808a010489970 Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Sat, 14 Sep 2024 23:39:19 -0400 Subject: [PATCH] Drop benchmark-only dev-dependency on bencher --- rust-exr.spec | 3 +++ rust2rpm.toml | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/rust-exr.spec b/rust-exr.spec index e23d759..88b5254 100644 --- a/rust-exr.spec +++ b/rust-exr.spec @@ -15,6 +15,7 @@ Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 BuildRequires: dos2unix +BuildRequires: tomcli %global _description %{expand: Read and write OpenEXR files without any unsafe code.} @@ -55,6 +56,8 @@ use the "default" feature of the "%{crate}" crate. %cargo_prep # fix CRLF line endings in source files: https://github.com/johannesvollmer/exrs/issues/239 find . -type f \( -name '*.md' -o -name '*.rs' \) -execdir dos2unix --keepdate '{}' '+' +# Do not depend on bencher; it is needed only for benchmarks. +tomcli set Cargo.toml del dev-dependencies.bencher %generate_buildrequires %cargo_generate_buildrequires diff --git a/rust2rpm.toml b/rust2rpm.toml index d7c80ea..391b3ef 100644 --- a/rust2rpm.toml +++ b/rust2rpm.toml @@ -1,10 +1,15 @@ [requires] -build = ["dos2unix"] +build = [ + "dos2unix", + "tomcli", +] [scripts] prep.post = [ "# fix CRLF line endings in source files: https://github.com/johannesvollmer/exrs/issues/239", "find . -type f \\( -name '*.md' -o -name '*.rs' \\) -execdir dos2unix --keepdate '{}' '+'", + "# Do not depend on bencher; it is needed only for benchmarks.", + "tomcli set Cargo.toml del dev-dependencies.bencher", ] [tests]