# Generated by rust2rpm %bcond_without check %global debug_package %{nil} # Binary is useless %global __cargo_is_bin() false %global crate qrcode Name: rust-%{crate} Version: 0.9.0 Release: 1%{?dist} Summary: QR code encoder in Rust # Upstream license specification: MIT / Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/qrcode Source: %{crates_source} # Initial patched metadata # * Update image to 0.21, https://github.com/kennytm/qrcode-rust/pull/25 Patch0: qrcode-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(checked_int_cast/default) >= 1.0.0 with crate(checked_int_cast/default) < 2.0.0) BuildRequires: (crate(image/default) >= 0.21.0 with crate(image/default) < 0.22.0) %global _description \ QR code encoder in Rust. %description %{_description} %package devel Summary: %{summary} BuildArch: noarch %description devel %{_description} This package contains library source intended for building other packages which use "%{crate}" crate. %files devel %license LICENSE-MIT.txt LICENSE-APACHE.txt %doc README.md %{cargo_registry}/%{crate}-%{version}/ %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 "default" feature of "%{crate}" crate. %files -n %{name}+default-devel %ghost %{cargo_registry}/%{crate}-%{version}/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 "image" feature of "%{crate}" crate. %files -n %{name}+image-devel %ghost %{cargo_registry}/%{crate}-%{version}/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 "svg" feature of "%{crate}" crate. %files -n %{name}+svg-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Fri Mar 15 2019 Igor Gnatenko - 0.9.0-1 - Initial package