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.
|
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
|
%prep
|
||||||
|
|
||||||
%ifarch %{bootstrap_arches}
|
%ifarch %{bootstrap_arches}
|
||||||
|
@ -269,8 +278,9 @@ test -f '%{local_rust_root}/bin/rustc'
|
||||||
|
|
||||||
%setup -q -n %{rustc_package}
|
%setup -q -n %{rustc_package}
|
||||||
|
|
||||||
# unbundle
|
# We're disabling jemalloc, but rust-src still wants it.
|
||||||
rm -rf src/jemalloc/
|
# rm -rf src/jemalloc/
|
||||||
|
|
||||||
%if %without bundled_llvm
|
%if %without bundled_llvm
|
||||||
rm -rf src/llvm/
|
rm -rf src/llvm/
|
||||||
%endif
|
%endif
|
||||||
|
@ -342,6 +352,7 @@ find src/vendor -name .cargo-checksum.json \
|
||||||
%{?rustflags:export RUSTFLAGS="%{rustflags}"}
|
%{?rustflags:export RUSTFLAGS="%{rustflags}"}
|
||||||
|
|
||||||
DESTDIR=%{buildroot} ./x.py install
|
DESTDIR=%{buildroot} ./x.py install
|
||||||
|
DESTDIR=%{buildroot} ./x.py install src
|
||||||
|
|
||||||
|
|
||||||
# Make sure the shared libraries are in the proper libdir
|
# 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
|
%license %{_docdir}/%{name}/html/*.txt
|
||||||
|
|
||||||
|
|
||||||
|
%files src
|
||||||
|
%dir %{rustlibdir}
|
||||||
|
%{rustlibdir}/src
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Aug 23 2017 Josh Stone <jistone@redhat.com> - 1.20.0-0.beta.3
|
* Wed Aug 23 2017 Josh Stone <jistone@redhat.com> - 1.20.0-0.beta.3
|
||||||
- beta test
|
- beta test
|
||||||
|
|
Loading…
Reference in New Issue