## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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 28 %bcond check 1 %global debug_package %{nil} %global crate totp-rs Name: rust-totp-rs Version: 6.0.0 Release: %autorelease Summary: Easy to use, RFC-compliant TOTP implementation License: MIT URL: https://crates.io/crates/totp-rs Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: RFC-compliant TOTP implementation with ease of use as a goal and additional QoL features.} %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}/MIGRATION.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}+alloc-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+alloc-devel %{_description} This package contains library source intended for building other packages which use the "alloc" feature of the "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+gen_secret-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+gen_secret-devel %{_description} This package contains library source intended for building other packages which use the "gen_secret" feature of the "%{crate}" crate. %files -n %{name}+gen_secret-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+migration-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+migration-devel %{_description} This package contains library source intended for building other packages which use the "migration" feature of the "%{crate}" crate. %files -n %{name}+migration-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+otpauth-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+otpauth-devel %{_description} This package contains library source intended for building other packages which use the "otpauth" feature of the "%{crate}" crate. %files -n %{name}+otpauth-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+qr-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+qr-devel %{_description} This package contains library source intended for building other packages which use the "qr" feature of the "%{crate}" crate. %files -n %{name}+qr-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-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 %package -n %{name}+steam-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+steam-devel %{_description} This package contains library source intended for building other packages which use the "steam" feature of the "%{crate}" crate. %files -n %{name}+steam-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zeroize-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+zeroize-devel %{_description} This package contains library source intended for building other packages which use the "zeroize" feature of the "%{crate}" crate. %files -n %{name}+zeroize-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 * Thu Sep 03 2026 John Doe - 6.0.0-1 - Uncommitted changes ## END: Generated by rpmautospec