From 3e3e2d07495321f19a0dc09e1988d79842fee15e Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 3 Jul 2018 10:22:46 -0700 Subject: [PATCH] Update to 0.5.3 --- .gitignore | 1 + rand-0.4.2-fix-metadata.diff | 22 ---------------------- rand-0.5.3-fix-metadata.diff | 34 ++++++++++++++++++++++++++++++++++ rust-rand.spec | 24 ++++++++++++++++++------ sources | 2 +- 5 files changed, 54 insertions(+), 29 deletions(-) delete mode 100644 rand-0.4.2-fix-metadata.diff create mode 100644 rand-0.5.3-fix-metadata.diff diff --git a/.gitignore b/.gitignore index e917cb3..3ddaef9 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ /rand-0.3.18.crate /rand-0.4.1.crate /rand-0.4.2.crate +/rand-0.5.3.crate diff --git a/rand-0.4.2-fix-metadata.diff b/rand-0.4.2-fix-metadata.diff deleted file mode 100644 index 81c6ea2..0000000 --- a/rand-0.4.2-fix-metadata.diff +++ /dev/null @@ -1,22 +0,0 @@ ---- rand-0.4.2/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ rand-0.4.2/Cargo.toml 2018-01-06T13:44:52.496038+01:00 -@@ -22,6 +22,7 @@ - categories = ["algorithms"] - license = "MIT/Apache-2.0" - repository = "https://github.com/rust-lang-nursery/rand" -+exclude = ["utils/*.py"] - - [features] - alloc = [] -@@ -29,11 +30,6 @@ - i128_support = [] - nightly = ["i128_support"] - std = ["libc"] --[target."cfg(target_os = \"fuchsia\")".dependencies.fuchsia-zircon] --version = "0.3.2" - [target."cfg(unix)".dependencies.libc] - version = "0.2" - optional = true --[target."cfg(windows)".dependencies.winapi] --version = "0.3" --features = ["minwindef", "ntsecapi", "profileapi", "winnt"] diff --git a/rand-0.5.3-fix-metadata.diff b/rand-0.5.3-fix-metadata.diff new file mode 100644 index 0000000..faf642a --- /dev/null +++ b/rand-0.5.3-fix-metadata.diff @@ -0,0 +1,34 @@ +--- rand-0.5.3/Cargo.toml 1969-12-31T16:00:00-08:00 ++++ rand-0.5.3/Cargo.toml 2018-06-30T16:50:36.060662-07:00 +@@ -22,6 +22,7 @@ + categories = ["algorithms", "no-std"] + license = "MIT/Apache-2.0" + repository = "https://github.com/rust-lang-nursery/rand" ++exclude = ["utils"] + [package.metadata.docs.rs] + all-features = true + [dependencies.log] +@@ -48,22 +49,9 @@ + i128_support = [] + nightly = ["i128_support"] + serde1 = ["serde", "serde_derive", "rand_core/serde1"] +-std = ["rand_core/std", "alloc", "libc", "winapi", "cloudabi", "fuchsia-zircon"] +-[target."cfg(target_os = \"cloudabi\")".dependencies.cloudabi] +-version = "0.0.3" +-optional = true +-[target."cfg(target_os = \"fuchsia\")".dependencies.fuchsia-zircon] +-version = "0.3.2" +-optional = true ++std = ["rand_core/std", "alloc", "libc"] + [target."cfg(unix)".dependencies.libc] + version = "0.2" +-optional = true +-[target."cfg(windows)".dependencies.winapi] +-version = "0.3" +-features = ["minwindef", "ntsecapi", "profileapi", "winnt"] +-optional = true +-[target.wasm32-unknown-unknown.dependencies.stdweb] +-version = "0.4" + optional = true + [badges.appveyor] + repository = "alexcrichton/rand" diff --git a/rust-rand.spec b/rust-rand.spec index f299368..cb3047a 100644 --- a/rust-rand.spec +++ b/rust-rand.spec @@ -5,25 +5,34 @@ %global crate rand Name: rust-%{crate} -Version: 0.4.2 -Release: 4%{?dist} -Summary: Random number generators and other randomness functionality. +Version: 0.5.3 +Release: 1%{?dist} +Summary: Random number generators -License: MIT/Apache-2.0 +License: MIT or ASL-2.0 URL: https://crates.io/crates/rand Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * Exclude python utilities -Patch0: rand-0.4.2-fix-metadata.diff +# * Remove non-unix dependencies +Patch0: rand-0.5.3-fix-metadata.diff ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(libc) >= 0.2.0 with crate(libc) < 0.3.0) +BuildRequires: (crate(log) >= 0.4.0 with crate(log) < 0.5.0) +BuildRequires: (crate(rand_core) >= 0.2.0 with crate(rand_core) < 0.3.0) +BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) +BuildRequires: (crate(serde_derive) >= 1.0.0 with crate(serde_derive) < 2.0.0) +%if %{with check} +# [dev-dependencies] +BuildRequires: (crate(bincode) >= 1.0.0 with crate(bincode) < 2.0.0) +%endif %description -%{summary}. +Random number generators and other randomness functionality. %package devel Summary: %{summary} @@ -57,6 +66,9 @@ which use %{crate} from crates.io. %exclude %{cargo_registry}/%{crate}-%{version}/appveyor.yml %changelog +* Sat Jun 30 2018 Josh Stone - 0.5.3-1 +- Update to 0.5.3 + * Tue Feb 20 2018 Josh Stone - 0.4.2-4 - Exclude python2 utilities diff --git a/sources b/sources index 7e491ca..661761c 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rand-0.4.2.crate) = ac6eaf9f0914fd966c835a04ec644c5a8d62a4a634187d538cecfb711955a977234dc5fe487cd4d351514bc0de4f51cbd0f09a8f6aac56aa0467ae5eb17a4fad +SHA512 (rand-0.5.3.crate) = 3296fab41470c798b4ed8b992eae38de8db43ce5a92fc4f07ea6e0385dc816ce3df4abeaa42279de91bc40bd9d4d7d6aaa809e98600012019874e44ff0c3e45d