2017-10-27 17:04:57 +00:00
|
|
|
# Generated by rust2rpm
|
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
%global crate yubibomb
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
Version: 0.1.0
|
2017-12-31 13:48:45 +00:00
|
|
|
Release: 2%{?dist}
|
2017-10-27 17:04:57 +00:00
|
|
|
Summary: Rust command line tool that prints out a 6-digit random number
|
|
|
|
|
|
|
|
License: GPLv3+
|
|
|
|
URL: https://crates.io/crates/yubibomb
|
|
|
|
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
|
2017-12-31 13:48:45 +00:00
|
|
|
# Initial patched metadata
|
|
|
|
# * Bump rand to 0.4, https://gitlab.com/bowlofeggs/yubibomb/merge_requests/1
|
|
|
|
Patch0: yubibomb-0.1.0-fix-metadata.diff
|
2017-10-27 17:04:57 +00:00
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
# [dependencies]
|
2017-12-31 13:48:45 +00:00
|
|
|
BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0)
|
2017-10-27 17:04:57 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
|
|
|
|
|
|
|
%description -n %{crate}
|
|
|
|
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!
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
|
|
|
%{_bindir}/yubibomb
|
|
|
|
|
|
|
|
%changelog
|
2017-12-31 13:48:45 +00:00
|
|
|
* Sun Dec 31 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.0-1
|
|
|
|
- Bump rand to 0.4
|
|
|
|
|
2017-10-27 17:04:57 +00:00
|
|
|
* Wed Jun 28 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.0-1
|
|
|
|
- Initial package
|