## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Generated by rust2rpm 28 %bcond check 1 %global debug_package %{nil} %global crate hayro-jpeg2000 Name: rust-hayro-jpeg2000 Version: 0.3.3 Release: %autorelease Summary: Memory-safe, pure-Rust JPEG 2000 decoder License: (Apache-2.0 OR MIT) AND CC0-1.0 URL: https://crates.io/crates/hayro-jpeg2000 Source: %{crates_source} # * https://github.com/LaurenzV/hayro/pull/1053 Source2: https://github.com/LaurenzV/hayro/raw/refs/tags/%{crate}-v%{version}/LICENSE-APACHE # * https://github.com/LaurenzV/hayro/pull/1053 Source3: https://github.com/LaurenzV/hayro/raw/refs/tags/%{crate}-v%{version}/LICENSE-MIT # Manually created patch for downstream crate metadata changes # * Temporarily downgrade moxcms to 0.7.5 # * Drop unused indicatif dev-dependency # * Update license to document that the content under assets/ under CC0-1.0 Patch: hayro-jpeg2000-fix-metadata.diff 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 %license %{crate_instdir}/LICENSE-APACHE %license %{crate_instdir}/LICENSE-MIT %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}+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 cp -p %SOURCE2 %SOURCE3 . %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Tue Mar 10 2026 Davide Cavalca - 0.3.3-1 - Initial import; Fixes: RHBZ#2443679 ## END: Generated by rpmautospec