# Generated by rust2rpm 28 %bcond check 1 %global cargo_install_lib 0 %global crate caligula Name: caligula Version: 0.4.8 Release: %autorelease Summary: Lightweight, user-friendly disk imaging tool License: GPL-3.0-only AND 0BSD AND Apache-2.0 AND BSD-3-Clause AND CC0-1.0 AND MIT AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (MIT OR Zlib OR Apache-2.0) AND (Unlicense OR MIT) URL: https://crates.io/crates/caligula Source0: %{crates_source} Source1: caligula-%{version}-vendor.tar.xz Patch0: caligula-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: A lightweight, user-friendly disk imaging tool. It allows you to easily flash ISOs to USB drives with a clean interface.} %description %{_description} %prep %autosetup -n %{crate}-%{version} -p1 -a1 %cargo_prep -v vendor %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %{cargo_vendor_manifest} %install %cargo_install %if %{with check} %check %cargo_test %endif %files %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/caligula %changelog %autochangelog