2021-08-11 18:52:39 +00:00
|
|
|
# Generated by rust2rpm 18
|
2017-10-27 17:04:57 +00:00
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
%global crate yubibomb
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
2021-10-05 11:32:13 +00:00
|
|
|
Version: 0.2.6
|
2021-12-09 13:41:17 +00:00
|
|
|
Release: %autorelease
|
2017-10-27 17:04:57 +00:00
|
|
|
Summary: Rust command line tool that prints out a 6-digit random number
|
|
|
|
|
2019-02-17 17:40:15 +00:00
|
|
|
# Upstream license specification: GPL-3.0
|
2019-03-18 20:31:34 +00:00
|
|
|
License: GPLv3
|
2017-10-27 17:04:57 +00:00
|
|
|
URL: https://crates.io/crates/yubibomb
|
2019-02-17 17:40:15 +00:00
|
|
|
Source: %{crates_source}
|
2017-10-27 17:04:57 +00:00
|
|
|
|
|
|
|
ExclusiveArch: %{rust_arches}
|
2020-02-16 06:30:35 +00:00
|
|
|
%if %{__cargo_skip_build}
|
|
|
|
BuildArch: noarch
|
|
|
|
%endif
|
2017-10-27 17:04:57 +00:00
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
2020-02-16 06:30:35 +00:00
|
|
|
%global _description %{expand:
|
|
|
|
Don't you love when you accidentally tap your Yubikey when you have your IRC
|
2021-10-05 11:32:13 +00:00
|
|
|
client in focus and you send 987947 into Libera? Want to be able to have that
|
2020-02-16 06:30:35 +00:00
|
|
|
experience without having to reach all the way over to your laptop's USB port?
|
|
|
|
Now you can!.}
|
2019-02-17 17:40:15 +00:00
|
|
|
|
|
|
|
%description %{_description}
|
2017-10-27 17:04:57 +00:00
|
|
|
|
2020-02-16 06:30:35 +00:00
|
|
|
%if ! %{__cargo_skip_build}
|
2017-10-27 17:04:57 +00:00
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
2021-03-23 18:41:43 +00:00
|
|
|
# * GPLv3
|
|
|
|
# * MIT or ASL 2.0
|
|
|
|
License: GPLv3 and (MIT or ASL 2.0)
|
2017-10-27 17:04:57 +00:00
|
|
|
|
2019-03-18 20:31:34 +00:00
|
|
|
%description -n %{crate} %{_description}
|
2019-02-17 17:40:15 +00:00
|
|
|
|
|
|
|
%files -n %{crate}
|
|
|
|
%license LICENSE
|
2021-08-11 18:52:39 +00:00
|
|
|
%doc README.md CHANGELOG.md
|
2019-02-17 17:40:15 +00:00
|
|
|
%{_bindir}/yubibomb
|
2020-02-16 06:30:35 +00:00
|
|
|
%endif
|
2018-02-13 22:36:55 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2019-02-17 17:40:15 +00:00
|
|
|
%description devel %{_description}
|
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
|
|
|
which use "%{crate}" crate.
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%license LICENSE
|
2021-08-11 18:52:39 +00:00
|
|
|
%doc README.md CHANGELOG.md
|
2020-02-16 06:30:35 +00:00
|
|
|
%{cargo_registry}/%{crate}-%{version_no_tilde}/
|
2019-02-17 17:40:15 +00:00
|
|
|
|
|
|
|
%package -n %{name}+default-devel
|
|
|
|
Summary: %{summary}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n %{name}+default-devel %{_description}
|
2018-02-13 22:36:55 +00:00
|
|
|
|
|
|
|
This package contains library source intended for building other packages
|
2019-02-17 17:40:15 +00:00
|
|
|
which use "default" feature of "%{crate}" crate.
|
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
2020-02-16 06:30:35 +00:00
|
|
|
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml
|
2017-10-27 17:04:57 +00:00
|
|
|
|
|
|
|
%prep
|
2019-02-17 17:40:15 +00:00
|
|
|
%autosetup -n %{crate}-%{version_no_tilde} -p1
|
2017-10-27 17:04:57 +00:00
|
|
|
%cargo_prep
|
|
|
|
|
2020-02-16 06:30:35 +00:00
|
|
|
%generate_buildrequires
|
|
|
|
%cargo_generate_buildrequires
|
|
|
|
|
2017-10-27 17:04:57 +00:00
|
|
|
%build
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2021-12-09 13:41:17 +00:00
|
|
|
%autochangelog
|