# Generated by rust2rpm 16 %bcond_without check %global crate rpick Name: rust-%{crate} Version: 0.8.7 Release: 2%{?dist} Summary: Helps you pick items from a list by various algorithms # Upstream license specification: GPL-3.0 License: GPLv3 URL: https://crates.io/crates/rpick Source: %{crates_source} ExclusiveArch: %{rust_arches} %if %{__cargo_skip_build} BuildArch: noarch %endif BuildRequires: rust-packaging %global _description %{expand: Helps you pick items from a list by various algorithms. Example uses: pick a restaurant you haven't been to in a while, or an album to listen to.} %description %{_description} %if ! %{__cargo_skip_build} %package -n %{crate} Summary: %{summary} # Install all deps (without check), grab their licenses and make it simple # * ASL 2.0 or MIT # * MIT # * MIT or ASL 2.0 # * BSD # * CC0 License: GPLv3 and MIT and BSD and CC0 %description -n %{crate} %{_description} %files -n %{crate} %license LICENSE %doc README.md %{_bindir}/rpick %endif %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 %doc README.md %{cargo_registry}/%{crate}-%{version_no_tilde}/ %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_no_tilde}/Cargo.toml %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %generate_buildrequires %cargo_generate_buildrequires %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Fri Jan 21 2022 Fedora Release Engineering - 0.8.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Nov 26 17:31:29 EST 2021 Randy Barlow - 0.8.7-1 - Update to 0.8.7 (#1861179). * Fri Jul 23 2021 Fedora Release Engineering - 0.6.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Wed Jan 27 2021 Fedora Release Engineering - 0.6.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild