From e541e708cc696770f71193304738f2821940098b Mon Sep 17 00:00:00 2001 From: Randy Barlow Date: Feb 13 2018 22:37:35 +0000 Subject: Update to 0.2.0 Merges: https://src.fedoraproject.org/rpms/rust-yubibomb/pull-request/1 Signed-off-by: Randy Barlow Signed-off-by: Igor Gnatenko --- diff --git a/.gitignore b/.gitignore index 44a8a0c..233535e 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /yubibomb-0.1.0.crate +/yubibomb-0.2.0.crate diff --git a/rust-yubibomb.spec b/rust-yubibomb.spec index ecda2ed..c464740 100644 --- a/rust-yubibomb.spec +++ b/rust-yubibomb.spec @@ -4,22 +4,23 @@ %global crate yubibomb Name: rust-%{crate} -Version: 0.1.0 -Release: 4%{?dist} +Version: 0.2.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 -# 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) +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(regex) >= 0.2.0 with crate(regex) < 0.3.0) +%endif %description %{summary}. @@ -28,10 +29,23 @@ BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) 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! +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! + +%package devel +Summary: %{summary} +BuildArch: noarch + +%description devel +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! + +This package contains library source intended for building other packages +which use %{crate} from crates.io. %prep %autosetup -n %{crate}-%{version} -p1 @@ -53,6 +67,11 @@ to your laptop's USB port? Now you can! %doc README.md %{_bindir}/yubibomb +%files devel +%license LICENSE +%doc README.md +%{cargo_registry}/%{crate}-%{version}/ + %changelog * Fri Feb 09 2018 Fedora Release Engineering - 0.1.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources index 3db20ed..9c297d9 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (yubibomb-0.1.0.crate) = ff0de0be755cbab345685c0555db82b3a9d94d52d132aff0eff5725b1ac46e1158e7d706e7fd7fd6f1ac30e4aa1130d8d96ff746bf2b346ceaf55b9a69fcc62c +SHA512 (yubibomb-0.2.0.crate) = c187f3bf3549a1bc5f501086e1de643b465364042ce0084f1f21f90b03d0b42edccd083ffe39210b20d4a97bf2deaf9437b30008a2bcef52948748b9c17b12ef diff --git a/yubibomb-0.1.0-fix-metadata.diff b/yubibomb-0.1.0-fix-metadata.diff deleted file mode 100644 index ce3346a..0000000 --- a/yubibomb-0.1.0-fix-metadata.diff +++ /dev/null @@ -1,8 +0,0 @@ ---- yubibomb-0.1.0/Cargo.toml 2017-05-01T03:20:39+02:00 -+++ yubibomb-0.1.0/Cargo.toml 2017-12-31T14:48:15.928601+01:00 -@@ -13,4 +13,4 @@ - readme = "README.md" - - [dependencies] --rand = "0.3.0" -+rand = "0.4"