Drop benchmark-only dev-dependency on bencher

epel10 imports/epel10/rust-lebe-0.5.2-6.el10
Benjamin A. Beasley 4 months ago
parent adbd1817e8
commit 9562eabac0

@ -1,4 +1,4 @@
# Generated by rust2rpm 22
# Generated by rust2rpm 26
%bcond_without check
%global debug_package %{nil}
@ -13,12 +13,12 @@ License: BSD-3-Clause
URL: https://crates.io/crates/lebe
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging >= 21
BuildRequires: cargo-rpm-macros >= 24
BuildRequires: tomcli
%global _description %{expand:
Tiny, dead simple, high performance endianness conversions with a generic API.}
Tiny, dead simple, high performance endianness conversions with a
generic API.}
%description %{_description}
@ -49,8 +49,10 @@ use the "default" feature of the "%{crate}" crate.
%ghost %{crate_instdir}/Cargo.toml
%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%autosetup -n %{crate}-%{version} -p1
%cargo_prep
# Do not depend on bencher; it is needed only for benchmarks.
tomcli set Cargo.toml del dev-dependencies.bencher
%generate_buildrequires
%cargo_generate_buildrequires

@ -0,0 +1,10 @@
[requires]
build = [
"tomcli",
]
[scripts.prep]
post = [
"# Do not depend on bencher; it is needed only for benchmarks.",
"tomcli set Cargo.toml del dev-dependencies.bencher",
]
Loading…
Cancel
Save