-
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=30
This commit is contained in:
parent
534aa67019
commit
a11a327a9b
132
llvm.spec
132
llvm.spec
@ -15,9 +15,7 @@
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
%define _prefix /usr
|
||||
%define _sharedir %{_prefix}/share
|
||||
%define _revision 132050
|
||||
%define _release_version 3.0
|
||||
@ -29,12 +27,12 @@
|
||||
%endif
|
||||
|
||||
Name: llvm
|
||||
Summary: Low Level Virtual Machine
|
||||
Version: 2.9.99.git20110525
|
||||
Release: 0
|
||||
License: NCSA
|
||||
Group: Development/Languages/Other
|
||||
Summary: Low Level Virtual Machine
|
||||
Url: http://www.llvm.org
|
||||
Group: Development/Languages/Other
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source100: %{name}-rpmlintrc
|
||||
# PATCH-FIX-OPENSUSE set-revision.patch idoenmez@suse.de -- Allow us to set revision
|
||||
@ -42,11 +40,21 @@ Patch1: set-revision.patch
|
||||
# PATCH-FIX-OPENSUSE set-revision.patch idoenmez@suse.de -- Use correct lib prefix
|
||||
Patch2: clang-cmake-lib.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
BuildRequires: autoconf automake bison cmake flex gcc gcc-c++
|
||||
BuildRequires: chrpath groff libtool python-devel
|
||||
BuildRequires: dejagnu tcl-devel tk-devel
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: bison
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: cmake
|
||||
BuildRequires: dejagnu
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: flex
|
||||
BuildRequires: gcc
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: groff
|
||||
BuildRequires: libtool
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: tcl-devel
|
||||
BuildRequires: tk-devel
|
||||
BuildRequires: xz
|
||||
|
||||
# Code10 does not have libffi
|
||||
@ -63,15 +71,15 @@ LLVM is a compiler infrastructure designed for compile-time,
|
||||
link-time, runtime, and idle-time optimization of programs from
|
||||
arbitrary programming languages.
|
||||
|
||||
The compiler infrastructure includes mirror sets of programming
|
||||
The compiler infrastructure includes mirror sets of programming
|
||||
tools as well as libraries with equivalent functionality.
|
||||
|
||||
%package devel
|
||||
Summary: Libraries and Header Files for LLVM
|
||||
Group: Development/Languages/Other
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: libstdc++-devel >= 3.4 libffi-devel
|
||||
AutoReqProv: on
|
||||
Requires: %{name} = %{version}
|
||||
Requires: libffi-devel
|
||||
Requires: libstdc++-devel >= 3.4
|
||||
|
||||
%description devel
|
||||
This package contains library and header files needed to develop
|
||||
@ -80,8 +88,7 @@ new native programs that use the LLVM infrastructure.
|
||||
%package doc
|
||||
Summary: Documentation for LLVM
|
||||
Group: Documentation/HTML
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
AutoReqProv: on
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description doc
|
||||
Documentation for the LLVM compiler infrastructure.
|
||||
@ -89,19 +96,17 @@ Documentation for the LLVM compiler infrastructure.
|
||||
%package clang
|
||||
Summary: CLANG frontend for LLVM
|
||||
Group: Development/Languages/Other
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name} = %{version}
|
||||
%{py_requires}
|
||||
AutoReqProv: on
|
||||
|
||||
%description clang
|
||||
This package contains the clang (C language) frontend for LLVM.
|
||||
|
||||
%package clang-devel
|
||||
%package clang-devel
|
||||
Summary: CLANG frontend for LLVM (devel package)
|
||||
Group: Development/Languages/Other
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: %{name} = %{version}
|
||||
%{py_requires}
|
||||
AutoReqProv: on
|
||||
|
||||
%description clang-devel
|
||||
This package contains the clang (C language) frontend for LLVM.
|
||||
@ -111,7 +116,6 @@ This package contains the clang (C language) frontend for LLVM.
|
||||
Summary: Vim plugins for LLVM
|
||||
Group: Productivity/Text/Editors
|
||||
Requires: vim
|
||||
AutoReqProv: on
|
||||
|
||||
%description vim-plugins
|
||||
This package contains vim plugins for LLVM like syntax highlighting.
|
||||
@ -173,7 +177,7 @@ file %{buildroot}/%{_libdir}/%{name}/*.so | awk -F: '$2~/ELF/{print $1}' | xargs
|
||||
find %{buildroot}%{_includedir}/clang -name '*.tmp' -exec rm {} +
|
||||
|
||||
# Adjust library path
|
||||
%__sed -i 's,ABS_RUN_DIR/lib",ABS_RUN_DIR/%{_lib}/%{name}",' \
|
||||
sed -i 's,ABS_RUN_DIR/lib",ABS_RUN_DIR/%{_lib}/%{name}",' \
|
||||
%{buildroot}%{_bindir}/%{name}-config
|
||||
|
||||
for file in `find examples -type f`; do
|
||||
@ -230,6 +234,13 @@ install -m 755 -d %{buildroot}%{_datadir}/vim/site/syntax/
|
||||
install -m 644 utils/vim/*.vim %{buildroot}%{_datadir}/vim/site/syntax/
|
||||
mv utils/vim/README utils/vim/README.vim
|
||||
|
||||
# Create man pages because cmake buildsystem doesn't do for us
|
||||
install -m 755 -d %{buildroot}%{_mandir}/man1
|
||||
for i in docs/CommandGuide/*.pod tools/clang/docs/tools/*.pod; do
|
||||
page=echo $i|awk -F"/" '{print $(NF)}' &&
|
||||
groff -Tps -man $page > %{buildroot}%{_mandir}/man1/$page.1;
|
||||
done
|
||||
|
||||
%fdupes -s %{buildroot}%{_docdir}/%{name}
|
||||
%fdupes -s %{buildroot}%{_docdir}/%{name}-doc
|
||||
|
||||
@ -247,13 +258,13 @@ mv utils/vim/README utils/vim/README.vim
|
||||
%exclude %{_bindir}/%{name}-config
|
||||
%{_bindir}/%{name}*
|
||||
%{_bindir}/opt
|
||||
%{_mandir}/man1/bugpoint.1.gz
|
||||
%exclude %{_mandir}/man1/lit.1.gz
|
||||
%{_mandir}/man1/llc.1.gz
|
||||
%{_mandir}/man1/lli.1.gz
|
||||
%exclude %{_mandir}/man1/%{name}-config.1.gz
|
||||
%{_mandir}/man1/llvm*.1.gz
|
||||
%{_mandir}/man1/opt.1.gz
|
||||
%{_mandir}/man1/bugpoint.1%{ext_man}
|
||||
%exclude %{_mandir}/man1/lit.1%{ext_man}
|
||||
%{_mandir}/man1/llc.1%{ext_man}
|
||||
%{_mandir}/man1/lli.1%{ext_man}
|
||||
%exclude %{_mandir}/man1/%{name}-config.1%{ext_man}
|
||||
%{_mandir}/man1/llvm*.1%{ext_man}
|
||||
%{_mandir}/man1/opt.1%{ext_man}
|
||||
|
||||
%files clang
|
||||
%defattr(-,root,root)
|
||||
@ -272,33 +283,33 @@ mv utils/vim/README utils/vim/README.vim
|
||||
%{_sharedir}/clang
|
||||
%{_mandir}/man1/clang.1.gz
|
||||
%{_mandir}/man1/tblgen.1.gz
|
||||
%dir %{_prefix}/lib/clang
|
||||
%dir %{_prefix}/lib/clang/*
|
||||
%dir %{_prefix}/lib/clang/*/include
|
||||
%{_prefix}/lib/clang/*/include/altivec.h
|
||||
%{_prefix}/lib/clang/*/include/arm_neon.h
|
||||
%{_prefix}/lib/clang/*/include/avxintrin.h
|
||||
%{_prefix}/lib/clang/*/include/emmintrin.h
|
||||
%{_prefix}/lib/clang/*/include/float.h
|
||||
%{_prefix}/lib/clang/*/include/immintrin.h
|
||||
%{_prefix}/lib/clang/*/include/iso646.h
|
||||
%{_prefix}/lib/clang/*/include/limits.h
|
||||
%{_prefix}/lib/clang/*/include/mm_malloc.h
|
||||
%{_prefix}/lib/clang/*/include/mmintrin.h
|
||||
%{_prefix}/lib/clang/*/include/nmmintrin.h
|
||||
%{_prefix}/lib/clang/*/include/pmmintrin.h
|
||||
%{_prefix}/lib/clang/*/include/smmintrin.h
|
||||
%{_prefix}/lib/clang/*/include/stdarg.h
|
||||
%{_prefix}/lib/clang/*/include/stdbool.h
|
||||
%{_prefix}/lib/clang/*/include/stddef.h
|
||||
%{_prefix}/lib/clang/*/include/stdint.h
|
||||
%{_prefix}/lib/clang/*/include/tgmath.h
|
||||
%{_prefix}/lib/clang/*/include/tmmintrin.h
|
||||
%{_prefix}/lib/clang/*/include/varargs.h
|
||||
%{_prefix}/lib/clang/*/include/wmmintrin.h
|
||||
%{_prefix}/lib/clang/*/include/x86intrin.h
|
||||
%{_prefix}/lib/clang/*/include/xmmintrin.h
|
||||
%{_prefix}/lib/clang/*/include/mm3dnow.h
|
||||
%dir %{_libdir}/clang
|
||||
%dir %{_libdir}/clang/*
|
||||
%dir %{_libdir}/clang/*/include
|
||||
%{_libdir}/clang/*/include/altivec.h
|
||||
%{_libdir}/clang/*/include/arm_neon.h
|
||||
%{_libdir}/clang/*/include/avxintrin.h
|
||||
%{_libdir}/clang/*/include/emmintrin.h
|
||||
%{_libdir}/clang/*/include/float.h
|
||||
%{_libdir}/clang/*/include/immintrin.h
|
||||
%{_libdir}/clang/*/include/iso646.h
|
||||
%{_libdir}/clang/*/include/limits.h
|
||||
%{_libdir}/clang/*/include/mm_malloc.h
|
||||
%{_libdir}/clang/*/include/mmintrin.h
|
||||
%{_libdir}/clang/*/include/nmmintrin.h
|
||||
%{_libdir}/clang/*/include/pmmintrin.h
|
||||
%{_libdir}/clang/*/include/smmintrin.h
|
||||
%{_libdir}/clang/*/include/stdarg.h
|
||||
%{_libdir}/clang/*/include/stdbool.h
|
||||
%{_libdir}/clang/*/include/stddef.h
|
||||
%{_libdir}/clang/*/include/stdint.h
|
||||
%{_libdir}/clang/*/include/tgmath.h
|
||||
%{_libdir}/clang/*/include/tmmintrin.h
|
||||
%{_libdir}/clang/*/include/varargs.h
|
||||
%{_libdir}/clang/*/include/wmmintrin.h
|
||||
%{_libdir}/clang/*/include/x86intrin.h
|
||||
%{_libdir}/clang/*/include/xmmintrin.h
|
||||
%{_libdir}/clang/*/include/mm3dnow.h
|
||||
|
||||
%files clang-devel
|
||||
%defattr(-,root,root)
|
||||
@ -308,13 +319,10 @@ mv utils/vim/README utils/vim/README.vim
|
||||
%files devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/%{name}-config
|
||||
%doc %{_mandir}/man1/%{name}-config.1.gz
|
||||
%dir %{_includedir}/%{name}
|
||||
%{_includedir}/%{name}/*
|
||||
%dir %{_includedir}/%{name}-c
|
||||
%{_includedir}/%{name}-c/*
|
||||
%dir %{_libdir}/%{name}
|
||||
%{_libdir}/%{name}/*
|
||||
%doc %{_mandir}/man1/%{name}-config.1%{ext_man}
|
||||
%{_includedir}/%{name}/
|
||||
%{_includedir}/%{name}-c/
|
||||
%{_libdir}/%{name}/
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
|
Loading…
x
Reference in New Issue
Block a user