108 lines
2.8 KiB
RPMSpec
108 lines
2.8 KiB
RPMSpec
Name: lldb
|
|
Version: 3.7.1
|
|
Release: 3%{?dist}
|
|
Summary: Next generation high-performance debugger
|
|
|
|
License: NCSA
|
|
URL: http://llvm.org
|
|
Source0: http://llvm.org/releases/%{version}/%{name}-%{version}.src.tar.xz
|
|
|
|
BuildRequires: cmake
|
|
BuildRequires: llvm-devel = %{version}
|
|
BuildRequires: clang-devel = %{version}
|
|
BuildRequires: libedit-devel
|
|
BuildRequires: swig
|
|
BuildRequires: llvm-static = %{version}
|
|
BuildRequires: libffi-devel
|
|
BuildRequires: zlib-devel
|
|
BuildRequires: libxml2-devel
|
|
|
|
%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: Development header files for LLDB
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
%description devel
|
|
The package contains header files for the LLDB debugger.
|
|
|
|
%package -n python-lldb
|
|
Summary: Python module for LLDB
|
|
BuildRequires: python2-devel
|
|
|
|
%description -n python-lldb
|
|
The package contains the LLDB Python module.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}.src
|
|
|
|
%build
|
|
mkdir -p _build
|
|
cd _build
|
|
|
|
# Python version detection is broken
|
|
|
|
LDFLAGS="%{__global_ldflags} -lpthread -ldl"
|
|
|
|
CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
CXXFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
%cmake .. \
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
-DLLVM_CONFIG:FILEPATH=/usr/bin/llvm-config-%{__isa_bits} \
|
|
\
|
|
-DLLDB_PATH_TO_LLVM_BUILD=%{_prefix} \
|
|
-DLLDB_PATH_TO_CLANG_BUILD=%{_prefix} \
|
|
\
|
|
-DLLDB_DISABLE_CURSES:BOOL=OFF \
|
|
-DLLDB_DISABLE_LIBEDIT:BOOL=OFF \
|
|
-DLLDB_DISABLE_PYTHON:BOOL=OFF \
|
|
\
|
|
-DPYTHON_EXECUTABLE:STRING=%{__python} \
|
|
-DPYTHON_VERSION_MAJOR:STRING=$(%{__python} -c "import sys; print sys.version_info.major") \
|
|
-DPYTHON_VERSION_MINOR:STRING=$(%{__python} -c "import sys; print sys.version_info.minor")
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
cd _build
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
# remove static libraries
|
|
rm -fv %{buildroot}%{_libdir}/*.a
|
|
|
|
# python: fix binary libraries location
|
|
liblldb=$(basename $(readlink -e %{buildroot}%{_libdir}/liblldb.so))
|
|
ln -vsf "../../../${liblldb}" %{buildroot}%{python_sitearch}/lldb/_lldb.so
|
|
mv -v %{buildroot}%{python_sitearch}/readline.so %{buildroot}%{python_sitearch}/lldb/readline.so
|
|
rm -v %{buildroot}%{python_sitearch}/lib
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%{_bindir}/lldb*
|
|
%{_bindir}/argdumper
|
|
%{_libdir}/liblldb.so.*
|
|
|
|
%files devel
|
|
%{_includedir}/lldb
|
|
%{_libdir}/*.so
|
|
|
|
%files -n python-lldb
|
|
%{python_sitearch}/lldb
|
|
|
|
%changelog
|
|
* Sun Feb 14 2016 Dave Airlie <airlied@redhat.com> 3.7.1-3
|
|
- rebuild lldb against latest llvm
|
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.7.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
* Tue Oct 06 2015 Jan Vcelak <jvcelak@fedoraproject.org> 3.7.0-100
|
|
- initial version using cmake build system
|