# Generated by rust2rpm 28 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 %global crate vivid Name: rust-vivid Version: 0.10.1 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} Source: vivid-0.10.1-vendor.tar.xz BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: LS_COLORS manager with multiple themes.} %description %{_description} %package -n %{crate} Summary: %{summary} # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # LGPL-3.0-or-later # MIT # MIT OR Apache-2.0 # Unlicense OR MIT # Zlib OR Apache-2.0 OR MIT License: %{shrink: (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND LGPL-3.0-or-later AND MIT AND (MIT OR Apache-2.0) AND (Unlicense OR MIT) AND (Zlib OR Apache-2.0 OR MIT) } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE %license LICENSE-MIT %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc README.md %{_bindir}/vivid %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