2bf142bb0f
OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=346
96 lines
2.6 KiB
RPMSpec
96 lines
2.6 KiB
RPMSpec
#
|
|
# spec file for package lldb
|
|
#
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: lldb
|
|
Version: 3.4
|
|
Release: 0
|
|
Summary: The LLDB Debugger
|
|
License: NCSA
|
|
Group: Development/Languages
|
|
Url: http://lldb.llvm.org/
|
|
Source: lldb-%{version}.tar.bz2
|
|
Patch1: lldb-cmake.patch
|
|
BuildRequires: cmake
|
|
BuildRequires: libedit-devel
|
|
BuildRequires: llvm-clang-devel
|
|
BuildRequires: llvm-devel
|
|
BuildRequires: python-devel
|
|
BuildRequires: swig
|
|
BuildRequires: zlib-devel
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Requires: python-base
|
|
ExclusiveArch: arm x86_64
|
|
|
|
%description
|
|
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 devel
|
|
Summary: Next generation high-performance debugger (devel package)
|
|
Group: Development/Languages
|
|
Requires: libedit-devel
|
|
Requires: lldb = %{version}
|
|
Requires: zlib-devel
|
|
|
|
%description 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.
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1
|
|
|
|
%build
|
|
mkdir build
|
|
pushd build
|
|
cmake -DCMAKE_C_COMPILER=clang \
|
|
-DCMAKE_CXX_COMPILER=clang++ \
|
|
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
|
|
%if "%{_lib}" == "lib64"
|
|
-DLLVM_LIBDIR_SUFFIX=64 \
|
|
%endif
|
|
-DLLDB_PATH_TO_LLVM_BUILD=%{_prefix} \
|
|
-DLLDB_PATH_TO_CLANG_BUILD=%{_prefix} ..
|
|
|
|
%install
|
|
pushd build
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags}
|
|
|
|
rm %{buildroot}%{_libdir}/liblldb*.a
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_libdir}/liblldb.so.*
|
|
%{_bindir}/lldb*
|
|
%{_libdir}/python*/site-packages/lldb
|
|
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%{_includedir}/lldb
|
|
%{_libdir}/liblldb.so
|
|
|
|
%changelog
|