From 19d9cc9d12164b52b243e4a43484d71c50010cdb Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 7 Oct 2018 16:25:00 +0200 Subject: [PATCH] move serde_test to dev-deps Signed-off-by: Igor Gnatenko --- linked-hash-map-0.5.1-fix-metadata.diff | 13 ------------ linked-hash-map-fix-metadata.diff | 27 +++++++++++++++++++++++++ rust-linked-hash-map.spec | 7 ++++++- 3 files changed, 33 insertions(+), 14 deletions(-) delete mode 100644 linked-hash-map-0.5.1-fix-metadata.diff create mode 100644 linked-hash-map-fix-metadata.diff diff --git a/linked-hash-map-0.5.1-fix-metadata.diff b/linked-hash-map-0.5.1-fix-metadata.diff deleted file mode 100644 index 1db1b32..0000000 --- a/linked-hash-map-0.5.1-fix-metadata.diff +++ /dev/null @@ -1,13 +0,0 @@ ---- linked-hash-map-0.5.1/Cargo.toml 1970-01-01T01:00:00+01:00 -+++ linked-hash-map-0.5.1/Cargo.toml 2018-01-30T09:51:27.016742+01:00 -@@ -21,10 +21,6 @@ - keywords = ["data-structures"] - license = "MIT/Apache-2.0" - repository = "https://github.com/contain-rs/linked-hash-map" --[dependencies.clippy] --version = "0.*" --optional = true -- - [dependencies.heapsize] - version = "0.4" - optional = true diff --git a/linked-hash-map-fix-metadata.diff b/linked-hash-map-fix-metadata.diff new file mode 100644 index 0000000..7173520 --- /dev/null +++ b/linked-hash-map-fix-metadata.diff @@ -0,0 +1,27 @@ +--- linked-hash-map-0.5.1/Cargo.toml 1970-01-01T01:00:00+01:00 ++++ linked-hash-map-0.5.1/Cargo.toml 2018-10-07T16:24:16.076686+02:00 +@@ -21,10 +21,6 @@ + keywords = ["data-structures"] + license = "MIT/Apache-2.0" + repository = "https://github.com/contain-rs/linked-hash-map" +-[dependencies.clippy] +-version = "0.*" +-optional = true +- + [dependencies.heapsize] + version = "0.4" + optional = true +@@ -33,11 +29,10 @@ + version = "1.0" + optional = true + +-[dependencies.serde_test] ++[dev-dependencies.serde_test] + version = "1.0" +-optional = true + + [features] + heapsize_impl = ["heapsize"] + nightly = [] +-serde_impl = ["serde", "serde_test"] ++serde_impl = ["serde"] diff --git a/rust-linked-hash-map.spec b/rust-linked-hash-map.spec index 8e5fe40..ffa38bf 100644 --- a/rust-linked-hash-map.spec +++ b/rust-linked-hash-map.spec @@ -10,12 +10,14 @@ Version: 0.5.1 Release: 4%{?dist} Summary: HashMap wrapper that holds key-value pairs in insertion order +# Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/linked-hash-map Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate # Initial patched metadata # * clippy is nightly -Patch0: linked-hash-map-0.5.1-fix-metadata.diff +# * move serde_test to dev-deps +Patch0: linked-hash-map-fix-metadata.diff ExclusiveArch: %{rust_arches} @@ -23,7 +25,10 @@ BuildRequires: rust-packaging # [dependencies] BuildRequires: (crate(heapsize) >= 0.4.0 with crate(heapsize) < 0.5.0) BuildRequires: (crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) +%if %{with check} +# [dev-dependencies] BuildRequires: (crate(serde_test) >= 1.0.0 with crate(serde_test) < 2.0.0) +%endif %description %{summary}.