Do not pull optional dependencies

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

@ -7,13 +7,13 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 1.7.2 Version: 1.7.2
Release: 2%{?dist} Release: 3%{?dist}
Summary: URL library for Rust, based on the WHATWG URL Standard Summary: URL library for Rust, based on the WHATWG URL Standard
# Upstream license specification: MIT/Apache-2.0 # Upstream license specification: MIT/Apache-2.0
License: MIT or ASL 2.0 License: MIT or ASL 2.0
URL: https://crates.io/crates/url URL: https://crates.io/crates/url
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Source: %{crates_source}
# Initial patched metadata # Initial patched metadata
# * Exclude CI files, https://github.com/servo/rust-url/pull/467 # * Exclude CI files, https://github.com/servo/rust-url/pull/467
Patch0: url-fix-metadata.diff Patch0: url-fix-metadata.diff
@ -21,13 +21,9 @@ Patch0: url-fix-metadata.diff
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
BuildRequires: (crate(encoding/default) >= 0.2.0 with crate(encoding/default) < 0.3.0)
BuildRequires: (crate(heapsize/default) >= 0.4.1 with crate(heapsize/default) < 0.5.0)
BuildRequires: (crate(idna/default) >= 0.1.0 with crate(idna/default) < 0.2.0) BuildRequires: (crate(idna/default) >= 0.1.0 with crate(idna/default) < 0.2.0)
BuildRequires: (crate(matches/default) >= 0.1.0 with crate(matches/default) < 0.2.0) BuildRequires: (crate(matches/default) >= 0.1.0 with crate(matches/default) < 0.2.0)
BuildRequires: (crate(percent-encoding/default) >= 1.0.0 with crate(percent-encoding/default) < 2.0.0) BuildRequires: (crate(percent-encoding/default) >= 1.0.0 with crate(percent-encoding/default) < 2.0.0)
BuildRequires: (crate(rustc-serialize/default) >= 0.3.0 with crate(rustc-serialize/default) < 0.4.0)
BuildRequires: (crate(serde/default) >= 0.6.1 with crate(serde/default) < 0.9.0)
%if %{with check} %if %{with check}
BuildRequires: (crate(bencher/default) >= 0.1.0 with crate(bencher/default) < 0.2.0) BuildRequires: (crate(bencher/default) >= 0.1.0 with crate(bencher/default) < 0.2.0)
BuildRequires: (crate(rustc-serialize/default) >= 0.3.0 with crate(rustc-serialize/default) < 0.4.0) BuildRequires: (crate(rustc-serialize/default) >= 0.3.0 with crate(rustc-serialize/default) < 0.4.0)
@ -139,7 +135,7 @@ which use "serde" 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
@ -154,6 +150,9 @@ which use "serde" feature of "%{crate}" crate.
%endif %endif
%changelog %changelog
* Sun Mar 10 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.7.2-3
- Do not pull optional dependencies
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-2 * Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

Loading…
Cancel
Save