# Generated by rust2rpm 27 # * We can't run tests without ublk_drv loaded and a number of other things %bcond check 0 # prevent library files from being installed %global cargo_install_lib 0 %global crate test-bd Name: rust-test-bd Version: 0.2.0 Release: %autorelease Summary: Library and CLI tool for creating RO test block devices License: MIT OR Apache-2.0 URL: https://crates.io/crates/test-bd Source: %{crates_source} Source: test-bd-0.2.0-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: clang-devel %global _description %{expand: A library and CLI tool for creating procedurally generated test block devices using ublk.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: # FIXME # LICENSE.dependencies contains a full license breakdown Requires: ublknonroot >= 1.0 %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/test-bd %{_bindir}/test-bd-verify %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 %changelog %autochangelog