@@ -51,6 +51,8 @@ Source3: https://static.rust-lang.org/dist/%{bootstrap_date}/rust-%{bootstrap_ru
51
51
# Source3-md5: 3ac79872671df7ea0215fd351f52ffcf
52
52
Source4: https://static.rust-lang.org/dist/%{bootstrap_date }/rust-%{bootstrap_rust }-arm-unknown-linux-gnueabihf.tar.xz
53
53
# Source4-md5: f624772d7c7ba2e83a51b4e9c1657f7b
54
+ Source5: https://static.rust-lang.org/dist/%{bootstrap_date }/rust-%{bootstrap_rust }-armv7-unknown-linux-gnueabihf.tar.xz
55
+ # Source5-md5: 077d3f28a33af2cdb3897da9f8b81ca4
54
56
URL: https://www.rust-lang.org/
55
57
# for src/compiler-rt
56
58
BuildRequires: cmake >= 3.4.3
@@ -126,16 +128,22 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
126
128
%define _lib lib64
127
129
%define _libdir %{_prefix }/lib64
128
130
%else
129
- %ifarch armv6hl armv7hl armv7hnl
131
+ %ifarch armv6hl
130
132
%define rust_triple arm-unknown-linux-gnueabihf
131
133
%define rust_host_triple %{rust_triple }
132
134
%define rust_bootstrap_triple %{rust_triple }
133
135
%else
136
+ %ifarch armv7hl armv7hnl
137
+ %define rust_triple armv7-unknown-linux-gnueabihf
138
+ %define rust_host_triple %{rust_triple }
139
+ %define rust_bootstrap_triple %{rust_triple }
140
+ %else
134
141
%define rust_triple %{_target_cpu }-unknown-linux-gnu
135
142
%define rust_host_triple %{rust_triple }
136
143
%define rust_bootstrap_triple %{rust_triple }
137
144
%endif
138
145
%endif
146
+ %endif
139
147
140
148
%if %{without bootstrap}
141
149
%define local_rust_root %{_prefix }
@@ -339,9 +347,12 @@ tar xf %{SOURCE2}
339
347
%ifarch aarch64
340
348
tar xf %{SOURCE3 }
341
349
%endif
342
- %ifarch armv6hl armv7hl armv7hnl
350
+ %ifarch armv6hl
343
351
tar xf %{SOURCE4 }
344
352
%endif
353
+ %ifarch armv7hl armv7hnl
354
+ tar xf %{SOURCE5 }
355
+ %endif
345
356
%{__mv} %{bootstrap_root } %{bootstrap_root }-root
346
357
%{bootstrap_root }-root/install.sh \
347
358
--components= cargo,rustc,rust-std-%{rust_bootstrap_triple } \
0 commit comments