Do not pull optional dependencies

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

@ -7,20 +7,18 @@
Name: rust-%{crate}0.3
Version: 0.3.1
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Core random number generator traits and tools for implementation
# Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0
URL: https://crates.io/crates/rand_core
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate
Source: %{crates_source}
ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging
BuildRequires: (crate(rand_core/alloc) >= 0.4.0 with crate(rand_core/alloc) < 0.5.0)
BuildRequires: (crate(rand_core/default) >= 0.4.0 with crate(rand_core/default) < 0.5.0)
BuildRequires: (crate(rand_core/serde1) >= 0.4.0 with crate(rand_core/serde1) < 0.5.0)
BuildRequires: (crate(rand_core/std) >= 0.4.0 with crate(rand_core/std) < 0.5.0)
%global _description \
@ -91,7 +89,7 @@ which use "std" 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
@ -106,6 +104,9 @@ which use "std" feature of "%{crate}" crate.
%endif
%changelog
* Sat Mar 16 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.3.1-3
- Do not pull optional dependencies
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save