From 309a35d200357abed40dca65a6268cf32059bde9 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 31 Dec 2017 15:12:12 +0100 Subject: [PATCH] Bump rand to 0.4 Signed-off-by: Igor Gnatenko --- rust-sha1.spec | 5 ++++- sha1-0.4.0-fix-metadata.diff | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 sha1-0.4.0-fix-metadata.diff diff --git a/rust-sha1.spec b/rust-sha1.spec index 403138b..495a1ec 100644 --- a/rust-sha1.spec +++ b/rust-sha1.spec @@ -12,6 +12,9 @@ Summary: Minimal implementation of SHA1 for Rust License: BSD URL: https://crates.io/crates/sha1 Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Bump rand to 0.4, sha1-0.4.0-fix-metadata.diff +Patch0: sha1-0.4.0-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -19,7 +22,7 @@ BuildRequires: rust-packaging %if %{with check} # [dev-dependencies] BuildRequires: (crate(openssl) >= 0.9.0 with crate(openssl) < 0.10.0) -BuildRequires: (crate(rand) >= 0.3.0 with crate(rand) < 0.4.0) +BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) %endif %description diff --git a/sha1-0.4.0-fix-metadata.diff b/sha1-0.4.0-fix-metadata.diff new file mode 100644 index 0000000..3218cff --- /dev/null +++ b/sha1-0.4.0-fix-metadata.diff @@ -0,0 +1,8 @@ +--- sha1-0.4.0/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ sha1-0.4.0/Cargo.toml 2017-12-31T15:11:50.621764+01:00 +@@ -22,4 +22,4 @@ + version = "0.9" + + [dev-dependencies.rand] +-version = "0.3" ++version = "0.4"