Drop benchmark-only dev-dependency on bencher

epel10
Benjamin A. Beasley 5 months ago
parent 4e381a143e
commit 9989cb96f4

@ -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

@ -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]

Loading…
Cancel
Save