diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..44a8a0c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/yubibomb-0.1.0.crate diff --git a/rust-yubibomb.spec b/rust-yubibomb.spec new file mode 100644 index 0000000..146b528 --- /dev/null +++ b/rust-yubibomb.spec @@ -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 - 0.1.0-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..3db20ed --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (yubibomb-0.1.0.crate) = ff0de0be755cbab345685c0555db82b3a9d94d52d132aff0eff5725b1ac46e1158e7d706e7fd7fd6f1ac30e4aa1130d8d96ff746bf2b346ceaf55b9a69fcc62c