# Generated by rust2rpm 28 %bcond check 1 %global crate qrcode Name: rust-qrcode Version: 0.14.1 Release: %autorelease Summary: QR code encoder in Rust License: MIT OR Apache-2.0 URL: https://crates.io/crates/qrcode Source: %{crates_source} BuildRequires: cargo-rpm-macros >= 24 %global _description %{expand: QR code encoder in Rust.} %description %{_description} %package -n %{crate} Summary: %{summary} # Upstream license specification: MIT/Apache-2.0 License: MIT OR Apache-2.0 # LICENSE.dependencies contains a full license breakdown %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE-APACHE.txt %license LICENSE-MIT.txt %license LICENSE.dependencies %doc README.md %{_bindir}/qrencode %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-APACHE.txt %license %{crate_instdir}/LICENSE-MIT.txt %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}+bench-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+bench-devel %{_description} This package contains library source intended for building other packages which use the "bench" feature of the "%{crate}" crate. %files -n %{name}+bench-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}+pic-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+pic-devel %{_description} This package contains library source intended for building other packages which use the "pic" feature of the "%{crate}" crate. %files -n %{name}+pic-devel %ghost %{crate_instdir}/Cargo.toml %package -n %{name}+svg-devel Summary: %{summary} BuildArch: noarch %description -n %{name}+svg-devel %{_description} This package contains library source intended for building other packages which use the "svg" feature of the "%{crate}" crate. %files -n %{name}+svg-devel %ghost %{crate_instdir}/Cargo.toml %prep %autosetup -n %{crate}-%{version} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %{cargo_license_summary} %{cargo_license} > LICENSE.dependencies %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog %autochangelog