From 62b26987396e5db7ed12e63c470f661ed4714ca1 Mon Sep 17 00:00:00 2001 From: Martin Cermak Date: Thu, 16 Jun 2022 09:38:00 +0200 Subject: [PATCH] systemtap.spec: package stap-profile-annotate if %{with_python3} --- systemtap.spec | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/systemtap.spec b/systemtap.spec index 3936f0644..091c48b35 100644 --- a/systemtap.spec +++ b/systemtap.spec @@ -676,6 +676,11 @@ make %{?_smp_mflags} V=1 %install make DESTDIR=$RPM_BUILD_ROOT install + +%if ! (%{with_python3}) +rm -v $RPM_BUILD_ROOT%{_bindir}/stap-profile-annotate +%endif + %find_lang %{name} for dir in $(ls -1d $RPM_BUILD_ROOT%{_mandir}/{??,??_??}) ; do dir=$(echo $dir | sed -e "s|^$RPM_BUILD_ROOT||") @@ -1078,7 +1083,9 @@ exit 0 %files devel -f systemtap.lang %{_bindir}/stap %{_bindir}/stap-prep +%if %{with_python3} %{_bindir}/stap-profile-annotate +%endif %{_bindir}/stap-report %dir %{_datadir}/systemtap %{_datadir}/systemtap/runtime -- 2.43.5