-
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
128
llvm.spec
128
llvm.spec
@ -15,9 +15,7 @@
|
|||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
# norootforbuild
|
|
||||||
|
|
||||||
%define _prefix /usr
|
|
||||||
%define _sharedir %{_prefix}/share
|
%define _sharedir %{_prefix}/share
|
||||||
%define _revision 132050
|
%define _revision 132050
|
||||||
%define _release_version 3.0
|
%define _release_version 3.0
|
||||||
@ -29,12 +27,12 @@
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
Name: llvm
|
Name: llvm
|
||||||
Summary: Low Level Virtual Machine
|
|
||||||
Version: 2.9.99.git20110525
|
Version: 2.9.99.git20110525
|
||||||
Release: 0
|
Release: 0
|
||||||
License: NCSA
|
License: NCSA
|
||||||
Group: Development/Languages/Other
|
Summary: Low Level Virtual Machine
|
||||||
Url: http://www.llvm.org
|
Url: http://www.llvm.org
|
||||||
|
Group: Development/Languages/Other
|
||||||
Source0: %{name}-%{version}.tar.xz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
Source100: %{name}-rpmlintrc
|
Source100: %{name}-rpmlintrc
|
||||||
# PATCH-FIX-OPENSUSE set-revision.patch idoenmez@suse.de -- Allow us to set revision
|
# 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
|
# PATCH-FIX-OPENSUSE set-revision.patch idoenmez@suse.de -- Use correct lib prefix
|
||||||
Patch2: clang-cmake-lib.patch
|
Patch2: clang-cmake-lib.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
BuildRequires: autoconf
|
||||||
BuildRequires: autoconf automake bison cmake flex gcc gcc-c++
|
BuildRequires: automake
|
||||||
BuildRequires: chrpath groff libtool python-devel
|
BuildRequires: bison
|
||||||
BuildRequires: dejagnu tcl-devel tk-devel
|
BuildRequires: chrpath
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: dejagnu
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: flex
|
||||||
|
BuildRequires: gcc
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: groff
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: python-devel
|
||||||
|
BuildRequires: tcl-devel
|
||||||
|
BuildRequires: tk-devel
|
||||||
BuildRequires: xz
|
BuildRequires: xz
|
||||||
|
|
||||||
# Code10 does not have libffi
|
# Code10 does not have libffi
|
||||||
@ -69,9 +77,9 @@ tools as well as libraries with equivalent functionality.
|
|||||||
%package devel
|
%package devel
|
||||||
Summary: Libraries and Header Files for LLVM
|
Summary: Libraries and Header Files for LLVM
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}
|
||||||
Requires: libstdc++-devel >= 3.4 libffi-devel
|
Requires: libffi-devel
|
||||||
AutoReqProv: on
|
Requires: libstdc++-devel >= 3.4
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package contains library and header files needed to develop
|
This package contains library and header files needed to develop
|
||||||
@ -80,8 +88,7 @@ new native programs that use the LLVM infrastructure.
|
|||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for LLVM
|
Summary: Documentation for LLVM
|
||||||
Group: Documentation/HTML
|
Group: Documentation/HTML
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}
|
||||||
AutoReqProv: on
|
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
Documentation for the LLVM compiler infrastructure.
|
Documentation for the LLVM compiler infrastructure.
|
||||||
@ -89,9 +96,8 @@ Documentation for the LLVM compiler infrastructure.
|
|||||||
%package clang
|
%package clang
|
||||||
Summary: CLANG frontend for LLVM
|
Summary: CLANG frontend for LLVM
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}
|
||||||
%{py_requires}
|
%{py_requires}
|
||||||
AutoReqProv: on
|
|
||||||
|
|
||||||
%description clang
|
%description clang
|
||||||
This package contains the clang (C language) frontend for LLVM.
|
This package contains the clang (C language) frontend for LLVM.
|
||||||
@ -99,9 +105,8 @@ This package contains the clang (C language) frontend for LLVM.
|
|||||||
%package clang-devel
|
%package clang-devel
|
||||||
Summary: CLANG frontend for LLVM (devel package)
|
Summary: CLANG frontend for LLVM (devel package)
|
||||||
Group: Development/Languages/Other
|
Group: Development/Languages/Other
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}
|
||||||
%{py_requires}
|
%{py_requires}
|
||||||
AutoReqProv: on
|
|
||||||
|
|
||||||
%description clang-devel
|
%description clang-devel
|
||||||
This package contains the clang (C language) frontend for LLVM.
|
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
|
Summary: Vim plugins for LLVM
|
||||||
Group: Productivity/Text/Editors
|
Group: Productivity/Text/Editors
|
||||||
Requires: vim
|
Requires: vim
|
||||||
AutoReqProv: on
|
|
||||||
|
|
||||||
%description vim-plugins
|
%description vim-plugins
|
||||||
This package contains vim plugins for LLVM like syntax highlighting.
|
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 {} +
|
find %{buildroot}%{_includedir}/clang -name '*.tmp' -exec rm {} +
|
||||||
|
|
||||||
# Adjust library path
|
# 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
|
%{buildroot}%{_bindir}/%{name}-config
|
||||||
|
|
||||||
for file in `find examples -type f`; do
|
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/
|
install -m 644 utils/vim/*.vim %{buildroot}%{_datadir}/vim/site/syntax/
|
||||||
mv utils/vim/README utils/vim/README.vim
|
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}
|
||||||
%fdupes -s %{buildroot}%{_docdir}/%{name}-doc
|
%fdupes -s %{buildroot}%{_docdir}/%{name}-doc
|
||||||
|
|
||||||
@ -247,13 +258,13 @@ mv utils/vim/README utils/vim/README.vim
|
|||||||
%exclude %{_bindir}/%{name}-config
|
%exclude %{_bindir}/%{name}-config
|
||||||
%{_bindir}/%{name}*
|
%{_bindir}/%{name}*
|
||||||
%{_bindir}/opt
|
%{_bindir}/opt
|
||||||
%{_mandir}/man1/bugpoint.1.gz
|
%{_mandir}/man1/bugpoint.1%{ext_man}
|
||||||
%exclude %{_mandir}/man1/lit.1.gz
|
%exclude %{_mandir}/man1/lit.1%{ext_man}
|
||||||
%{_mandir}/man1/llc.1.gz
|
%{_mandir}/man1/llc.1%{ext_man}
|
||||||
%{_mandir}/man1/lli.1.gz
|
%{_mandir}/man1/lli.1%{ext_man}
|
||||||
%exclude %{_mandir}/man1/%{name}-config.1.gz
|
%exclude %{_mandir}/man1/%{name}-config.1%{ext_man}
|
||||||
%{_mandir}/man1/llvm*.1.gz
|
%{_mandir}/man1/llvm*.1%{ext_man}
|
||||||
%{_mandir}/man1/opt.1.gz
|
%{_mandir}/man1/opt.1%{ext_man}
|
||||||
|
|
||||||
%files clang
|
%files clang
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -272,33 +283,33 @@ mv utils/vim/README utils/vim/README.vim
|
|||||||
%{_sharedir}/clang
|
%{_sharedir}/clang
|
||||||
%{_mandir}/man1/clang.1.gz
|
%{_mandir}/man1/clang.1.gz
|
||||||
%{_mandir}/man1/tblgen.1.gz
|
%{_mandir}/man1/tblgen.1.gz
|
||||||
%dir %{_prefix}/lib/clang
|
%dir %{_libdir}/clang
|
||||||
%dir %{_prefix}/lib/clang/*
|
%dir %{_libdir}/clang/*
|
||||||
%dir %{_prefix}/lib/clang/*/include
|
%dir %{_libdir}/clang/*/include
|
||||||
%{_prefix}/lib/clang/*/include/altivec.h
|
%{_libdir}/clang/*/include/altivec.h
|
||||||
%{_prefix}/lib/clang/*/include/arm_neon.h
|
%{_libdir}/clang/*/include/arm_neon.h
|
||||||
%{_prefix}/lib/clang/*/include/avxintrin.h
|
%{_libdir}/clang/*/include/avxintrin.h
|
||||||
%{_prefix}/lib/clang/*/include/emmintrin.h
|
%{_libdir}/clang/*/include/emmintrin.h
|
||||||
%{_prefix}/lib/clang/*/include/float.h
|
%{_libdir}/clang/*/include/float.h
|
||||||
%{_prefix}/lib/clang/*/include/immintrin.h
|
%{_libdir}/clang/*/include/immintrin.h
|
||||||
%{_prefix}/lib/clang/*/include/iso646.h
|
%{_libdir}/clang/*/include/iso646.h
|
||||||
%{_prefix}/lib/clang/*/include/limits.h
|
%{_libdir}/clang/*/include/limits.h
|
||||||
%{_prefix}/lib/clang/*/include/mm_malloc.h
|
%{_libdir}/clang/*/include/mm_malloc.h
|
||||||
%{_prefix}/lib/clang/*/include/mmintrin.h
|
%{_libdir}/clang/*/include/mmintrin.h
|
||||||
%{_prefix}/lib/clang/*/include/nmmintrin.h
|
%{_libdir}/clang/*/include/nmmintrin.h
|
||||||
%{_prefix}/lib/clang/*/include/pmmintrin.h
|
%{_libdir}/clang/*/include/pmmintrin.h
|
||||||
%{_prefix}/lib/clang/*/include/smmintrin.h
|
%{_libdir}/clang/*/include/smmintrin.h
|
||||||
%{_prefix}/lib/clang/*/include/stdarg.h
|
%{_libdir}/clang/*/include/stdarg.h
|
||||||
%{_prefix}/lib/clang/*/include/stdbool.h
|
%{_libdir}/clang/*/include/stdbool.h
|
||||||
%{_prefix}/lib/clang/*/include/stddef.h
|
%{_libdir}/clang/*/include/stddef.h
|
||||||
%{_prefix}/lib/clang/*/include/stdint.h
|
%{_libdir}/clang/*/include/stdint.h
|
||||||
%{_prefix}/lib/clang/*/include/tgmath.h
|
%{_libdir}/clang/*/include/tgmath.h
|
||||||
%{_prefix}/lib/clang/*/include/tmmintrin.h
|
%{_libdir}/clang/*/include/tmmintrin.h
|
||||||
%{_prefix}/lib/clang/*/include/varargs.h
|
%{_libdir}/clang/*/include/varargs.h
|
||||||
%{_prefix}/lib/clang/*/include/wmmintrin.h
|
%{_libdir}/clang/*/include/wmmintrin.h
|
||||||
%{_prefix}/lib/clang/*/include/x86intrin.h
|
%{_libdir}/clang/*/include/x86intrin.h
|
||||||
%{_prefix}/lib/clang/*/include/xmmintrin.h
|
%{_libdir}/clang/*/include/xmmintrin.h
|
||||||
%{_prefix}/lib/clang/*/include/mm3dnow.h
|
%{_libdir}/clang/*/include/mm3dnow.h
|
||||||
|
|
||||||
%files clang-devel
|
%files clang-devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -308,13 +319,10 @@ mv utils/vim/README utils/vim/README.vim
|
|||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_bindir}/%{name}-config
|
%{_bindir}/%{name}-config
|
||||||
%doc %{_mandir}/man1/%{name}-config.1.gz
|
%doc %{_mandir}/man1/%{name}-config.1%{ext_man}
|
||||||
%dir %{_includedir}/%{name}
|
%{_includedir}/%{name}/
|
||||||
%{_includedir}/%{name}/*
|
%{_includedir}/%{name}-c/
|
||||||
%dir %{_includedir}/%{name}-c
|
%{_libdir}/%{name}/
|
||||||
%{_includedir}/%{name}-c/*
|
|
||||||
%dir %{_libdir}/%{name}
|
|
||||||
%{_libdir}/%{name}/*
|
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user