6
6
%ifarch %ix86
7
7
%global rust_triple i686-unknown-linux-gnu
8
8
%else
9
+ %ifarch %{arm }
9
10
%global rust_triple armv7-unknown-linux-gnueabihf
11
+ %else
12
+ %ifarch aarch64
13
+ %global rust_triple aarch64 -unknown-linux-gnu
14
+ %endif
15
+ %endif
10
16
%endif
11
17
12
18
%global python python3
15
21
%bcond_without lldb
16
22
17
23
Name: rust
18
- Version: %{rust_version }+git3
24
+ Version: %{rust_version }+git4
19
25
Release: 1
20
26
Summary: The Rust Programming Language
21
27
License: (ASL 2.0 or MIT ) and (BSD and MIT )
@@ -26,6 +32,7 @@ URL: https://www.rust-lang.org
26
32
Source0: rustc-%{rust_version }-src.tar.gz
27
33
Source100: rust-%{rust_version }-i686-unknown-linux-gnu.tar.gz
28
34
Source101: rust-%{rust_version }-armv7-unknown-linux-gnueabihf.tar.gz
35
+ Source102: rust-%{rust_version }-aarch64 -unknown-linux-gnu.tar.gz
29
36
Source200: README.md
30
37
31
38
Patch1: 0001-Use-a-non-existent-test-path-instead-of-clobbering-d.patch
@@ -56,9 +63,6 @@ BuildRequires: procps
56
63
# debuginfo-gdb tests need gdb
57
64
BuildRequires: gdb
58
65
59
- # Disable aach64 build
60
- ExcludeArch: aarch64
61
-
62
66
# Virtual provides for folks who attempt "dnf install rustc"
63
67
Provides: rustc = %{version }-%{release }
64
68
Provides: rustc = %{version }-%{release }
@@ -150,7 +154,16 @@ and ensure that you'll always get a repeatable build.
150
154
%ifarch %ix86
151
155
%setup -q -n %{bootstrap_root } -T -b 100
152
156
%else
157
+ %ifarch %{arm }
153
158
%setup -q -n %{bootstrap_root } -T -b 101
159
+ %else
160
+ %ifarch aarch64
161
+ %setup -q -n %{bootstrap_root } -T -b 102
162
+ %else
163
+ echo " No idea how to build for your arch..."
164
+ exit 1
165
+ %endif
166
+ %endif
154
167
%endif
155
168
./install.sh --components=cargo,rustc,rust-std-%{rust_triple } \
156
169
--prefix=%{local_rust_root } --disable-ldconfig
0 commit comments