From c137aef764766ed09cf136e43229d13dd22e5a9f Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Mon, 1 Jan 2018 13:13:40 +0100 Subject: [PATCH] Bump rand to 0.4 Signed-off-by: Igor Gnatenko --- num-0.1.41-fix-metadata.diff | 11 +++++++++++ rust-num.spec | 10 ++++++++-- 2 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 num-0.1.41-fix-metadata.diff diff --git a/num-0.1.41-fix-metadata.diff b/num-0.1.41-fix-metadata.diff new file mode 100644 index 0000000..c7a9e69 --- /dev/null +++ b/num-0.1.41-fix-metadata.diff @@ -0,0 +1,11 @@ +--- num-0.1.41/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ num-0.1.41/Cargo.toml 2018-01-01T13:14:15.420869+01:00 +@@ -50,7 +50,7 @@ + version = "0.1.41" + optional = true + [dev-dependencies.rand] +-version = "0.3.8" ++version = "0.4" + + [features] + complex = ["num-complex"] diff --git a/rust-num.spec b/rust-num.spec index dd8445b..f0060d0 100644 --- a/rust-num.spec +++ b/rust-num.spec @@ -6,12 +6,15 @@ Name: rust-%{crate} Version: 0.1.41 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Collection of numeric types and traits for Rust License: MIT or ASL 2.0 URL: https://crates.io/crates/num Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +# Initial patched metadata +# * Bump rand to 0.4, upstream removed this req +Patch0: num-0.1.41-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -25,7 +28,7 @@ BuildRequires: (crate(num-rational) >= 0.1.40 with crate(num-rational) < 0.2.0) BuildRequires: (crate(num-traits) >= 0.1.41 with crate(num-traits) < 0.2.0) %if %{with check} # [dev-dependencies] -BuildRequires: (crate(rand) >= 0.3.8 with crate(rand) < 0.4.0) +BuildRequires: (crate(rand) >= 0.4.0 with crate(rand) < 0.5.0) %endif %description @@ -64,6 +67,9 @@ which use %{crate} from crates.io. %exclude %{cargo_registry}/%{crate}-%{version}/{bors.toml,ci,doc} %changelog +* Mon Jan 01 2018 Igor Gnatenko - 0.1.41-2 +- Bump rand to 0.4 + * Sat Dec 02 2017 Igor Gnatenko - 0.1.41-1 - Update to 0.1.41