Add conditionals for ARM, aarch64, ppc64, ppc64le to build using

bootstrap until n+1 version is released upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=59
This commit is contained in:
Luke Jones 2017-02-13 04:04:45 +00:00 committed by Git OBS Bridge
parent bbd20fa1a8
commit 3e55321f25

View File

@ -68,12 +68,15 @@ BuildRequires: fdupes
%endif
%if %{with bootstrap}
BuildRequires: cargo-bootstrap
BuildRequires: rustc-bootstrap <= %{version}
BuildRequires: rustc-bootstrap >= %{prev_version}
BuildRequires: rustc-bootstrap == %{prev_version}
%else
%ifarch %{arm} aarch64 ppc64 ppc64le
BuildRequires: cargo-bootstrap
BuildRequires: rustc-bootstrap == %{prev_version}
%else
BuildRequires: cargo
#BuildRequires: rust <= %{version}
BuildRequires: rust == %{prev_version}
%endif
%endif
%description