# Generated by rust2rpm 26 # * missing dev-dependencies: testresult ^0.3 %bcond_with check %global debug_package %{nil} %global crate jpegxl-rs %global upstream_version 0.8.3+libjxl-0.8.2 Name: rust-jpegxl-rs Version: 0.8.3 Release: %autorelease Summary: Safe Rust wrapper for JPEG XL reference implementation License: GPL-3.0-or-later URL: https://crates.io/crates/jpegxl-rs Source: %{crates_source %{crate} %{upstream_version}} # Automatically generated patch to strip dependencies and normalize metadata Patch: jpegxl-rs-fix-metadata-auto.diff # Manually created patch for downstream crate metadata changes # * drop unused, benchmark-only criterion dev-dependency Patch: jpegxl-rs-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Safe Rust wrapper for JPEG XL reference implementation.} %description %{_description} %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}/COPYING %license %{crate_instdir}/LICENSE %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}+bench-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bench-devel %{_description} This package contains library source intended for building other packages which use the "bench" feature of the "%{crate}" crate. %files -n %{name}+bench-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+docs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+docs-devel %{_description} This package contains library source intended for building other packages which use the "docs" feature of the "%{crate}" crate. %files -n %{name}+docs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+image-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+image-devel %{_description} This package contains library source intended for building other packages which use the "image" feature of the "%{crate}" crate. %files -n %{name}+image-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+threads-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+threads-devel %{_description} This package contains library source intended for building other packages which use the "threads" feature of the "%{crate}" crate. %files -n %{name}+threads-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{upstream_version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog