# Generated by rust2rpm 26 %bcond_without check %global crate oxipng Name: rust-oxipng Version: 9.1.2 Release: %autorelease Summary: Lossless PNG compression optimizer License: MIT URL: https://crates.io/crates/oxipng Source: %{crates_source} # Automatically generated patch to strip dependencies and normalize metadata Patch: oxipng-fix-metadata-auto.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A lossless PNG compression optimizer.} %description %{_description} %package -n %{crate} Summary: %{summary} # Apache-2.0 # Apache-2.0 OR MIT # Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT # BSL-1.0 # MIT # MIT OR Apache-2.0 (duplicate) # Zlib OR Apache-2.0 OR MIT License: %{shrink: Apache-2.0 AND (Apache-2.0 OR MIT) AND (Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT) AND BSL-1.0 AND 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 %license LICENSE.dependencies %doc CHANGELOG.md %doc MANUAL.txt %doc README.md %{_bindir}/oxipng %{_mandir}/man1/oxipng.1* %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use the "%{crate}" crate. %files devel %license %{crate_instdir}/LICENSE %doc %{crate_instdir}/CHANGELOG.md %doc %{crate_instdir}/MANUAL.txt %doc %{crate_instdir}/README.md %{crate_instdir}/ %package -n %{name}+default-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+default-devel %{_description} This package contains library source intended for building other packages which use the "default" feature of the "%{crate}" crate. %files -n %{name}+default-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+binary-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+binary-devel %{_description} This package contains library source intended for building other packages which use the "binary" feature of the "%{crate}" crate. %files -n %{name}+binary-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+filetime-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+filetime-devel %{_description} This package contains library source intended for building other packages which use the "filetime" feature of the "%{crate}" crate. %files -n %{name}+filetime-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+freestanding-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+freestanding-devel %{_description} This package contains library source intended for building other packages which use the "freestanding" feature of the "%{crate}" crate. %files -n %{name}+freestanding-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+parallel-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+parallel-devel %{_description} This package contains library source intended for building other packages which use the "parallel" feature of the "%{crate}" crate. %files -n %{name}+parallel-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zopfli-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+zopfli-devel %{_description} This package contains library source intended for building other packages which use the "zopfli" feature of the "%{crate}" crate. %files -n %{name}+zopfli-devel %ghost %{crate_instdir}/Cargo.toml %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 mansrc='target/release/assets/oxipng.1' mandest='%{buildroot}%{_mandir}/man1' install -t "${mandest}" -D -p -m 0644 "${mansrc}" %if %{with check} %check %cargo_test %endif %changelog %autochangelog