-
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
|
%endif
|
||||||
BuildRequires: libffi-devel
|
BuildRequires: libffi-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
BuildRequires: python-Sphinx
|
||||||
BuildRequires: python-base
|
BuildRequires: python-base
|
||||||
|
|
||||||
# LLVM is not supported on PPC64
|
# 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
|
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_prefix}/lib64
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Docs
|
# Build man/html pages
|
||||||
mkdir -p %{buildroot}/usr/share/doc/packages/llvm-doc/
|
cd docs
|
||||||
mv %{buildroot}/usr/docs/llvm/html %{buildroot}/usr/share/doc/packages/llvm-doc/
|
make -f Makefile.sphinx html man
|
||||||
rm -rf %{buildroot}/usr/docs/
|
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
|
# cleanup
|
||||||
file %{buildroot}/%{_bindir}/* | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d
|
file %{buildroot}/%{_bindir}/* | awk -F: '$2~/ELF/{print $1}' | xargs -r chrpath -d
|
||||||
|
Loading…
x
Reference in New Issue
Block a user