From ca790289181125a3950a0d01fa76ea15efdac2b1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 17:35:27 +0100 Subject: [PATCH] update to 1.47.0 [release 1.47.0-1mamba;Tue Nov 10 2020] --- rustc.spec | 56 ++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 38 insertions(+), 18 deletions(-) diff --git a/rustc.spec b/rustc.spec index 297b2eb..3a2dee0 100644 --- a/rustc.spec +++ b/rustc.spec @@ -1,6 +1,6 @@ %define stage1 1 Name: rustc -Version: 1.27.0 +Version: 1.47.0 Release: 1mamba Summary: The Rust programming language, designed to be a safe, concurrent, practical language Group: Applications/Development @@ -13,10 +13,10 @@ Patch0: rustc-1.25.0-disable-llvm-ocaml-binding.patch License: MIT ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel -BuildRequires: libcurl-devel +BuildRequires: ldconfig BuildRequires: libgcc +BuildRequires: libgit2-devel BuildRequires: libopenssl-devel -BuildRequires: libssh2-devel BuildRequires: libstdc++6-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END @@ -49,14 +49,22 @@ This package contains the documentation for %{name}. %setup -q -n %{name}-%{version}-src #-D -T #:<< _EOF -%patch0 -p0 +#%patch0 -p0 cat < config.toml # see config.toml.example for more possible options [llvm] ninja = true +%ifarch arm +ldflags = "-latomic" +%endif [build] +%ifarch arm +build = "arm-unknown-linux-gnueabi" +host = ["arm-unknown-linux-gnueabi"] +target= ["arm-unknown-linux-gnueabi"] +%endif %if "%{stage1}" != "1" cargo = "/usr/bin/cargo" rustc = "/usr/bin/rustc" @@ -74,20 +82,22 @@ docdir = "share/doc/rust" # 0 or the new default of 16 is faster, but can result in worse performance # https://github.com/rust-lang/rust/issues/47745 codegen-units = 1 -debuginfo = true -debuginfo-lines = true +#debuginfo = true +#debuginfo-lines = true channel = "stable" rpath = false EOF %build -:<< _EOF +#:<< _EOF ./x.py build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" DESTDIR=%{buildroot} ./x.py install +chmod +x %{buildroot}%{_libdir}/lib*.so* + cd %{buildroot}%{_libdir} #rm rustlib/{components,manifest-rustc,rust-installer-version} %ifarch %{ix86} @@ -105,13 +115,20 @@ cd - %post -n lib%{name} -p /sbin/ldconfig %postun -n lib%{name} -p /sbin/ldconfig -%files -f %{name}.lang +%files +#-f %{name}.lang %defattr(-,root,root) %{_sysconfdir}/bash_completion.d/cargo %{_bindir}/cargo %{_bindir}/cargo-fmt +%{_bindir}/cargo-clippy +%{_bindir}/cargo-miri +%{_bindir}/clippy-driver +%{_bindir}/miri %{_bindir}/rls +%{_bindir}/rust-analyzer %{_bindir}/rust-gdb +%{_bindir}/rust-gdbgui %{_bindir}/rust-lldb %{_bindir}/rustc %{_bindir}/rustdoc @@ -124,16 +141,13 @@ cd - %files -n lib%{name} %defattr(-,root,root) -%{_libdir}/libarena-*.so -%{_libdir}/libfmt_macros-*.so -%{_libdir}/libgraphviz-*.so -%{_libdir}/libproc_macro-*.so +%{_libdir}/libLLVM-11-rust-%{version}-stable.so* +%{_libdir}/rustlib/src/rust/Cargo.lock +%{_libdir}/libchalk_derive-*.so %{_libdir}/librustc*.so -%{_libdir}/libserialize-*.so %{_libdir}/libstd-*.so -%{_libdir}/libsyntax*.so -%{_libdir}/libterm-*.so %{_libdir}/libtest-*.so +%{_libdir}/libtracing_attributes-*.so %dir %{_libdir}/rustlib %{_libdir}/rustlib/components %{_libdir}/rustlib/rust-installer-version @@ -143,8 +157,8 @@ cd - %{_libdir}/rustlib/manifest-* %dir %{_libdir}/rustlib/src %dir %{_libdir}/rustlib/src/rust -%dir %{_libdir}/rustlib/src/rust/src -%{_libdir}/rustlib/src/rust/src/* +%dir %{_libdir}/rustlib/src/rust/library +%{_libdir}/rustlib/src/rust/library/* %{_libdir}/rustlib/uninstall.sh %ifarch %{ix86} %dir %{_libdir}/rustlib/i686-unknown-linux-gnu @@ -165,9 +179,15 @@ cd - %{_datadir}/doc/rust/html/.stamp %dir %{_datadir}/doc/rust/html %{_datadir}/doc/rust/html/* -%doc README.md +#%doc README.md %changelog +* Tue Nov 10 2020 Silvan Calarco 1.47.0-1mamba +- update to 1.47.0 + +* Thu May 21 2020 Silvan Calarco 1.43.0-1mamba +- update to 1.43.0 + * Thu Jul 05 2018 Silvan Calarco 1.27.0-1mamba - update to 1.27.0