Use ninja and according macros as build system
This commit is contained in:
parent
873af4c66d
commit
89b8044bfc
28
lldb.spec
28
lldb.spec
@ -1,5 +1,5 @@
|
|||||||
#%%global rc_ver 6
|
#%%global rc_ver 6
|
||||||
%global baserelease 5
|
%global baserelease 6
|
||||||
%global lldb_srcdir %{name}-%{version}%{?rc_ver:rc%{rc_ver}}.src
|
%global lldb_srcdir %{name}-%{version}%{?rc_ver:rc%{rc_ver}}.src
|
||||||
|
|
||||||
Name: lldb
|
Name: lldb
|
||||||
@ -14,7 +14,7 @@ Source0: https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{lldb_srcdir}.tar.
|
|||||||
Source1: https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{lldb_srcdir}.tar.xz.sig
|
Source1: https://prereleases.llvm.org/%{version}/rc%{rc_ver}/%{lldb_srcdir}.tar.xz.sig
|
||||||
%else
|
%else
|
||||||
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{lldb_srcdir}.tar.xz
|
Source0: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{lldb_srcdir}.tar.xz
|
||||||
Source3: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{lldb_srcdir}.tar.xz.sig
|
Source1: https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{lldb_srcdir}.tar.xz.sig
|
||||||
%endif
|
%endif
|
||||||
Source2: https://prereleases.llvm.org/%{version}/hans-gpg-key.asc
|
Source2: https://prereleases.llvm.org/%{version}/hans-gpg-key.asc
|
||||||
|
|
||||||
@ -31,9 +31,13 @@ BuildRequires: libxml2-devel
|
|||||||
BuildRequires: libedit-devel
|
BuildRequires: libedit-devel
|
||||||
BuildRequires: python3-lit
|
BuildRequires: python3-lit
|
||||||
BuildRequires: multilib-rpm-config
|
BuildRequires: multilib-rpm-config
|
||||||
|
BuildRequires: ninja-build
|
||||||
|
|
||||||
Requires: python3-lldb
|
Requires: python3-lldb
|
||||||
|
|
||||||
|
# For origin certification
|
||||||
|
BuildRequires: gnupg2
|
||||||
|
|
||||||
%description
|
%description
|
||||||
LLDB is a next generation, high-performance debugger. It is built as a set
|
LLDB is a next generation, high-performance debugger. It is built as a set
|
||||||
of reusable components which highly leverage existing libraries in the
|
of reusable components which highly leverage existing libraries in the
|
||||||
@ -58,20 +62,15 @@ Requires: %{name}%{?_isa} = %{version}-%{release}
|
|||||||
The package contains the LLDB Python module.
|
The package contains the LLDB Python module.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
||||||
%autosetup -n %{lldb_srcdir} -p2
|
%autosetup -n %{lldb_srcdir} -p2
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
mkdir -p _build
|
|
||||||
cd _build
|
|
||||||
|
|
||||||
# Python version detection is broken
|
|
||||||
LDFLAGS="%{__global_ldflags} -lpthread -ldl"
|
|
||||||
|
|
||||||
CFLAGS="%{optflags} -Wno-error=format-security"
|
CFLAGS="%{optflags} -Wno-error=format-security"
|
||||||
CXXFLAGS="%{optflags} -Wno-error=format-security"
|
CXXFLAGS="%{optflags} -Wno-error=format-security"
|
||||||
|
|
||||||
%cmake .. \
|
%cmake -GNinja \
|
||||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
-DCMAKE_SKIP_RPATH:BOOL=ON \
|
||||||
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
|
||||||
@ -94,11 +93,10 @@ CXXFLAGS="%{optflags} -Wno-error=format-security"
|
|||||||
-DLLVM_LIT_ARGS="-sv \
|
-DLLVM_LIT_ARGS="-sv \
|
||||||
--path %{_libdir}/llvm" \
|
--path %{_libdir}/llvm" \
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
%cmake_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd _build
|
%cmake_install
|
||||||
make install DESTDIR=%{buildroot}
|
|
||||||
|
|
||||||
%multilib_fix_c_header --file %{_includedir}/lldb/Host/Config.h
|
%multilib_fix_c_header --file %{_includedir}/lldb/Host/Config.h
|
||||||
|
|
||||||
@ -115,6 +113,9 @@ rm -f %{buildroot}%{python3_sitearch}/six.*
|
|||||||
|
|
||||||
%ldconfig_scriptlets
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%check
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_bindir}/lldb*
|
%{_bindir}/lldb*
|
||||||
%{_libdir}/liblldb.so.*
|
%{_libdir}/liblldb.so.*
|
||||||
@ -128,6 +129,9 @@ rm -f %{buildroot}%{python3_sitearch}/six.*
|
|||||||
%{python3_sitearch}/lldb
|
%{python3_sitearch}/lldb
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Jul 17 2020 sguelton@redhat.com - 10.0.0-6
|
||||||
|
- Use ninja and according macros as build system
|
||||||
|
|
||||||
* Tue Jun 16 2020 sguelton@redhat.com - 10.0.0-5
|
* Tue Jun 16 2020 sguelton@redhat.com - 10.0.0-5
|
||||||
- Finer grain specification of python3-lldb deps
|
- Finer grain specification of python3-lldb deps
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user