## 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 qrcodegen-image Name: rust-qrcodegen-image Version: 1.5.2 Release: %autorelease Summary: Draw QR codes to a PNG canvas License: MIT URL: https://crates.io/crates/qrcodegen-image Source: %{crates_source} # * add license: https://github.com/constantoine/qrcodegen-image/pull/3 Source2: https://raw.githubusercontent.com/michel-slm/rust-qrcodegen-image/refs/heads/add-license/LICENSE # Manually created patch for downstream crate metadata changes # * drop criterion (benchmark dep) Patch: qrcodegen-image-fix-metadata.diff BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: Draw QR codes to a PNG canvas. Wrapper around the qrcodegen and image crates.} %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}/CHANGELOG.md %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}+base64-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+base64-devel %{_description} This package contains library source intended for building other packages which use the "base64" feature of the "%{crate}" crate. %files -n %{name}+base64-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep # copy in license text cp -p %{SOURCE2} . %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog ## START: Generated by rpmautospec * Thu Sep 03 2026 John Doe - 1.5.2-1 - Uncommitted changes ## END: Generated by rpmautospec