# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %undefine __brp_mangle_shebangs %global crate criterion Name: rust-criterion Version: 0.5.1 Release: %autorelease Summary: Statistics-driven micro-benchmarking library # Upstream license specification: Apache-2.0/MIT License: Apache-2.0 OR MIT URL: https://crates.io/crates/criterion Source: %{crates_source} Patch0: criterion-fix-metadata.diff BuildRequires: rust-packaging >= 21 BuildRequires: cargo-rpm-macros BuildRequires: rust-anes+default-devel >= 0.1.4, rust-anes+default-devel < 0.2.0 BuildRequires: rust-approx+default-devel >= 0.5.0, rust-approx+default-devel < 0.6.0 BuildRequires: rust-cast+default-devel >= 0.3.0, rust-cast+default-devel < 0.4.0 BuildRequires: rust-ciborium+default-devel >= 0.2.0, rust-ciborium+default-devel < 0.3.0 BuildRequires: rust-clap-devel >= 4.0.0, rust-clap-devel < 5.0.0 BuildRequires: rust-clap+std-devel >= 4.0.0, rust-clap+std-devel < 5.0.0 BuildRequires: rust-criterion-plot+default-devel >= 0.5.0, rust-criterion-plot+default-devel < 0.6.0 BuildRequires: rust-futures-devel >= 0.3.0, rust-futures-devel < 0.4.0 BuildRequires: rust-futures+executor-devel >= 0.3.0, rust-futures+executor-devel < 0.4.0 BuildRequires: rust-is-terminal+default-devel >= 0.4.5, rust-is-terminal+default-devel < 0.5.0 BuildRequires: rust-itertools0.10+default-devel >= 0.10.0, rust-itertools0.10+default-devel < 0.11.0 BuildRequires: rust-num-traits-devel >= 0.2.0, rust-num-traits-devel < 0.3.0 BuildRequires: rust-num-traits+std-devel >= 0.2.0, rust-num-traits+std-devel < 0.3.0 BuildRequires: rust-once_cell+default-devel >= 1.14.0, rust-once_cell+default-devel < 2.0.0 BuildRequires: rust-oorandom+default-devel >= 11.1.0, rust-oorandom+default-devel < 12.0.0 BuildRequires: rust-quickcheck-devel >= 1.0.0, rust-quickcheck-devel < 2.0.0 BuildRequires: rust-rand+default-devel >= 0.8.0, rust-rand+default-devel < 0.9.0 BuildRequires: rust-regex-devel >= 1.5.0, rust-regex-devel < 2.0.0 BuildRequires: rust-regex+std-devel >= 1.5.0, rust-regex+std-devel < 2.0.0 BuildRequires: rust-serde+default-devel >= 1.0.0, rust-serde+default-devel < 2.0.0 BuildRequires: rust-serde_derive+default-devel >= 1.0.0, rust-serde_derive+default-devel < 2.0.0 BuildRequires: rust-serde_json+default-devel >= 1.0.0, rust-serde_json+default-devel < 2.0.0 BuildRequires: rust-tempfile+default-devel >= 3.6.0, rust-tempfile+default-devel < 4.0.0 BuildRequires: rust-tinytemplate+default-devel >= 1.1.0, rust-tinytemplate+default-devel < 2.0.0 BuildRequires: rust-walkdir+default-devel >= 2.3.0, rust-walkdir+default-devel < 3.0.0 %global _description %{expand: Statistics-driven micro-benchmarking library.} %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/CONTRIBUTING.md %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-devel %{_description} This package contains library source intended for building other packages which use the "async" feature of the "%{crate}" crate. %files -n %{name}+async-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async-std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async-std-devel %{_description} This package contains library source intended for building other packages which use the "async-std" feature of the "%{crate}" crate. %files -n %{name}+async-std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async_futures-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async_futures-devel %{_description} This package contains library source intended for building other packages which use the "async_futures" feature of the "%{crate}" crate. %files -n %{name}+async_futures-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async_smol-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async_smol-devel %{_description} This package contains library source intended for building other packages which use the "async_smol" feature of the "%{crate}" crate. %files -n %{name}+async_smol-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async_std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async_std-devel %{_description} This package contains library source intended for building other packages which use the "async_std" feature of the "%{crate}" crate. %files -n %{name}+async_std-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+async_tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+async_tokio-devel %{_description} This package contains library source intended for building other packages which use the "async_tokio" feature of the "%{crate}" crate. %files -n %{name}+async_tokio-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cargo_bench_support-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cargo_bench_support-devel %{_description} This package contains library source intended for building other packages which use the "cargo_bench_support" feature of the "%{crate}" crate. %files -n %{name}+cargo_bench_support-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+csv_output-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+csv_output-devel %{_description} This package contains library source intended for building other packages which use the "csv_output" feature of the "%{crate}" crate. %files -n %{name}+csv_output-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+futures-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-devel %{_description} This package contains library source intended for building other packages which use the "futures" feature of the "%{crate}" crate. %files -n %{name}+futures-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+html_reports-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+html_reports-devel %{_description} This package contains library source intended for building other packages which use the "html_reports" feature of the "%{crate}" crate. %files -n %{name}+html_reports-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+real_blackbox-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+real_blackbox-devel %{_description} This package contains library source intended for building other packages which use the "real_blackbox" feature of the "%{crate}" crate. %files -n %{name}+real_blackbox-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+smol-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+smol-devel %{_description} This package contains library source intended for building other packages which use the "smol" feature of the "%{crate}" crate. %files -n %{name}+smol-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+stable-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+stable-devel %{_description} This package contains library source intended for building other packages which use the "stable" feature of the "%{crate}" crate. %files -n %{name}+stable-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+tokio-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+tokio-devel %{_description} This package contains library source intended for building other packages which use the "tokio" feature of the "%{crate}" crate. %files -n %{name}+tokio-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog