From 0a35da365472f2731bebcad07f61b5333bc9c1d6 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 4 Aug 2019 12:01:42 +0200 Subject: [PATCH] Update to 0.7.0 Signed-off-by: Igor Gnatenko --- .gitignore | 1 + rand-fix-metadata.diff | 19 +++++++++---------- rust-rand.spec | 38 ++++++++++++++++++++++++++------------ sources | 2 +- 4 files changed, 37 insertions(+), 23 deletions(-) diff --git a/.gitignore b/.gitignore index 556d21d..c99719d 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,4 @@ /rand-0.6.1.crate /rand-0.6.4.crate /rand-0.6.5.crate +/rand-0.7.0.crate diff --git a/rand-fix-metadata.diff b/rand-fix-metadata.diff index 86cd68b..1d91728 100644 --- a/rand-fix-metadata.diff +++ b/rand-fix-metadata.diff @@ -1,12 +1,11 @@ ---- rand-0.6.5/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ rand-0.6.5/Cargo.toml 2019-03-10T11:07:34.138887+01:00 -@@ -80,9 +80,6 @@ - [target."cfg(unix)".dependencies.libc] +--- rand-0.7.0/Cargo.toml 1970-01-01T00:00:00+00:00 ++++ rand-0.7.0/Cargo.toml 2019-08-04T10:00:58.126450+00:00 +@@ -75,8 +75,6 @@ + wasm-bindgen = ["getrandom_package/wasm-bindgen"] + [target."cfg(not(target_os = \"emscripten\"))".dependencies.rand_chacha] version = "0.2" +-[target."cfg(target_os = \"emscripten\")".dependencies.rand_hc] +-version = "0.2" + [target."cfg(unix)".dependencies.libc] + version = "0.2.22" default-features = false --[target."cfg(windows)".dependencies.winapi] --version = "0.3" --features = ["minwindef", "ntsecapi", "profileapi", "winnt"] - [badges.appveyor] - repository = "rust-random/rand" - diff --git a/rust-rand.spec b/rust-rand.spec index fc7c84d..cc91fcc 100644 --- a/rust-rand.spec +++ b/rust-rand.spec @@ -1,13 +1,12 @@ # Generated by rust2rpm 10 -# * average is not packaged -%bcond_with check +%bcond_without check %global debug_package %{nil} %global crate rand Name: rust-%{crate} -Version: 0.6.5 -Release: 6%{?dist} +Version: 0.7.0 +Release: 1%{?dist} Summary: Random number generators and other randomness functionality # Upstream license specification: MIT/Apache-2.0 @@ -68,16 +67,16 @@ which use "alloc" feature of "%{crate}" crate. %files -n %{name}+alloc-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml -%package -n %{name}+i128_support-devel +%package -n %{name}+getrandom-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+i128_support-devel %{_description} +%description -n %{name}+getrandom-devel %{_description} This package contains library source intended for building other packages -which use "i128_support" feature of "%{crate}" crate. +which use "getrandom" feature of "%{crate}" crate. -%files -n %{name}+i128_support-devel +%files -n %{name}+getrandom-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+log-devel @@ -116,16 +115,16 @@ which use "packed_simd" feature of "%{crate}" crate. %files -n %{name}+packed_simd-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml -%package -n %{name}+rand_os-devel +%package -n %{name}+rand_pcg-devel Summary: %{summary} BuildArch: noarch -%description -n %{name}+rand_os-devel %{_description} +%description -n %{name}+rand_pcg-devel %{_description} This package contains library source intended for building other packages -which use "rand_os" feature of "%{crate}" crate. +which use "rand_pcg" feature of "%{crate}" crate. -%files -n %{name}+rand_os-devel +%files -n %{name}+rand_pcg-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %package -n %{name}+serde1-devel @@ -152,6 +151,18 @@ which use "simd_support" feature of "%{crate}" crate. %files -n %{name}+simd_support-devel %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml +%package -n %{name}+small_rng-devel +Summary: %{summary} +BuildArch: noarch + +%description -n %{name}+small_rng-devel %{_description} + +This package contains library source intended for building other packages +which use "small_rng" feature of "%{crate}" crate. + +%files -n %{name}+small_rng-devel +%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml + %package -n %{name}+std-devel Summary: %{summary} BuildArch: noarch @@ -207,6 +218,9 @@ which use "wasm-bindgen" feature of "%{crate}" crate. %endif %changelog +* Sun Aug 04 12:00:58 CEST 2019 Igor Gnatenko - 0.7.0-1 +- Update to 0.7.0 + * Fri Jul 26 2019 Fedora Release Engineering - 0.6.5-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild diff --git a/sources b/sources index 3868c18..b6da184 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (rand-0.6.5.crate) = 2eb84bed29708b8ba109f4329bf6f1cac6caed9d91b2aaf185d68dd2eda73d3fb7be2897d0596fb28352e799ccf92c161ee44599d5cb426ba9c3b8c747831904 +SHA512 (rand-0.7.0.crate) = 20c82ed8edf0bd203ac6f04f746b80abf5ad5716b307cd76fda399f26519ccc3b757f390058e7d8826508ed8a2b524c49ebad56a79fa77416b386f2b9a854352