21
21
# To bootstrap from scratch, set the channel and date from src/stage0.txt
22
22
# e.g. 1.10.0 wants rustc: 1.9.0-2016-05-24
23
23
# or nightly wants some beta-YYYY-MM-DD
24
- %define bootstrap_rust 1.43.1
25
- %define bootstrap_cargo 1.43.1
26
- %define bootstrap_date 2020-05-07
24
+ %define bootstrap_rust 1.46.0
25
+ %define bootstrap_cargo 1.46.0
26
+ %define bootstrap_date 2020-08-27
27
27
28
28
%ifarch x32
29
29
%define with_cross 1
30
30
%endif
31
31
Summary: The Rust Programming Language
32
32
Summary(pl.UTF-8): Język programowania Rust
33
33
Name: rust
34
- Version: 1.44.1
35
- Release: 2
34
+ Version: 1.47.0
35
+ Release: 1
36
36
# Licenses: (rust itself) and (bundled libraries)
37
37
License: (Apache v2.0 or MIT ) and (BSD and ISC and MIT )
38
38
Group: Development/Languages
39
39
Source0: https://static.rust-lang.org/dist/%{rustc_package }.tar.xz
40
- # Source0-md5: 0cc3b079ddb1eb9a17f9e7e52efcebc5
40
+ # Source0-md5: 6283a61cac54bb0a7d32bc447d07fadc
41
41
Source1: https://static.rust-lang.org/dist/%{bootstrap_date }/rust-%{bootstrap_rust }-x86_64 -unknown-linux-gnu.tar.xz
42
- # Source1-md5: 62b0974a4bad5aeabd50c7a7fa74518c
42
+ # Source1-md5: 45eaf35327db0bac923c65048637a2f5
43
43
Source2: https://static.rust-lang.org/dist/%{bootstrap_date }/rust-%{bootstrap_rust }-i686-unknown-linux-gnu.tar.xz
44
- # Source2-md5: 758d55172c8dddb1ec71913b5f532bb2
44
+ # Source2-md5: 6a2422d81e98df5b71a959c70aa4c81b
45
45
Source3: https://static.rust-lang.org/dist/%{bootstrap_date }/rust-%{bootstrap_rust }-aarch64 -unknown-linux-gnu.tar.xz
46
- # Source3-md5: 3a9d54ab96f96664b2f6077cccb4e70b
47
- Patch0: %{name }-no-miri.patch
48
- Patch1: %{name }-x32.patch
46
+ # Source3-md5: 144376df8b0ddfef57900b867746a9ab
47
+ Patch0: %{name }-x32.patch
49
48
URL: https://www.rust-lang.org/
50
49
# for src/compiler-rt
51
50
BuildRequires: cmake >= 3.4.3
@@ -58,7 +57,7 @@ BuildRequires: rpmbuild(macros) >= 1.752
58
57
BuildRequires: curl-devel
59
58
BuildRequires: libgit2-devel
60
59
BuildRequires: libstdc++-devel
61
- %{?with_system_llvm:BuildRequires: llvm-devel >= 7 .0}
60
+ %{?with_system_llvm:BuildRequires: llvm-devel >= 8 .0}
62
61
BuildRequires: openssl-devel >= 1.0.1
63
62
BuildRequires: zlib-devel
64
63
%endif
@@ -76,7 +75,7 @@ BuildRequires: curl-devel
76
75
BuildRequires: gcc-multilib-x32
77
76
BuildRequires: libgit2-devel
78
77
BuildRequires: libstdc++-devel
79
- %{?with_system_llvm:BuildRequires: llvm-devel >= 7 .0}
78
+ %{?with_system_llvm:BuildRequires: llvm-devel >= 8 .0}
80
79
BuildRequires: openssl-devel >= 1.0.1
81
80
BuildRequires: zlib-devel
82
81
%else
@@ -253,9 +252,8 @@ Dopełnianie parametrów polecenia cargo w powłoce Zsh.
253
252
254
253
%prep
255
254
%setup -q -n %{rustc_package }
256
- %patch0 -p1
257
255
# irrelevant when not building rustc for x32
258
- #patch1 -p1
256
+ #patch0 -p1
259
257
260
258
%if %{with bootstrap }
261
259
%ifarch %{x8664 } x32
@@ -282,8 +280,8 @@ test -f %{local_rust_root}/bin/rustc
282
280
%{?with_system_llvm:%{__rm} -r src/llvm-project}
283
281
284
282
# extract bundled licenses for packaging
285
- sed -e '/*\//q' vendor /backtrace-sys/src/libbacktrace/backtrace.h \
286
- > vendor /backtrace-sys/src/libbacktrace/LICENSE-libbacktrace
283
+ sed -e '/*\//q' library/backtrace/crates /backtrace-sys/src/libbacktrace/backtrace.h \
284
+ > library/backtrace/crates /backtrace-sys/src/libbacktrace/LICENSE-libbacktrace
287
285
288
286
# rust-gdb has hardcoded SYSROOT/lib -- let's make it noarch
289
287
sed -i -e 's#DIRECTORY=".*"#DIRECTORY="%{_datadir}/%{name}/etc"#' \
@@ -383,14 +381,17 @@ rm -rf $RPM_BUILD_ROOT
383
381
384
382
%files
385
383
%defattr(644,root,root,755)
386
- %doc COPYRIGHT LICENSE-APACHE LICENSE-MIT README.md vendor /backtrace-sys/src/libbacktrace/LICENSE-libbacktrace
384
+ %doc COPYRIGHT LICENSE-APACHE LICENSE-MIT README.md library/backtrace/crates /backtrace-sys/src/libbacktrace/LICENSE-libbacktrace
387
385
%attr(755,root,root) %{_bindir }/rls
386
+ %attr(755,root,root) %{_bindir }/rust-analyzer
388
387
%attr(755,root,root) %{_bindir }/rustc
389
388
%attr(755,root,root) %{_bindir }/rustdoc
390
389
%attr(755,root,root) %{_bindir }/rustfmt
390
+ %attr(755,root,root) %{_libdir }/libchalk_derive-* .so
391
391
%attr(755,root,root) %{_libdir }/librustc* -* .so
392
392
%attr(755,root,root) %{_libdir }/libstd-* .so
393
393
%attr(755,root,root) %{_libdir }/libtest-* .so
394
+ %attr(755,root,root) %{_libdir }/libtracing_attributes-* .so
394
395
%{_mandir }/man1/rustc.1*
395
396
%{_mandir }/man1/rustdoc.1*
396
397
%dir %{rustlibdir }
@@ -413,7 +414,8 @@ rm -rf $RPM_BUILD_ROOT
413
414
%defattr(644,root,root,755)
414
415
%dir %{_datadir }/%{name }
415
416
%dir %{_datadir }/%{name }/etc
416
- %{_datadir }/%{name }/etc/debugger_* .py*
417
+ %{_datadir }/%{name }/etc/lldb_commands
418
+ %{_datadir }/%{name }/etc/rust_types.py
417
419
418
420
%files lldb
419
421
%defattr(644,root,root,755)
0 commit comments