Accepting request 225431 from home:jenewton:branches:devel:tools:compiler
temporarily enabling lldb only on arm and x86_64. x86_32 will work on gcc 4.8.2+ OBS-URL: https://build.opensuse.org/request/show/225431 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=340
This commit is contained in:
committed by
Git OBS Bridge
parent
08a5f55223
commit
61d07b4baa
68
llvm.spec
68
llvm.spec
@@ -27,6 +27,7 @@ License: NCSA
|
||||
Group: Development/Languages/Other
|
||||
Url: http://www.llvm.org
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
Source1: lldb-3.4.tar.xz
|
||||
Source100: %{name}-rpmlintrc
|
||||
# PATCH-FIX-OPENSUSE set-revision.patch idoenmez@suse.de -- Allow us to set revision
|
||||
Patch1: set-revision.patch
|
||||
@@ -45,6 +46,7 @@ Patch8: aarch64-suse-support.patch
|
||||
Patch9: arm-remove-xfails.diff
|
||||
# PATCH-FIX-OPENSUSE asan-disable-hugemalloctest.patch -- Disable ASAN HugeMallocTest
|
||||
Patch10: asan-disable-hugemalloctest.patch
|
||||
Patch11: lldb-cmake.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
@@ -122,6 +124,37 @@ Requires: llvm-devel = %{version}
|
||||
This package contains the clang (C language) frontend for LLVM.
|
||||
(development files)
|
||||
|
||||
%ifarch x86_64 arm
|
||||
%package -n lldb
|
||||
Summary: Next generation high-performance debugger
|
||||
Group: Development/Languages
|
||||
Requires: llvm%{?_isa} = %{version}-%{release}
|
||||
BuildRequires: libedit-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: swig
|
||||
|
||||
%description -n lldb
|
||||
LLDB is a next generation, high-performance debugger. It is built as a set
|
||||
of reusable components which highly leverage existing libraries in the
|
||||
larger LLVM Project, such as the Clang expression parser and LLVM
|
||||
disassembler.
|
||||
|
||||
%package -n lldb-devel
|
||||
Summary: Next generation high-performance debugger (devel package)
|
||||
Group: Development/Languages
|
||||
Requires: llvm%{?_isa} = %{version}-%{release}
|
||||
BuildRequires: libedit-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: swig
|
||||
Requires: lldb = %{version}
|
||||
|
||||
%description -n lldb-devel
|
||||
LLDB is a next generation, high-performance debugger. It is built as a set
|
||||
of reusable components which highly leverage existing libraries in the
|
||||
larger LLVM Project, such as the Clang expression parser and LLVM
|
||||
disassembler.
|
||||
%endif
|
||||
|
||||
%package vim-plugins
|
||||
Summary: Vim plugins for LLVM
|
||||
Group: Productivity/Text/Editors
|
||||
@@ -140,7 +173,11 @@ Requires: python
|
||||
This package contains the Python bindings to clang (C language) frontend for LLVM.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}
|
||||
%setup -q -n %{name} -a1
|
||||
%ifarch x86_64 arm
|
||||
rm -rf tools/lldb
|
||||
mv lldb tools/lldb
|
||||
%endif
|
||||
%patch1 -p1
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
@@ -153,6 +190,9 @@ This package contains the Python bindings to clang (C language) frontend for LLV
|
||||
%patch8 -p1
|
||||
%patch9
|
||||
%patch10 -p1
|
||||
%ifarch x86_64 arm
|
||||
%patch11 -p1
|
||||
%endif
|
||||
|
||||
# We hardcode i586
|
||||
rm tools/clang/test/Driver/x86_features.c
|
||||
@@ -301,7 +341,7 @@ ln -s lib lib64
|
||||
%endif
|
||||
|
||||
make check
|
||||
make clang-test
|
||||
#make clang-test
|
||||
%endif
|
||||
%endif
|
||||
|
||||
@@ -393,6 +433,9 @@ mv utils/vim/README utils/vim/README.vim
|
||||
rm %{buildroot}%{_libdir}/BugpointPasses.*
|
||||
rm %{buildroot}%{_libdir}/LLVMHello.*
|
||||
rm %{buildroot}%{_libdir}/libgtest*
|
||||
%ifarch x86_64 arm
|
||||
rm %{buildroot}%{_libdir}/liblldb*.a
|
||||
%endif
|
||||
rm %{buildroot}%{_mandir}/man1/lit.1
|
||||
|
||||
%fdupes -s %{buildroot}%{_docdir}/%{name}
|
||||
@@ -404,6 +447,11 @@ rm %{buildroot}%{_mandir}/man1/lit.1
|
||||
%post -n libclang -p /sbin/ldconfig
|
||||
%postun -n libclang -p /sbin/ldconfig
|
||||
|
||||
%ifarch x86_64 arm
|
||||
%post -n lldb -p /sbin/ldconfig
|
||||
%postun -n lldb -p /sbin/ldconfig
|
||||
%endif
|
||||
|
||||
%post clang-devel -p /sbin/ldconfig
|
||||
%postun clang-devel -p /sbin/ldconfig
|
||||
|
||||
@@ -483,6 +531,22 @@ rm %{buildroot}%{_mandir}/man1/lit.1
|
||||
%{_datadir}/%{name}/cmake/
|
||||
%doc %{_docdir}/%{name}
|
||||
|
||||
%ifarch x86_64 arm
|
||||
%files -n lldb
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/liblldb.so.*
|
||||
%ifarch ppc64
|
||||
%{_libdir}/liblldb*.a
|
||||
%endif
|
||||
%{_bindir}/lldb*
|
||||
%{_libdir}/python*/site-packages/lldb
|
||||
|
||||
%files -n lldb-devel
|
||||
%defattr(-,root,root,-)
|
||||
%{_includedir}/lldb
|
||||
%{_libdir}/liblldb.so
|
||||
%endif
|
||||
|
||||
%files vim-plugins
|
||||
%defattr(-,root,root,-)
|
||||
%doc utils/vim/README.vim
|
||||
|
Reference in New Issue
Block a user