Luke Jones 2019-03-07 00:04:55 +00:00 committed by Git OBS Bridge
parent fe6a19e7a1
commit 2d62c78c64

View File

@ -309,34 +309,34 @@ This package includes HTML documentation for Cargo.
%prep %prep
%if %{with rust_bootstrap} %if %{with rust_bootstrap}
%ifarch x86_64 %ifarch x86_64
%setup -q -T -b 100 -n rust-%{prev_rust}-%{rust_triple} %setup -q -T -b 100 -n rust-%{version_bootstrap}-%{rust_triple}
%endif %endif
%ifarch %{ix86} %ifarch %{ix86}
%setup -q -T -b 101 -n rust-%{prev_rust}-i686-unknown-linux-%{abi} %setup -q -T -b 101 -n rust-%{version_bootstrap}-i686-unknown-linux-%{abi}
%endif %endif
%ifarch aarch64 %ifarch aarch64
%setup -q -T -b 102 -n rust-%{prev_rust}-%{rust_triple} %setup -q -T -b 102 -n rust-%{version_bootstrap}-%{rust_triple}
%endif %endif
%ifarch armv7hl %ifarch armv7hl
%setup -q -T -b 103 -n rust-%{prev_rust}-%{rust_triple} %setup -q -T -b 103 -n rust-%{version_bootstrap}-%{rust_triple}
%endif %endif
%ifarch armv6hl %ifarch armv6hl
%setup -q -T -b 104 -n rust-%{prev_rust}-%{rust_triple} %setup -q -T -b 104 -n rust-%{version_bootstrap}-%{rust_triple}
%endif %endif
%ifarch ppc64 %ifarch ppc64
%setup -q -T -b 105 -n rust-%{prev_rust}-%{rust_triple} %setup -q -T -b 105 -n rust-%{version_bootstrap}-%{rust_triple}
%endif %endif
%ifarch ppc64le %ifarch ppc64le
%setup -q -T -b 106 -n rust-%{prev_rust}-%{rust_triple} %setup -q -T -b 106 -n rust-%{version_bootstrap}-%{rust_triple}
%endif %endif
%ifarch s390x %ifarch s390x
%setup -q -T -b 107 -n rust-%{prev_rust}-%{rust_triple} %setup -q -T -b 107 -n rust-%{version_bootstrap}-%{rust_triple}
%endif %endif
./install.sh --components=cargo,rustc,rust-std-%{rust_triple} --prefix=.%{_prefix} --disable-ldconfig ./install.sh --components=cargo,rustc,rust-std-%{rust_triple} --prefix=.%{_prefix} --disable-ldconfig
%endif %endif
%if %{with rust_bootstrap} %if %{with rust_bootstrap}
%global rust_root %{_builddir}/rust-%{prev_rust}-%{rust_triple}%{_prefix} %global rust_root %{_builddir}/rust-%{version_bootstrap}-%{rust_triple}%{_prefix}
%else %else
%global rust_root %{_prefix} %global rust_root %{_prefix}
%endif %endif