From 37c50c4e9218a83407162c4e2c8bd86991086f4b842e67a6c7c902a03d105e9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Mon, 12 Nov 2012 12:21:50 +0000 Subject: [PATCH] - OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=170 --- llvm.spec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/llvm.spec b/llvm.spec index 627ef28..95dd0db 100644 --- a/llvm.spec +++ b/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