# Generated by rust2rpm 24 %bcond_without check %global debug_package %{nil} %global crate criterion Name: rust-criterion0.3 Version: 0.3.6 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} BuildRequires: rust-packaging >= 21 %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 for i in benches/benchmarks/compare_functions.rs benches/benchmarks/iter_with_large_drop.rs benches/benchmarks/iter_with_large_setup.rs src/benchmark.rs tests/criterion_tests.rs; do sed -i '1 i\//comment to fool the rpm checks' $i done %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog