adopt to new cmake macro

This commit is contained in:
Funda Wang 2024-11-13 12:50:59 +08:00
parent 75bb152e04
commit 6b1bd085ee
2 changed files with 10 additions and 15 deletions

View File

@ -1,8 +1,9 @@
%undefine __cmake_in_source_build
%bcond_without bisheng_autotuner %bcond_without bisheng_autotuner
Name: lldb Name: lldb
Version: 17.0.6 Version: 17.0.6
Release: 2 Release: 3
Summary: Next generation high-performance debugger Summary: Next generation high-performance debugger
License: NCSA License: NCSA
@ -59,16 +60,13 @@ The package contains the LLDB Python module.
%build %build
mkdir -p _build
cd _build
# Python version detection is broken # Python version detection is broken
LDFLAGS="%{__global_ldflags} -lpthread -ldl" LDFLAGS="%{build_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 \
-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 \
@ -95,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}
# remove static libraries # remove static libraries
rm -fv %{buildroot}%{_libdir}/*.a rm -fv %{buildroot}%{_libdir}/*.a
@ -112,11 +109,6 @@ ln -vsf "../../../${liblldb}" %{buildroot}%{python3_sitearch}/lldb/_lldb.so
# remove bundled six.py # remove bundled six.py
rm -f %{buildroot}%{python3_sitearch}/six.* rm -f %{buildroot}%{python3_sitearch}/six.*
%ldconfig_scriptlets
%check
%files %files
%license LICENSE.TXT %license LICENSE.TXT
%{_bindir}/lldb* %{_bindir}/lldb*
@ -131,6 +123,9 @@ rm -f %{buildroot}%{python3_sitearch}/six.*
%{python3_sitearch}/lldb %{python3_sitearch}/lldb
%changelog %changelog
* Wed Nov 13 2024 Funda Wang <fundawang@yeah.net> - 17.0.6-3
- adopt to new cmake macro
* Tue Aug 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-2 * Tue Aug 20 2024 liyunfei <liyunfei33@huawei.com> - 17.0.6-2
- Add BiSheng Autotuner support. - Add BiSheng Autotuner support.

View File

@ -1,4 +1,4 @@
version_control: github version_control: github
src_repo: llvm/llvm-project src_repo: llvm/llvm-project
tag_prefix: ^llvmorg- tag_prefix: ^llvmorg-
seperator: . separator: .