# Generated by rust2rpm 22 %bcond_without check %global crate sinit Name: rust-sinit Version: 0.1.2 Release: %autorelease Summary: Simple init system for use in containers License: BSD-2-Clause URL: https://crates.io/crates/sinit Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging >= 21 %global _description %{expand: Simple init system for use in containers.} %description %{_description} %package -n %{crate} Summary: %{summary} # Effective license calculation: # BSD-2-Clause and (MIT OR Apache-2.0) and (MIT or ASL 2.0) License: BSD-2-Clause and (MIT or Apache-2.0) %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc README.md %{_bindir}/sinit %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog