# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate load_image Name: rust-load_image Version: 3.3.2 Release: %autorelease Summary: Load PNG or JPEG with color profile support License: BSD-3-Clause URL: https://crates.io/crates/load_image Source: %{crates_source} # loosen unsually stirct version bound Patch: load_image-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Load PNG or JPEG with color profile support.} %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}+avif-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+avif-devel %{_description} This package contains library source intended for building other packages which use the "avif" feature of the "%{crate}" crate. %files -n %{name}+avif-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+cfzlib-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+cfzlib-devel %{_description} This package contains library source intended for building other packages which use the "cfzlib" feature of the "%{crate}" crate. %files -n %{name}+cfzlib-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+jpeg-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+jpeg-devel %{_description} This package contains library source intended for building other packages which use the "jpeg" feature of the "%{crate}" crate. %files -n %{name}+jpeg-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+mozjpeg-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+mozjpeg-devel %{_description} This package contains library source intended for building other packages which use the "mozjpeg" feature of the "%{crate}" crate. %files -n %{name}+mozjpeg-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+stat-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+stat-devel %{_description} This package contains library source intended for building other packages which use the "stat" feature of the "%{crate}" crate. %files -n %{name}+stat-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+static-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+static-devel %{_description} This package contains library source intended for building other packages which use the "static" feature of the "%{crate}" crate. %files -n %{name}+static-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+webp-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+webp-devel %{_description} This package contains library source intended for building other packages which use the "webp" feature of the "%{crate}" crate. %files -n %{name}+webp-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+zlibrs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+zlibrs-devel %{_description} This package contains library source intended for building other packages which use the "zlibrs" feature of the "%{crate}" crate. %files -n %{name}+zlibrs-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog