# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate lodepng Name: rust-lodepng Version: 3.12.2 Release: %autorelease Summary: Reading and writing PNG files without system dependencies License: Zlib URL: https://crates.io/crates/lodepng Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Reading and writing PNG files without system dependencies. Pure Rust port of LodePNG.} %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}/COPYRIGHT %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}+_deprecated_c_ffi_default_-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+_deprecated_c_ffi_default_-devel %{_description} This package contains library source intended for building other packages which use the "_deprecated_c_ffi_default_" feature of the "%{crate}" crate. %files -n %{name}+_deprecated_c_ffi_default_-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+c_ffi-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+c_ffi-devel %{_description} This package contains library source intended for building other packages which use the "c_ffi" feature of the "%{crate}" crate. %files -n %{name}+c_ffi-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}+ngzlib-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+ngzlib-devel %{_description} This package contains library source intended for building other packages which use the "ngzlib" feature of the "%{crate}" crate. %files -n %{name}+ngzlib-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rust_backend-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rust_backend-devel %{_description} This package contains library source intended for building other packages which use the "rust_backend" feature of the "%{crate}" crate. %files -n %{name}+rust_backend-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 # * tried to unwrap on Err. unable to repo %cargo_test -- -- --skip read_icc %endif %changelog %autochangelog