## START: Set by rpmautospec ## (rpmautospec version 0.8.4) ## 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 rxing Name: rust-rxing Version: 0.9.4 Release: %autorelease Summary: Rust port of the zxing barcode library License: Apache-2.0 URL: https://crates.io/crates/rxing Source: %{crates_source} # Manually created patch for downstream crate metadata changes Patch: rxing-fix-metadata.diff # Fix build with imageproc 0.26 # part of https://github.com/rxing-core/rxing/commit/b05fa1caf08b84e9949ec79e2f0c15442318f370 Patch: rxing-imageproc0.26.patch BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: A rust port of the zxing barcode library.} %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}/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}+allow_forced_iso_ied_18004_compliance-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+allow_forced_iso_ied_18004_compliance-devel %{_description} This package contains library source intended for building other packages which use the "allow_forced_iso_ied_18004_compliance" feature of the "%{crate}" crate. %files -n %{name}+allow_forced_iso_ied_18004_compliance-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+aztec-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+aztec-devel %{_description} This package contains library source intended for building other packages which use the "aztec" feature of the "%{crate}" crate. %files -n %{name}+aztec-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+client_support-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+client_support-devel %{_description} This package contains library source intended for building other packages which use the "client_support" feature of the "%{crate}" crate. %files -n %{name}+client_support-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+datamatrix-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+datamatrix-devel %{_description} This package contains library source intended for building other packages which use the "datamatrix" feature of the "%{crate}" crate. %files -n %{name}+datamatrix-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+decoders-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+decoders-devel %{_description} This package contains library source intended for building other packages which use the "decoders" feature of the "%{crate}" crate. %files -n %{name}+decoders-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+encoders-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+encoders-devel %{_description} This package contains library source intended for building other packages which use the "encoders" feature of the "%{crate}" crate. %files -n %{name}+encoders-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+encoding_rs-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+encoding_rs-devel %{_description} This package contains library source intended for building other packages which use the "encoding_rs" feature of the "%{crate}" crate. %files -n %{name}+encoding_rs-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+experimental_features-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+experimental_features-devel %{_description} This package contains library source intended for building other packages which use the "experimental_features" feature of the "%{crate}" crate. %files -n %{name}+experimental_features-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+full_barcode_format_support-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+full_barcode_format_support-devel %{_description} This package contains library source intended for building other packages which use the "full_barcode_format_support" feature of the "%{crate}" crate. %files -n %{name}+full_barcode_format_support-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}+image_formats-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+image_formats-devel %{_description} This package contains library source intended for building other packages which use the "image_formats" feature of the "%{crate}" crate. %files -n %{name}+image_formats-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+legacy_encoding-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+legacy_encoding-devel %{_description} This package contains library source intended for building other packages which use the "legacy_encoding" feature of the "%{crate}" crate. %files -n %{name}+legacy_encoding-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+maxicode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+maxicode-devel %{_description} This package contains library source intended for building other packages which use the "maxicode" feature of the "%{crate}" crate. %files -n %{name}+maxicode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+multi_barcode_readers-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+multi_barcode_readers-devel %{_description} This package contains library source intended for building other packages which use the "multi_barcode_readers" feature of the "%{crate}" crate. %files -n %{name}+multi_barcode_readers-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+no_character_set_support-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+no_character_set_support-devel %{_description} This package contains library source intended for building other packages which use the "no_character_set_support" feature of the "%{crate}" crate. %files -n %{name}+no_character_set_support-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+oned-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+oned-devel %{_description} This package contains library source intended for building other packages which use the "oned" feature of the "%{crate}" crate. %files -n %{name}+oned-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+otsu_level-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+otsu_level-devel %{_description} This package contains library source intended for building other packages which use the "otsu_level" feature of the "%{crate}" crate. %files -n %{name}+otsu_level-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+pdf417-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pdf417-devel %{_description} This package contains library source intended for building other packages which use the "pdf417" feature of the "%{crate}" crate. %files -n %{name}+pdf417-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+qrcode-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+qrcode-devel %{_description} This package contains library source intended for building other packages which use the "qrcode" feature of the "%{crate}" crate. %files -n %{name}+qrcode-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+rayon-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+rayon-devel %{_description} This package contains library source intended for building other packages which use the "rayon" feature of the "%{crate}" crate. %files -n %{name}+rayon-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+reverse_pyramid_layers-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+reverse_pyramid_layers-devel %{_description} This package contains library source intended for building other packages which use the "reverse_pyramid_layers" feature of the "%{crate}" crate. %files -n %{name}+reverse_pyramid_layers-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+serde-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+serde-devel %{_description} This package contains library source intended for building other packages which use the "serde" feature of the "%{crate}" crate. %files -n %{name}+serde-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+svg_read-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+svg_read-devel %{_description} This package contains library source intended for building other packages which use the "svg_read" feature of the "%{crate}" crate. %files -n %{name}+svg_read-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+svg_write-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+svg_write-devel %{_description} This package contains library source intended for building other packages which use the "svg_write" feature of the "%{crate}" crate. %files -n %{name}+svg_write-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+wasm_support-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+wasm_support-devel %{_description} This package contains library source intended for building other packages which use the "wasm_support" feature of the "%{crate}" crate. %files -n %{name}+wasm_support-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 ## START: Generated by rpmautospec * Thu Nov 26 2026 Dominik 'Rathann' Mierzejewski - 0.9.4-1 - initial package - relax some dependencies - drop unused dependencies - fix build with imageproc 0.26 ## END: Generated by rpmautospec