Do not pull optional dependencies

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
epel9
Igor Gnatenko 6 years ago
parent d66bcbeb56
commit f1fc5b2924
No known key found for this signature in database
GPG Key ID: 695714BD1BBC5F4C

@ -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 <ignatenkobrain@fedoraproject.org> - 0.4.6-4
- Do not pull optional dependencies
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save