add rust-src
This commit is contained in:
parent
bfac8ec0d4
commit
24b87e1c67
20
rust.spec
20
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 <jistone@redhat.com> - 1.20.0-0.beta.3
|
||||
- beta test
|
||||
|
|
Loading…
Reference in New Issue