## 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 Name: rust-qrcodegen Version: 1.8.0 Release: %autorelease Summary: High-quality QR Code generator library License: MIT URL: https://crates.io/crates/qrcodegen Source: %{crates_source} # * add license: https://github.com/nayuki/QR-Code-generator/pull/250 Source2: https://raw.githubusercontent.com/michel-slm/QR-Code-generator/refs/heads/add-rust-license/LICENSE.md BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: High-quality QR Code generator 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.md %doc %{crate_instdir}/Readme.markdown %{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 %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 # * doctests do not have the right imports %cargo_test -- --lib %endif %changelog ## START: Generated by rpmautospec * Thu Sep 03 2026 John Doe - 1.8.0-1 - Uncommitted changes ## END: Generated by rpmautospec