2022-01-06 15:35:07 +08:00
|
|
|
Name: lldb
|
2023-12-04 10:18:40 +08:00
|
|
|
Version: 17.0.6
|
2022-01-06 15:35:07 +08:00
|
|
|
Release: 1
|
|
|
|
|
Summary: Next generation high-performance debugger
|
|
|
|
|
|
|
|
|
|
License: NCSA
|
|
|
|
|
URL: http://lldb.llvm.org/
|
|
|
|
|
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
BuildRequires: cmake
|
2023-06-25 19:47:21 +08:00
|
|
|
BuildRequires: clang
|
2022-01-06 15:35:07 +08:00
|
|
|
BuildRequires: llvm-devel = %{version}
|
|
|
|
|
BuildRequires: llvm-test = %{version}
|
|
|
|
|
BuildRequires: clang-devel = %{version}
|
2023-06-25 19:47:21 +08:00
|
|
|
BuildRequires: clang-tools-extra = %{version}
|
2022-01-06 15:35:07 +08:00
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
|
BuildRequires: swig
|
|
|
|
|
BuildRequires: llvm-static = %{version}
|
|
|
|
|
BuildRequires: libffi-devel
|
|
|
|
|
BuildRequires: zlib-devel
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
BuildRequires: libedit-devel
|
|
|
|
|
BuildRequires: python3-lit
|
|
|
|
|
BuildRequires: multilib-rpm-config
|
|
|
|
|
|
|
|
|
|
Requires: python3-lldb
|
|
|
|
|
|
2019-12-06 10:31:50 +08:00
|
|
|
%description
|
2020-10-12 09:30:13 +08:00
|
|
|
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.
|
2019-12-06 10:31:50 +08:00
|
|
|
|
|
|
|
|
%package devel
|
2022-01-06 15:35:07 +08:00
|
|
|
Summary: Development header files for LLDB
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2019-12-06 10:31:50 +08:00
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
|
The package contains header files for the LLDB debugger.
|
|
|
|
|
|
2020-10-12 09:30:13 +08:00
|
|
|
%package -n python3-lldb
|
|
|
|
|
%{?python_provide:%python_provide python3-lldb}
|
2022-01-06 15:35:07 +08:00
|
|
|
Summary: Python module for LLDB
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
Requires: python3-six
|
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2023-12-04 10:18:40 +08:00
|
|
|
BuildRequires: llvm-cmake-utils = %{version}
|
2019-12-06 10:31:50 +08:00
|
|
|
|
2020-10-12 09:30:13 +08:00
|
|
|
%description -n python3-lldb
|
2019-12-06 10:31:50 +08:00
|
|
|
The package contains the LLDB Python module.
|
|
|
|
|
|
|
|
|
|
%prep
|
2020-10-12 09:30:13 +08:00
|
|
|
%autosetup -n %{name}-%{version}.src -p2
|
2019-12-06 10:31:50 +08:00
|
|
|
|
|
|
|
|
%build
|
2020-10-12 09:30:13 +08:00
|
|
|
|
|
|
|
|
mkdir -p _build
|
|
|
|
|
cd _build
|
|
|
|
|
|
|
|
|
|
# Python version detection is broken
|
2019-12-06 10:31:50 +08:00
|
|
|
LDFLAGS="%{__global_ldflags} -lpthread -ldl"
|
2020-10-12 09:30:13 +08:00
|
|
|
|
2019-12-06 10:31:50 +08:00
|
|
|
CFLAGS="%{optflags} -Wno-error=format-security"
|
|
|
|
|
CXXFLAGS="%{optflags} -Wno-error=format-security"
|
2020-10-12 09:30:13 +08:00
|
|
|
|
2022-01-06 15:35:07 +08:00
|
|
|
%cmake .. \
|
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
|
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
|
|
|
|
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
|
|
|
|
-DLLVM_CONFIG:FILEPATH=/usr/bin/llvm-config-%{__isa_bits} \
|
|
|
|
|
\
|
|
|
|
|
-DLLDB_DISABLE_CURSES:BOOL=OFF \
|
|
|
|
|
-DLLDB_DISABLE_LIBEDIT:BOOL=OFF \
|
|
|
|
|
-DLLDB_DISABLE_PYTHON:BOOL=OFF \
|
2020-10-12 09:30:13 +08:00
|
|
|
%if 0%{?__isa_bits} == 64
|
2022-01-06 15:35:07 +08:00
|
|
|
-DLLVM_LIBDIR_SUFFIX=64 \
|
2020-10-12 09:30:13 +08:00
|
|
|
%else
|
2022-01-06 15:35:07 +08:00
|
|
|
-DLLVM_LIBDIR_SUFFIX= \
|
2020-10-12 09:30:13 +08:00
|
|
|
%endif
|
2022-01-06 15:35:07 +08:00
|
|
|
\
|
|
|
|
|
-DPYTHON_EXECUTABLE:STRING=%{__python3} \
|
|
|
|
|
-DPYTHON_VERSION_MAJOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.major)") \
|
|
|
|
|
-DPYTHON_VERSION_MINOR:STRING=$(%{__python3} -c "import sys; print(sys.version_info.minor)") \
|
|
|
|
|
-DLLVM_EXTERNAL_LIT=%{_bindir}/lit \
|
|
|
|
|
-DCLANG_LINK_CLANG_DYLIB=ON \
|
2023-12-04 10:18:40 +08:00
|
|
|
-DLLVM_COMMON_CMAKE_UTILS=%{_datadir}/llvm/cmake \
|
2022-01-06 15:35:07 +08:00
|
|
|
-DLLVM_LIT_ARGS="-sv \
|
|
|
|
|
--path %{_libdir}/llvm" \
|
2020-10-12 09:30:13 +08:00
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2019-12-06 10:31:50 +08:00
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
cd _build
|
2020-10-12 09:30:13 +08:00
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
|
|
# remove static libraries
|
|
|
|
|
rm -fv %{buildroot}%{_libdir}/*.a
|
|
|
|
|
|
|
|
|
|
# python: fix binary libraries location
|
2019-12-06 10:31:50 +08:00
|
|
|
liblldb=$(basename $(readlink -e %{buildroot}%{_libdir}/liblldb.so))
|
2020-10-12 09:30:13 +08:00
|
|
|
ln -vsf "../../../${liblldb}" %{buildroot}%{python3_sitearch}/lldb/_lldb.so
|
|
|
|
|
%py_byte_compile %{__python3} %{buildroot}%{python3_sitearch}/lldb
|
2019-12-06 10:31:50 +08:00
|
|
|
|
2020-10-12 09:30:13 +08:00
|
|
|
# remove bundled six.py
|
|
|
|
|
rm -f %{buildroot}%{python3_sitearch}/six.*
|
2019-12-06 10:31:50 +08:00
|
|
|
|
2020-10-12 09:30:13 +08:00
|
|
|
%ldconfig_scriptlets
|
2019-12-06 10:31:50 +08:00
|
|
|
|
2022-01-06 15:35:07 +08:00
|
|
|
%check
|
|
|
|
|
|
|
|
|
|
|
2019-12-06 10:31:50 +08:00
|
|
|
%files
|
2022-01-06 15:35:07 +08:00
|
|
|
%license LICENSE.TXT
|
2019-12-06 10:31:50 +08:00
|
|
|
%{_bindir}/lldb*
|
2020-10-12 09:30:13 +08:00
|
|
|
%{_libdir}/liblldb.so.*
|
|
|
|
|
%{_libdir}/liblldbIntelFeatures.so.*
|
2019-12-06 10:31:50 +08:00
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
|
%{_includedir}/lldb
|
|
|
|
|
%{_libdir}/*.so
|
|
|
|
|
|
2020-10-12 09:30:13 +08:00
|
|
|
%files -n python3-lldb
|
|
|
|
|
%{python3_sitearch}/lldb
|
2019-12-06 10:31:50 +08:00
|
|
|
|
|
|
|
|
%changelog
|
2023-12-04 10:18:40 +08:00
|
|
|
* Mon Dec 4 2023 zhoujing <zhoujing@huawei.com> 17.0.6-1
|
|
|
|
|
- upgrade lldb to 17.0.6
|
|
|
|
|
|
2023-06-25 19:47:21 +08:00
|
|
|
* Mon Jul 17 2023 cf-zhao <zhaochuanfeng@huawei.com> 15.0.7-1
|
|
|
|
|
- upgrade lldb to 15.0.7
|
|
|
|
|
|
2022-01-06 15:35:07 +08:00
|
|
|
* Thu Jan 06 2022 Chen Chen <chen_aka_jan@163.com> - 12.0.1-1
|
|
|
|
|
- upgrade lldb to 12.0.1
|
|
|
|
|
|
2020-10-12 09:30:13 +08:00
|
|
|
* Mon Oct 12 2020 wangxiao <wangxiao65@huawei.com> - 10.0.1-1
|
|
|
|
|
- upgrade lldb to 10.0.1
|
2022-01-06 15:35:07 +08:00
|
|
|
|
2020-10-12 09:30:13 +08:00
|
|
|
* Mon Dec 2 2019 likexin <likexin@huawei.com> 7.0.0-2
|
2019-12-06 10:31:50 +08:00
|
|
|
- Package init
|