# Generated by rust2rpm 18 %bcond_without check %global __cargo_skip_build 0 %global crate szip Name: rust-%{crate} Version: 1.0.0 Release: 1%{?dist} Summary: Fast command line tool for snappy compression and decompression # Upstream license specification: BSD-3-Clause License: BSD URL: https://crates.io/crates/szip Source: %{crates_source} ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging %global _description %{expand: Fast command line tool for snappy compression and decompression.} %description %{_description} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{_description} %files -n %{crate} %license COPYING %doc README.md %{_bindir}/szip %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