# Generated by rust2rpm 28 %bcond check 1 %global crate cavif Name: rust-cavif Version: 1.6.0 Release: %autorelease Summary: Encodes images in AVIF format License: BSD-3-Clause URL: https://crates.io/crates/cavif Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * disable static lib feature Patch: cavif-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Encodes images in AVIF format (image2avif converter) using a pure-Rust encoder.} %description %{_description} %package -n %{crate} Summary: %{summary} License: (MIT OR Apache-2.0) AND NCSA) AND ((MIT OR Apache-2.0) AND Unicode-3.0) AND (0BSD OR Apache-2.0 OR MIT) AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR BSD-2-Clause OR MIT) AND (Apache-2.0 OR CC0-1.0) AND (Apache-2.0 OR CC0-1.0 OR MIT-0) AND (Apache-2.0 OR LGPL-2.1-or-later OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT OR Zlib) AND (BSD-2-Clause) AND (BSD-3-Clause) AND (MIT) AND (MIT OR Unlicense) AND MPL-2.0 AND Zlib) # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %license LICENSE.dependencies %doc README.md %{_bindir}/cavif %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog