# Generated by rust2rpm 27 %bcond check 1 %global debug_package %{nil} %global crate metrics-util Name: rust-metrics-util Version: 0.19.0 Release: %autorelease Summary: Helper types/functions used by the metrics ecosystem License: MIT URL: https://crates.io/crates/metrics-util Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 BuildRequires: tomcli %global _description %{expand: Helper types/functions used by the metrics ecosystem.} %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 %doc %{crate_instdir}/CHANGELOG.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}+ahash-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ahash-devel %{_description} This package contains library source intended for building other packages which use the "ahash" feature of the "%{crate}" crate. %files -n %{name}+ahash-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+aho-corasick-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+aho-corasick-devel %{_description} This package contains library source intended for building other packages which use the "aho-corasick" feature of the "%{crate}" crate. %files -n %{name}+aho-corasick-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+crossbeam-epoch-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+crossbeam-epoch-devel %{_description} This package contains library source intended for building other packages which use the "crossbeam-epoch" feature of the "%{crate}" crate. %files -n %{name}+crossbeam-epoch-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+crossbeam-utils-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+crossbeam-utils-devel %{_description} This package contains library source intended for building other packages which use the "crossbeam-utils" feature of the "%{crate}" crate. %files -n %{name}+crossbeam-utils-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+debugging-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+debugging-devel %{_description} This package contains library source intended for building other packages which use the "debugging" feature of the "%{crate}" crate. %files -n %{name}+debugging-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+hashbrown-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+hashbrown-devel %{_description} This package contains library source intended for building other packages which use the "hashbrown" feature of the "%{crate}" crate. %files -n %{name}+hashbrown-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+indexmap-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+indexmap-devel %{_description} This package contains library source intended for building other packages which use the "indexmap" feature of the "%{crate}" crate. %files -n %{name}+indexmap-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+layer-filter-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+layer-filter-devel %{_description} This package contains library source intended for building other packages which use the "layer-filter" feature of the "%{crate}" crate. %files -n %{name}+layer-filter-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+layer-router-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+layer-router-devel %{_description} This package contains library source intended for building other packages which use the "layer-router" feature of the "%{crate}" crate. %files -n %{name}+layer-router-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+layers-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+layers-devel %{_description} This package contains library source intended for building other packages which use the "layers" feature of the "%{crate}" crate. %files -n %{name}+layers-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+ordered-float-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ordered-float-devel %{_description} This package contains library source intended for building other packages which use the "ordered-float" feature of the "%{crate}" crate. %files -n %{name}+ordered-float-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+quanta-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+quanta-devel %{_description} This package contains library source intended for building other packages which use the "quanta" feature of the "%{crate}" crate. %files -n %{name}+quanta-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+radix_trie-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+radix_trie-devel %{_description} This package contains library source intended for building other packages which use the "radix_trie" feature of the "%{crate}" crate. %files -n %{name}+radix_trie-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rand-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rand-devel %{_description} This package contains library source intended for building other packages which use the "rand" feature of the "%{crate}" crate. %files -n %{name}+rand-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rand_xoshiro-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rand_xoshiro-devel %{_description} This package contains library source intended for building other packages which use the "rand_xoshiro" feature of the "%{crate}" crate. %files -n %{name}+rand_xoshiro-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+recency-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+recency-devel %{_description} This package contains library source intended for building other packages which use the "recency" feature of the "%{crate}" crate. %files -n %{name}+recency-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+registry-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+registry-devel %{_description} This package contains library source intended for building other packages which use the "registry" feature of the "%{crate}" crate. %files -n %{name}+registry-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sketches-ddsketch-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sketches-ddsketch-devel %{_description} This package contains library source intended for building other packages which use the "sketches-ddsketch" feature of the "%{crate}" crate. %files -n %{name}+sketches-ddsketch-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+storage-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+storage-devel %{_description} This package contains library source intended for building other packages which use the "storage" feature of the "%{crate}" crate. %files -n %{name}+storage-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # Do not depend on criterion; it is needed only for benchmarks. tomcli set Cargo.toml del dev-dependencies.criterion # Relax predicates dependencies # https://github.com/metrics-rs/metrics/pull/566 tomcli set Cargo.toml replace dev-dependencies.predicates.version '=3.1.0' '3.1.0' tomcli set Cargo.toml replace dev-dependencies.predicates-core.version '=1.0.6' '1.0.6' tomcli set Cargo.toml replace dev-dependencies.predicates-tree.version '=1.0.9' '1.0.9' # Widen mockall dependency tomcli set Cargo.toml replace dev-dependencies.mockall.version '0.12' '>=0.11, <0.14' %generate_buildrequires %cargo_generate_buildrequires -a %build %cargo_build -a %install %cargo_install -a %if %{with check} %check %cargo_test -a %endif %changelog %autochangelog