Do not pull optional dependencies

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

@ -6,25 +6,21 @@
Name: rust-%{crate} Name: rust-%{crate}
Version: 0.2.2 Version: 0.2.2
Release: 3%{?dist} Release: 4%{?dist}
Summary: Big integer implementation for Rust Summary: Big integer implementation for Rust
# 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/num-bigint URL: https://crates.io/crates/num-bigint
Source0: https://crates.io/api/v1/crates/%{crate}/%{version}/download#/%{crate}-%{version}.crate Source: %{crates_source}
ExclusiveArch: %{rust_arches} ExclusiveArch: %{rust_arches}
BuildRequires: rust-packaging BuildRequires: rust-packaging
BuildRequires: (crate(num-integer) >= 0.1.39 with crate(num-integer) < 0.2.0) BuildRequires: (crate(num-integer) >= 0.1.39 with crate(num-integer) < 0.2.0)
BuildRequires: (crate(num-integer/i128) >= 0.1.39 with crate(num-integer/i128) < 0.2.0)
BuildRequires: (crate(num-integer/std) >= 0.1.39 with crate(num-integer/std) < 0.2.0) BuildRequires: (crate(num-integer/std) >= 0.1.39 with crate(num-integer/std) < 0.2.0)
BuildRequires: (crate(num-traits) >= 0.2.4 with crate(num-traits) < 0.3.0) BuildRequires: (crate(num-traits) >= 0.2.4 with crate(num-traits) < 0.3.0)
BuildRequires: (crate(num-traits/i128) >= 0.2.4 with crate(num-traits/i128) < 0.3.0)
BuildRequires: (crate(num-traits/std) >= 0.2.4 with crate(num-traits/std) < 0.3.0) BuildRequires: (crate(num-traits/std) >= 0.2.4 with crate(num-traits/std) < 0.3.0)
BuildRequires: (crate(rand/std) >= 0.5.0 with crate(rand/std) < 0.6.0)
BuildRequires: (crate(serde/std) >= 1.0.0 with crate(serde/std) < 2.0.0)
%if %{with check} %if %{with check}
BuildRequires: (crate(serde_test/default) >= 1.0.0 with crate(serde_test/default) < 2.0.0) BuildRequires: (crate(serde_test/default) >= 1.0.0 with crate(serde_test/default) < 2.0.0)
%endif %endif
@ -41,7 +37,7 @@ BuildArch: noarch
%description devel %{_description} %description devel %{_description}
This package contains library source intended for building other packages This package contains library source intended for building other packages
which use %{crate} from crates.io. which use "%{crate}" crate.
%files devel %files devel
%license LICENSE-MIT LICENSE-APACHE %license LICENSE-MIT LICENSE-APACHE
@ -109,7 +105,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
@ -124,6 +120,9 @@ which use "std" feature of "%{crate}" crate.
%endif %endif
%changelog %changelog
* Sat Mar 16 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.2-4
- Do not pull optional dependencies
* Sat Feb 09 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.2-3 * Sat Feb 09 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.2-3
- Run tests in infrastructure - Run tests in infrastructure

Loading…
Cancel
Save