# Generated by rust2rpm %bcond_without check %global crate yubibomb Name: rust-%{crate} Version: 0.2.0 Release: 5%{?dist} Summary: Rust command line tool that prints out a 6-digit random number # Upstream license specification: GPL-3.0 License: GPLv3+ URL: https://crates.io/crates/yubibomb Source: %{crates_source} # Initial patched metadata # * Bump regex to 1, https://gitlab.com/bowlofeggs/yubibomb/commit/301cb10cd056cd33c4736b87aaad333f77c6c252 Patch0: yubibomb-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(rand/default) >= 0.4.0 with crate(rand/default) < 0.5.0) %if %{with check} BuildRequires: (crate(regex/default) >= 1.0.0 with crate(regex/default) < 2.0.0) %endif %global _description \ Don't you love when you accidentally tap your Yubikey when you have your IRC\ client in focus and you send 987947 into Freenode? Want to be able to have that\ experience without having to reach all the way over to your laptop's USB port?\ Now you can! %description %{_description} %package -n %{crate} Summary: %{summary} %description -n %{crate} %{summary}. %files -n %{crate} %license LICENSE %doc README.md %{_bindir}/yubibomb %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}/ %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 %prep %autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build %cargo_build %install %cargo_install %if %{with check} %check %cargo_test %endif %changelog * Sun Feb 17 2019 Igor Gnatenko - 0.2.0-5 - Adapt to new packaging * Sat Feb 02 2019 Fedora Release Engineering - 0.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sat Jul 14 2018 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Jun 14 2018 Igor Gnatenko - 0.2.0-2 - Bump regex to 1 * Fri Feb 09 2018 Fedora Release Engineering - 0.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 08 2018 Igor Gnatenko - 0.1.0-3 - Rebuild for rust-packaging v5 * Sun Dec 31 2017 Igor Gnatenko - 0.1.0-1 - Bump rand to 0.4 * Wed Jun 28 2017 Igor Gnatenko - 0.1.0-1 - Initial package