diff --git a/rust-uuid.spec b/rust-uuid.spec index 2e2d020..898151a 100644 --- a/rust-uuid.spec +++ b/rust-uuid.spec @@ -14,6 +14,7 @@ URL: https://crates.io/crates/uuid Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * Bump rand to 0.4, https://github.com/rust-lang-nursery/uuid/pull/109 +# * Bump sha1 to 0.4, https://github.com/rust-lang-nursery/uuid/pull/110 Patch0: uuid-0.5.1-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -24,7 +25,7 @@ BuildRequires: (crate(md5) >= 0.3.0 with crate(md5) < 0.4.0) BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) BuildRequires: (crate(rustc-serialize) >= 0.3.0 with crate(rustc-serialize) < 0.4.0) BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) -BuildRequires: (crate(sha1) >= 0.2.0 with crate(sha1) < 0.3.0) +BuildRequires: (crate(sha1) >= 0.4.0 with crate(sha1) < 0.5.0) %description %{summary}. @@ -62,6 +63,7 @@ which use %{crate} from crates.io. %changelog * Sun Dec 31 2017 Igor Gnatenko - 0.5.1-2 - Bump rand to 0.4 +- Bump sha1 to 0.4 * Sat Dec 02 2017 Igor Gnatenko - 0.5.1-1 - Initial package diff --git a/uuid-0.5.1-fix-metadata.diff b/uuid-0.5.1-fix-metadata.diff index 9b90f2f..1e50e23 100644 --- a/uuid-0.5.1-fix-metadata.diff +++ b/uuid-0.5.1-fix-metadata.diff @@ -1,11 +1,13 @@ --- uuid-0.5.1/Cargo.toml 2017-06-30T08:40:30+02:00 -+++ uuid-0.5.1/Cargo.toml 2017-12-31T18:33:06.222429+01:00 -@@ -18,7 +18,7 @@ ++++ uuid-0.5.1/Cargo.toml 2017-12-31T18:42:15.121307+01:00 +@@ -18,8 +18,8 @@ [dependencies] rustc-serialize = { version = "0.3", optional = true } serde = { version = "1.0", optional = true } -rand = { version = "0.3", optional = true } +-sha1 = { version = "0.2", optional = true } +rand = { version = "0.4", optional = true } - sha1 = { version = "0.2", optional = true } ++sha1 = { version = "0.4", optional = true } md5 = { version = "0.3", optional = true } + [features]