# Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate hayro-jpeg2000 Name: rust-hayro-jpeg2000 Version: 0.3.2 Release: %autorelease Summary: Memory-safe, pure-Rust JPEG 2000 decoder License: Apache-2.0 OR MIT URL: https://crates.io/crates/hayro-jpeg2000 Source: %{crates_source} # Manually created patch for downstream crate metadata changes # * Bump fearless_simd to 0.4 # * Temporarily downgrade moxcms to 0.7.5 # * Bump indicatif to 0.18 Patch: hayro-jpeg2000-fix-metadata.diff # * https://github.com/LaurenzV/hayro/pull/948 Patch2: Upgrade-to-fearless_simd-v0.4.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A memory-safe, pure-Rust JPEG 2000 decoder.} %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}/assets/LICENSE.txt %doc %{crate_instdir}/README.md %doc %{crate_instdir}/TESTS.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}+fearless_simd-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+fearless_simd-devel %{_description} This package contains library source intended for building other packages which use the "fearless_simd" feature of the "%{crate}" crate. %files -n %{name}+fearless_simd-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}+logging-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+logging-devel %{_description} This package contains library source intended for building other packages which use the "logging" feature of the "%{crate}" crate. %files -n %{name}+logging-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+simd-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+simd-devel %{_description} This package contains library source intended for building other packages which use the "simd" feature of the "%{crate}" crate. %files -n %{name}+simd-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+std-devel %{_description} This package contains library source intended for building other packages which use the "std" feature of the "%{crate}" crate. %files -n %{name}+std-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 # * Skip tests that require external assets %cargo_test -- --lib %cargo_test -- --doc %endif %changelog %autochangelog