2023-05-08 14:38:56 +00:00
|
|
|
# Generated by rust2rpm 24
|
2017-10-27 17:04:57 +00:00
|
|
|
%bcond_without check
|
|
|
|
|
|
|
|
%global crate yubibomb
|
|
|
|
|
2023-05-08 14:38:56 +00:00
|
|
|
Name: rust-yubibomb
|
|
|
|
Version: 0.2.12
|
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
|
|
|
|
|
2023-05-08 14:38:56 +00:00
|
|
|
License: GPL-3.0
|
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
|
|
|
|
2023-05-08 14:38:56 +00:00
|
|
|
BuildRequires: rust-packaging >= 23
|
2017-10-27 17:04:57 +00:00
|
|
|
|
2020-02-16 06:30:35 +00:00
|
|
|
%global _description %{expand:
|
2023-05-08 14:38:56 +00:00
|
|
|
Don't you love when you accidentally tap your Yubikey when you have your
|
|
|
|
IRC client in focus and you send 987947 into Libera? 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!}
|
2019-02-17 17:40:15 +00:00
|
|
|
|
|
|
|
%description %{_description}
|
2017-10-27 17:04:57 +00:00
|
|
|
|
|
|
|
%package -n %{crate}
|
|
|
|
Summary: %{summary}
|
2023-05-08 14:38:56 +00:00
|
|
|
# GPL-3.0
|
|
|
|
# MIT OR Apache-2.0
|
|
|
|
License: GPL-3.0 AND (MIT OR Apache-2.0)
|
|
|
|
# LICENSE.dependencies contains a full license breakdown
|
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
|
2023-05-08 14:38:56 +00:00
|
|
|
%license LICENSE.dependencies
|
|
|
|
%doc CHANGELOG.md
|
|
|
|
%doc README.md
|
2019-02-17 17:40:15 +00:00
|
|
|
%{_bindir}/yubibomb
|
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}
|
|
|
|
|
2021-12-09 13:54:30 +00:00
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use the "%{crate}" crate.
|
2019-02-17 17:40:15 +00:00
|
|
|
|
|
|
|
%files devel
|
2023-05-08 14:38:56 +00:00
|
|
|
%license %{crate_instdir}/LICENSE
|
|
|
|
%doc %{crate_instdir}/CHANGELOG.md
|
|
|
|
%doc %{crate_instdir}/README.md
|
|
|
|
%{crate_instdir}/
|
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
|
|
|
|
2021-12-09 13:54:30 +00:00
|
|
|
This package contains library source intended for building other packages which
|
|
|
|
use the "default" feature of the "%{crate}" crate.
|
2019-02-17 17:40:15 +00:00
|
|
|
|
|
|
|
%files -n %{name}+default-devel
|
2023-05-08 14:38:56 +00:00
|
|
|
%ghost %{crate_instdir}/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
|
2023-05-08 14:38:56 +00:00
|
|
|
%cargo_license_summary
|
|
|
|
%{cargo_license} > LICENSE.dependencies
|
2017-10-27 17:04:57 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%cargo_install
|
|
|
|
|
|
|
|
%if %{with check}
|
|
|
|
%check
|
|
|
|
%cargo_test
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|
2021-12-09 13:41:17 +00:00
|
|
|
%autochangelog
|