From 24b87e1c67f7d292b88feafe440acb4634a27a35 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 30 Aug 2017 16:35:31 -0700 Subject: [PATCH] add rust-src --- rust.spec | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/rust.spec b/rust.spec index 963ebf4..8e503fe 100644 --- a/rust.spec +++ b/rust.spec @@ -257,6 +257,15 @@ This package includes HTML documentation for the Rust programming language and its standard library. +%package src +Summary: Sources for the Rust standard library +BuildArch: noarch + +%description src +This package includes source files for the Rust standard library. It may be +useful as a reference for code completion tools in various editors. + + %prep %ifarch %{bootstrap_arches} @@ -269,8 +278,9 @@ test -f '%{local_rust_root}/bin/rustc' %setup -q -n %{rustc_package} -# unbundle -rm -rf src/jemalloc/ +# We're disabling jemalloc, but rust-src still wants it. +# rm -rf src/jemalloc/ + %if %without bundled_llvm rm -rf src/llvm/ %endif @@ -342,6 +352,7 @@ find src/vendor -name .cargo-checksum.json \ %{?rustflags:export RUSTFLAGS="%{rustflags}"} DESTDIR=%{buildroot} ./x.py install +DESTDIR=%{buildroot} ./x.py install src # Make sure the shared libraries are in the proper libdir @@ -450,6 +461,11 @@ rm -f %{buildroot}%{rustlibdir}/etc/lldb_*.py* %license %{_docdir}/%{name}/html/*.txt +%files src +%dir %{rustlibdir} +%{rustlibdir}/src + + %changelog * Wed Aug 23 2017 Josh Stone - 1.20.0-0.beta.3 - beta test