# Generated by rust2rpm 28 %bcond check 1 # prevent library files from being installed %global cargo_install_lib 0 %global crate matugen Name: rust-matugen Version: 3.1.0 Release: %autorelease Summary: Material you color generation tool with templates License: GPL-2.0-only URL: https://crates.io/crates/matugen Source: %{crates_source} Source: matugen-3.1.0-vendor.tar.xz # Automatically generated patch to strip dependencies and normalize metadata Patch: matugen-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * drop dependencies for unused / off-by-default features # * correct license expression to conform to new SPDX versions: # https://github.com/InioX/matugen/issues/256 Patch: matugen-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 26 %global _description %{expand: A material you color generation tool with templates.} %description %{_description} %package -n %{crate} Summary: %{summary} # (MIT OR Apache-2.0) AND Unicode-DFS-2016 # 0BSD OR MIT OR Apache-2.0 # Apache-2.0 # Apache-2.0 OR BSL-1.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSD-2-Clause # BSD-2-Clause OR Apache-2.0 OR MIT # BSD-3-Clause # GPL-2.0-only # MIT # MIT OR Apache-2.0 # MIT OR Apache-2.0 OR NCSA # MIT OR Apache-2.0 OR Zlib # MIT OR Zlib OR Apache-2.0 # MPL-2.0 # Unlicense OR MIT # Zlib # Zlib OR Apache-2.0 OR MIT License: %{shrink: GPL-2.0-only AND Apache-2.0 AND Apache-2.0 WITH LLVM-exception AND BSD-2-Clause AND BSD-3-Clause AND MIT AND MPL-2.0 AND Unicode-DFS-2016 AND Zlib AND (0BSD OR MIT OR Apache-2.0) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND (BSD-2-Clause OR Apache-2.0 OR MIT) AND (MIT OR Apache-2.0 OR NCSA) AND (MIT OR Apache-2.0 OR Zlib) AND (Unlicense OR MIT) } # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %license cargo-vendor.txt %doc CHANGELOG.md %doc README.md %{_bindir}/matugen %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