## 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 sha2 Name: rust-sha2_0.10 Version: 0.10.9 Release: %autorelease Summary: Pure Rust implementation of the SHA-2 hash function family License: MIT OR Apache-2.0 URL: https://crates.io/crates/sha2 Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Pure Rust implementation of the SHA-2 hash function family including SHA-224, SHA-256, SHA-384, and SHA-512.} %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}/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}+asm-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+asm-devel %{_description} This package contains library source intended for building other packages which use the "asm" feature of the "%{crate}" crate. %files -n %{name}+asm-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+asm-aarch64-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+asm-aarch64-devel %{_description} This package contains library source intended for building other packages which use the "asm-aarch64" feature of the "%{crate}" crate. %files -n %{name}+asm-aarch64-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+compress-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+compress-devel %{_description} This package contains library source intended for building other packages which use the "compress" feature of the "%{crate}" crate. %files -n %{name}+compress-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+force-soft-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+force-soft-devel %{_description} This package contains library source intended for building other packages which use the "force-soft" feature of the "%{crate}" crate. %files -n %{name}+force-soft-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+force-soft-compact-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+force-soft-compact-devel %{_description} This package contains library source intended for building other packages which use the "force-soft-compact" feature of the "%{crate}" crate. %files -n %{name}+force-soft-compact-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+loongarch64_asm-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+loongarch64_asm-devel %{_description} This package contains library source intended for building other packages which use the "loongarch64_asm" feature of the "%{crate}" crate. %files -n %{name}+loongarch64_asm-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+oid-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+oid-devel %{_description} This package contains library source intended for building other packages which use the "oid" feature of the "%{crate}" crate. %files -n %{name}+oid-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+sha2-asm-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+sha2-asm-devel %{_description} This package contains library source intended for building other packages which use the "sha2-asm" feature of the "%{crate}" crate. %files -n %{name}+sha2-asm-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 * Mon Jun 08 2026 John Doe - 0.10.9-1 - Uncommitted changes ## END: Generated by rpmautospec