From c160f211f6a33dcfc6d37f8717b868514b167e43 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Fri, 1 May 2020 16:28:01 +0000 Subject: [PATCH] add support for aarch64 --- rust.spec | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rust.spec b/rust.spec index 0b39917..14db77d 100644 --- a/rust.spec +++ b/rust.spec @@ -47,6 +47,8 @@ Source2: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_ru # Source2-md5: be3f4d5143483c754a3c272eb213cd07 Source3: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-std-%{bootstrap_rust}-x86_64-unknown-linux-gnux32.tar.xz # Source3-md5: 38da0bf057e0801669f18f74555830bf +Source4: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_rust}-aarch64-unknown-linux-gnu.tar.xz +# Source4-md5: 3408e035e4257846e9417148e1f50412 URL: https://www.rust-lang.org/ # for src/compiler-rt BuildRequires: cmake >= 3.4.3 @@ -70,7 +72,7 @@ Requires: gcc # Only x86_64 and i686 are Tier 1 platforms at this time. # x32 is Tier 2, only rust-std is available (no rustc or cargo). # https://doc.rust-lang.org/stable/book/getting-started.html#tier-1 -ExclusiveArch: %{x8664} %{ix86} x32 +ExclusiveArch: %{x8664} %{ix86} x32 aarch64 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %ifarch x32 @@ -238,6 +240,9 @@ tar xf %{SOURCE3} %{__mv} rust-std-%{bootstrap_rust}-%{rust_triple} rust-std-%{rust_triple} cd .. %endif +%ifarch aarch64 +tar xf %{SOURCE4} +%endif %{__mv} %{bootstrap_root} %{bootstrap_root}-root %{bootstrap_root}-root/install.sh \ --components=cargo,rustc,rust-std-%{rust_bootstrap_triple} \ -- 2.43.0