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