# Generated by rust2rpm 26 %bcond_without check # prevent library files from being installed %global cargo_install_lib 0 %global crate rublk Name: rust-rublk Version: 0.2.1 Release: %autorelease Summary: Rust ublk generic targets License: GPL-2.0-or-later URL: https://crates.io/crates/rublk Source: %{crates_source} Source: rublk-0.2.1-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 26 BuildRequires: clang-libs %global _description %{expand: Rust ublk generic targets.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: GPL-2.0-or-later # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license COPYING %license LICENSE.dependencies %license cargo-vendor.txt %doc README.md %{_bindir}/rublk %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