|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
%global crate num-bigint
|
|
|
|
|
|
|
|
|
|
Name: rust-%{crate}
|
|
|
|
|
Version: 0.1.44
|
|
|
|
|
Version: 0.2.0
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Summary: Big integer implementation for Rust
|
|
|
|
|
|
|
|
|
@ -17,14 +17,13 @@ ExclusiveArch: %{rust_arches}
|
|
|
|
|
|
|
|
|
|
BuildRequires: rust-packaging
|
|
|
|
|
# [dependencies]
|
|
|
|
|
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) with crate(num-traits/std))
|
|
|
|
|
BuildRequires: (crate(rand) >= 0.3.14 with crate(rand) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(rustc-serialize) >= 0.3.19 with crate(rustc-serialize) < 0.4.0)
|
|
|
|
|
BuildRequires: (crate(serde) >= 0.7.0 with crate(serde) < 0.9.0)
|
|
|
|
|
BuildRequires: (crate(num-integer) >= 0.1.38 with crate(num-integer) < 0.2.0)
|
|
|
|
|
BuildRequires: (crate(num-traits) >= 0.2.4 with crate(num-traits) < 0.3.0)
|
|
|
|
|
BuildRequires: ((crate(rand) >= 0.5.0 with crate(rand) < 0.6.0) with crate(rand/std))
|
|
|
|
|
BuildRequires: ((crate(serde) >= 1.0.0 with crate(serde) < 2.0.0) with crate(serde/std))
|
|
|
|
|
%if %{with check}
|
|
|
|
|
# [dev-dependencies]
|
|
|
|
|
BuildRequires: (crate(rand) >= 0.3.14 with crate(rand) < 0.5.0)
|
|
|
|
|
BuildRequires: (crate(serde_test) >= 1.0.0 with crate(serde_test) < 2.0.0)
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -44,9 +43,6 @@ which use %{crate} from crates.io.
|
|
|
|
|
%autosetup -n %{crate}-%{version} -p1
|
|
|
|
|
%cargo_prep
|
|
|
|
|
|
|
|
|
|
# https://github.com/rust-num/num-bigint/commit/275ba23cee08
|
|
|
|
|
chmod -x benches/factorial.rs
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%cargo_build
|
|
|
|
|
|
|
|
|
@ -64,6 +60,9 @@ chmod -x benches/factorial.rs
|
|
|
|
|
%{cargo_registry}/%{crate}-%{version}/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Jun 30 2018 Josh Stone <jistone@redhat.com> - 0.2.0-1
|
|
|
|
|
- Update to 0.2.0
|
|
|
|
|
|
|
|
|
|
* Mon May 14 2018 Josh Stone <jistone@redhat.com> - 0.1.44-1
|
|
|
|
|
- Update to 0.1.44
|
|
|
|
|
|
|
|
|
|