SHA256
1
0
forked from pool/llvm
Ismail Dönmez 2012-11-12 12:21:50 +00:00 committed by Git OBS Bridge
parent 061361dcc4
commit 37c50c4e92

View File

@ -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