# Generated by rust2rpm 28 %bcond check 1 %global crate krunai Name: rust-krunai Version: 0.2.1 Release: 1 Summary: Create microVMs for running AI agents License: Apache-2.0 URL: https://crates.io/crates/krunai Source: %{crates_source} # This crate depends on libkrun and it's only available on x86_64 and aarch64 ExclusiveArch: x86_64 aarch64 BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Create microVMs for running AI agents.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: Apache-2.0 AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND MIT AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) # LICENSE.dependencies contains a full license breakdown Requires: libkrunfw >= 5.2.1 %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc README.md %{_bindir}/krunai %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog