From: Jan Rękorajski Date: Sun, 3 May 2020 10:38:12 +0000 (+0200) Subject: - fix shebangs X-Git-Tag: auto/th/systemtap-3.3-5 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=fe297aaf5442f706b5c957ec3d5b318998ce548a;p=packages%2Fsystemtap.git - fix shebangs - rel 5 --- diff --git a/systemtap.spec b/systemtap.spec index 740409e..1a806f5 100644 --- a/systemtap.spec +++ b/systemtap.spec @@ -18,7 +18,7 @@ Summary: Instrumentation System Summary(pl.UTF-8): System oprzyrządowania Name: systemtap Version: 3.3 -Release: 4 +Release: 5 License: GPL v2+ Group: Base Source0: http://sourceware.org/systemtap/ftp/releases/%{name}-%{version}.tar.gz @@ -293,6 +293,12 @@ Przewodniki i dokumentacja wprowadzająca do SystemTap. %patch2 -p1 %endif +%{__sed} -E -i -e '1s,#!\s*/usr/bin/python(\s|$),#!%{__python}\1,' \ + testsuite/systemtap.examples/general/pyexample.py + +find testsuite/systemtap.examples/ -name '*.stp' -print0 | xargs -0 \ + %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+stap(\s|$),#!%{_bindir}/stap\1,' + %build %{__gettextize} %{__aclocal}