diff --git a/lldb-3.4.tar.bz2 b/lldb-3.4.tar.bz2 new file mode 100644 index 0000000..db4f735 --- /dev/null +++ b/lldb-3.4.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72394435cba48dd03693f3e9d80f7859dda63e138c6d0fb3fc8e03e9a0b53a98 +size 10619204 diff --git a/lldb-cmake.patch b/lldb-cmake.patch new file mode 100644 index 0000000..b50c1a6 --- /dev/null +++ b/lldb-cmake.patch @@ -0,0 +1,47 @@ +--- lldb.orig/scripts/CMakeLists.txt 2013-06-13 09:05:41.000000000 -0700 ++++ lldb.orig/scripts/CMakeLists.txt 2014-03-08 00:59:09.089734896 -0800 +@@ -16,5 +16,16 @@ + + # Install the LLDB python module on all operating systems (except Windows) + if (NOT CMAKE_SYSTEM_NAME MATCHES "Windows") +- install(SCRIPT lldb_python_module.cmake -DCMAKE_INSTALL_PREFIX=\"${CMAKE_INSTALL_PREFIX}\" -DCMAKE_BUILD_DIR=\"${CMAKE_BUILD_DIR}\") ++ install(CODE " ++ include(FindPythonInterp) ++ ++ SET(PYTHON_DIRECTORY python\${PYTHON_VERSION_MAJOR}.\${PYTHON_VERSION_MINOR}) ++ ++ SET(lldb_module_src ${CMAKE_BINARY_DIR}/lib${LLVM_LIBDIR_SUFFIX}/\${PYTHON_DIRECTORY}) ++ SET(lldb_module_dest \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/lib${LLVM_LIBDIR_SUFFIX}) ++ ++ MESSAGE(STATUS \"Installing LLDB python module from: \${lldb_module_src} to \${lldb_module_dest}\") ++ FILE(COPY \${lldb_module_src} DESTINATION \${lldb_module_dest}) ++ " ++ ) + endif() +--- lldb.orig/scripts/lldb_python_module.cmake 2013-06-13 09:05:41.000000000 -0700 ++++ /dev/null 2014-02-14 05:57:02.719999980 -0800 +@@ -1,14 +0,0 @@ +-# This CMake script installs the LLDB python module from the build directory +-# to the install directory. +- +-# FIXME: if a non-standard version of python is requested, the cmake macro +-# below will need Python_ADDITIONAL_VERSIONS set in order to find it. +-include(FindPythonInterp) +- +-SET(PYTHON_DIRECTORY python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}) +- +-SET(lldb_module_src ${CMAKE_CURRENT_BINARY_DIR}/lib/${PYTHON_DIRECTORY}) +-SET(lldb_module_dest ${CMAKE_INSTALL_PREFIX}/lib) +- +-MESSAGE(STATUS "Installing LLDB python module from: ${lldb_module_src} to ${lldb_module_dest}") +-FILE(COPY "${lldb_module_src}" DESTINATION "${lldb_module_dest}") +--- lldb.orig/source/CMakeLists.txt 2013-11-15 06:15:10.000000000 -0800 ++++ lldb/source/CMakeLists.txt 2014-03-08 03:38:38.480795021 -0800 +@@ -225,5 +225,5 @@ + + install(TARGETS liblldb + RUNTIME DESTINATION bin +- LIBRARY DESTINATION lib +- ARCHIVE DESTINATION lib) ++ LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX} ++ ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX}) diff --git a/lldb.changes b/lldb.changes new file mode 100644 index 0000000..6bb1324 --- /dev/null +++ b/lldb.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Mar 17 09:02:51 UTC 2014 - idonmez@suse.com + +- First release on build.opensuse.org + diff --git a/lldb.spec b/lldb.spec new file mode 100644 index 0000000..4a6239e --- /dev/null +++ b/lldb.spec @@ -0,0 +1,95 @@ +# +# 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