# Generated by rust2rpm 25 %bcond_without check %global crate vivid Name: rust-vivid Version: 0.9.0 Release: %autorelease Summary: LS_COLORS manager with multiple themes # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 URL: https://crates.io/crates/vivid Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: LS_COLORS manager with multiple themes.} %description %{_description} %package -n %{crate} Summary: %{summary} # FIXME: paste output of %%cargo_license_summary here License: # FIXME # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE.dependencies %doc CHANGELOG.md %doc README.md %{_bindir}/vivid %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires -a %build %cargo_build -a %{cargo_license_summary -a} %{cargo_license -a} > LICENSE.dependencies %install %cargo_install -a %if %{with check} %check %cargo_test -a %endif %changelog %autochangelog