From f1fc5b2924e40b293ec6baec47b83aecd5726aa9 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sun, 10 Mar 2019 11:15:06 +0100 Subject: [PATCH] Do not pull optional dependencies Signed-off-by: Igor Gnatenko --- rust-chrono.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/rust-chrono.spec b/rust-chrono.spec index 1bc5674..adbd68b 100644 --- a/rust-chrono.spec +++ b/rust-chrono.spec @@ -7,13 +7,13 @@ Name: rust-%{crate} Version: 0.4.6 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Date and time library for Rust # Upstream license specification: MIT/Apache-2.0 License: MIT or ASL 2.0 URL: https://crates.io/crates/chrono -Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate +Source: %{crates_source} # Initial patched metadata # * Exclude CI files, https://github.com/chronotope/chrono/pull/283 Patch0: chrono-fix-metadata.diff @@ -23,8 +23,6 @@ ExclusiveArch: %{rust_arches} BuildRequires: rust-packaging BuildRequires: (crate(num-integer) >= 0.1.36 with crate(num-integer) < 0.2.0) BuildRequires: (crate(num-traits) >= 0.2.0 with crate(num-traits) < 0.3.0) -BuildRequires: (crate(rustc-serialize/default) >= 0.3.20 with crate(rustc-serialize/default) < 0.4.0) -BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0) BuildRequires: (crate(time/default) >= 0.1.39 with crate(time/default) < 0.2.0) %if %{with check} BuildRequires: (crate(bincode/default) >= 0.8.0 with crate(bincode/default) < 0.9.0) @@ -113,7 +111,7 @@ which use "time" feature of "%{crate}" crate. %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %prep -%autosetup -n %{crate}-%{version} -p1 +%autosetup -n %{crate}-%{version_no_tilde} -p1 %cargo_prep %build @@ -128,6 +126,9 @@ which use "time" feature of "%{crate}" crate. %endif %changelog +* Sun Mar 10 2019 Igor Gnatenko - 0.4.6-4 +- Do not pull optional dependencies + * Sat Feb 02 2019 Fedora Release Engineering - 0.4.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild