rust-yubibomb/rust-yubibomb.spec

68 lines
1.7 KiB
RPMSpec
Raw Normal View History

# Generated by rust2rpm
%bcond_without check
%global crate yubibomb
Name: rust-%{crate}
Version: 0.1.0
Release: 4%{?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
# Initial patched metadata
# * Bump rand to 0.4, https://gitlab.com/bowlofeggs/yubibomb/merge_requests/1
Patch0: yubibomb-0.1.0-fix-metadata.diff
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
# [dependencies]
BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.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
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Mon Jan 08 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.0-3
- Rebuild for rust-packaging v5
* Sun Dec 31 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.0-1
- Bump rand to 0.4
* Wed Jun 28 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.1.0-1
- Initial package