Do not pull optional dependencies

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

@ -7,20 +7,19 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.6.0 Version: 0.6.0
Release: 5%{?dist} Release: 6%{?dist}
Summary: Minimal implementation of SHA1 for Rust Summary: Minimal implementation of SHA1 for Rust
# Upstream license specification: BSD-3-Clause # Upstream license specification: BSD-3-Clause
License: BSD License: BSD
URL: https://crates.io/crates/sha1 URL: https://crates.io/crates/sha1
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Source: %{crates_source}
# https://github.com/mitsuhiko/rust-sha1/pull/35 # https://github.com/mitsuhiko/rust-sha1/pull/35
Patch0001: 0001-guard-hexdigest-doctest-by-cfg-feature-std.patch Patch0001: 0001-guard-hexdigest-doctest-by-cfg-feature-std.patch
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
BuildRequires: (crate(serde/default) >= 1.0.0 with crate(serde/default) < 2.0.0)
%if %{with check} %if %{with check}
BuildRequires: (crate(openssl/default) >= 0.10.0 with crate(openssl/default) < 0.11.0) BuildRequires: (crate(openssl/default) >= 0.10.0 with crate(openssl/default) < 0.11.0)
BuildRequires: (crate(rand/default) >= 0.4.0 with crate(rand/default) < 0.5.0) BuildRequires: (crate(rand/default) >= 0.4.0 with crate(rand/default) < 0.5.0)
@ -84,7 +83,7 @@ which use "std" feature of "%{crate}" crate.
%ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml %ghost %{cargo_registry}/%{crate}-%{version}/Cargo.toml
%prep %prep
%autosetup -n %{crate}-%{version} -p1 %autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep %cargo_prep
%build %build
@ -99,6 +98,9 @@ which use "std" feature of "%{crate}" crate.
%endif %endif
%changelog %changelog
* Sun Mar 10 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.6.0-6
- Do not pull optional dependencies
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-5 * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save