-
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=170
This commit is contained in:
parent
061361dcc4
commit
37c50c4e92
13
llvm.spec
13
llvm.spec
@ -56,6 +56,7 @@ BuildRequires: glibc-devel-32bit
|
||||
%endif
|
||||
BuildRequires: libffi-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: python-Sphinx
|
||||
BuildRequires: python-base
|
||||
|
||||
# LLVM is not supported on PPC64
|
||||
@ -220,10 +221,14 @@ sed -i s,ABS_RUN_DIR/lib,ABS_RUN_DIR/lib64, %{buildroot}/%{_bindir}/llvm-config
|
||||
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_prefix}/lib64
|
||||
%endif
|
||||
|
||||
# Docs
|
||||
mkdir -p %{buildroot}/usr/share/doc/packages/llvm-doc/
|
||||
mv %{buildroot}/usr/docs/llvm/html %{buildroot}/usr/share/doc/packages/llvm-doc/
|
||||
rm -rf %{buildroot}/usr/docs/
|
||||
# Build man/html pages
|
||||
cd docs
|
||||
make -f Makefile.sphinx html man
|
||||
rm -rf %{buildroot}/usr/docs
|
||||
gzip _build/man/*.1
|
||||
mv _build/man/* %{buildroot}/usr/share/man/man1
|
||||
mv _build/html/* %{buildroot}/usr/share/doc/packages/llvm-doc
|
||||
rm -rf _build
|
||||
|
||||
# cleanup
|
||||
file %{buildroot}/%{_bindir}/* | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d
|
||||
|
Loading…
Reference in New Issue
Block a user