94 |
%endif |
%endif |
95 |
Source0: https://static.rust-lang.org/dist/%{rustc_package}.tar.xz |
Source0: https://static.rust-lang.org/dist/%{rustc_package}.tar.xz |
96 |
|
|
|
# Upstream patch to fix typenum crate build on i386/i486/i586. |
|
|
Patch10: typenum-pr115-fix-log2-rounding-error.patch |
|
|
|
|
97 |
# Get the Rust triple for any arch. |
# Get the Rust triple for any arch. |
98 |
%{lua: function rust_triple(arch) |
%{lua: function rust_triple(arch) |
99 |
local abi = "gnu" |
local abi = "gnu" |
432 |
|
|
433 |
%setup -q -n %{rustc_package} |
%setup -q -n %{rustc_package} |
434 |
|
|
|
%patch10 -p1 |
|
|
|
|
435 |
%if "%{python}" == "python3" |
%if "%{python}" == "python3" |
436 |
sed -i.try-py3 -e '/try python2.7/i try python3 "$@"' ./configure |
sed -i.try-py3 -e '/try python2.7/i try python3 "$@"' ./configure |
437 |
%endif |
%endif |