## START: Set by rpmautospec ## (rpmautospec version 0.3.8) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 25 # * missing dev depencies: all_asserts criterion quanta tynm %bcond_with check %global debug_package %{nil} %undefine __brp_mangle_shebangs %global crate governor Name: rust-governor Version: 0.6.0 Release: %autorelease Summary: Rate-limiting implementation in Rust License: MIT URL: https://crates.io/crates/governor Source: %{crates_source} # Manually created patch for downstream crate metadata changes Patch: governor-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A rate-limiting implementation in Rust.} %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 # FIXME: no license files detected %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}+dashmap-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+dashmap-devel %{_description} This package contains library source intended for building other packages which use the "dashmap" feature of the "%{crate}" crate. %files -n %{name}+dashmap-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}+futures-timer-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+futures-timer-devel %{_description} This package contains library source intended for building other packages which use the "futures-timer" feature of the "%{crate}" crate. %files -n %{name}+futures-timer-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+jitter-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+jitter-devel %{_description} This package contains library source intended for building other packages which use the "jitter" feature of the "%{crate}" crate. %files -n %{name}+jitter-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+no_std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+no_std-devel %{_description} This package contains library source intended for building other packages which use the "no_std" feature of the "%{crate}" crate. %files -n %{name}+no_std-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}+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}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Sun Jan 28 2024 John Doe - 0.6.0-1 - Uncommitted changes ## END: Generated by rpmautospec