initial import

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2017-10-27 19:04:57 +02:00
parent 6c8c884d09
commit 4a0c6baa8d
3 changed files with 57 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/yubibomb-0.1.0.crate

55
rust-yubibomb.spec Normal file
View File

@ -0,0 +1,55 @@
# Generated by rust2rpm
%bcond_without check
%global crate yubibomb
Name: rust-%{crate}
Version: 0.1.0
Release: 1%{?dist}
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
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(rand) >= 0.3.0 with crate(rand) < 0.4.0)
%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
* Wed Jun 28 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.0-1
- Initial package

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (yubibomb-0.1.0.crate) = ff0de0be755cbab345685c0555db82b3a9d94d52d132aff0eff5725b1ac46e1158e7d706e7fd7fd6f1ac30e4aa1130d8d96ff746bf2b346ceaf55b9a69fcc62c