|
|
|
|
@ -36,7 +36,7 @@ Class: EVAL
|
|
|
|
|
Group: Language |
|
|
|
|
License: MIT/Apache |
|
|
|
|
Version: %{V_opkg} |
|
|
|
|
Release: 20190119 |
|
|
|
|
Release: 20190120 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: https://static.rust-lang.org/dist/rust-%{V_dist}-x86_64-unknown-linux-gnu.tar.gz |
|
|
|
|
@ -62,7 +62,7 @@ PreReq: OpenPKG, openpkg >= 20160101, x509
|
|
|
|
|
case "%{l_platform -t}" in |
|
|
|
|
amd64-linux* ) tarball="%{SOURCE0}" ;; |
|
|
|
|
amd64-freebsd* ) tarball="%{SOURCE1}" ;; |
|
|
|
|
* ) echo "platform \"%{l_platform -t}\" not supported"; exit 1 ;; |
|
|
|
|
* ) echo "platform \"%{l_platform -t}\" not supported"; exit 1 ;; |
|
|
|
|
esac |
|
|
|
|
%{l_gzip} -d -c $tarball | %{l_tar} xf - |
|
|
|
|
mv rust-*/* . |
|
|
|
|
@ -79,10 +79,11 @@ PreReq: OpenPKG, openpkg >= 20160101, x509
|
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/libexec/rust/ |
|
|
|
|
mv $RPM_BUILD_ROOT%{l_prefix}/share/man \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/man |
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share |
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/etc |
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/doc |
|
|
|
|
for prog in cargo cargo-clippy cargo-fmt clippy-driver rls rust-gdb rust-lldb rustc rustdoc rustfmt; do |
|
|
|
|
( echo "#!/bin/sh" |
|
|
|
|
echo "PATH=%{l_prefix}/bin:\$PATH" |
|
|
|
|
echo "export PATH" |
|
|
|
|
echo "LD_LIBRARY_PATH=%{l_prefix}/lib/rust:%{l_prefix}/lib:/usr/lib:/lib" |
|
|
|
|
echo "export LD_LIBRARY_PATH" |
|
|
|
|
echo "SSL_CERT_FILE=%{l_prefix}/etc/x509/public-ca.crt.pem" |
|
|
|
|
|