From 9e6ce8dacf1e2c999ae3c8db0220e150fb13c451 Mon Sep 17 00:00:00 2001 From: xuezhixin Date: Wed, 30 Oct 2024 21:45:24 +0800 Subject: [PATCH] use the new cmake macros --- bpftrace.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/bpftrace.spec b/bpftrace.spec index 959d150..2a2b313 100644 --- a/bpftrace.spec +++ b/bpftrace.spec @@ -1,6 +1,6 @@ Name: bpftrace Version: 0.19.1 -Release: 2 +Release: 3 Summary: High-level tracing language for Linux eBPF License: ASL 2.0 @@ -40,13 +40,13 @@ and predecessor tracers such as DTrace and SystemTap. -DBUILD_SHARED_LIBS:BOOL=OFF \ -DENABLE_LLVM_SHARED=1 \ -DUSE_SYSTEM_BPF_BCC:BOOL=ON -%make_build +%cmake_build %install %global __os_install_post %{nil} %global _find_debuginfo_opts -g -%make_install +%cmake_install find %{buildroot}%{_datadir}/%{name}/tools -type f -exec \ sed -i -e '1s=^#!/usr/bin/env %{name}\([0-9.]\+\)\?$=#!%{_bindir}/%{name}=' {} \; @@ -68,6 +68,9 @@ find %{buildroot}%{_datadir}/%{name}/tools -type f -exec \ %changelog +* Wed Oct 30 2024 xuezhixin - 0.19.1-3 +- use the new cmake macros + * Tue Feb 27 2024 Huang Yang - 0.19.1-2 - add loongarch64 support -- Gitee