From 1466a1eee99dcac43cd878fea9ccac6adb940dfd Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Mon, 5 Oct 2020 12:28:43 +0200 Subject: [PATCH] fix shebangs --- cluster-glue.spec | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cluster-glue.spec b/cluster-glue.spec index 2615bc8..eb74ea9 100644 --- a/cluster-glue.spec +++ b/cluster-glue.spec @@ -151,8 +151,11 @@ STONITH (Shoot The Other Node In The Head) to interfejs służący do %patch4 -p1 %endif -sed -i -e's;#!/usr/bin/env \(python\|perl\);#!/usr/bin/\1;' \ - lib/plugins/stonith/external/* +%{__sed} -i -e '1{ + s,^#!.*python$,#!%{__python}, + s,^#!.*bin/env perl,#!%{__perl}, +}' \ + lib/plugins/stonith/external/* %build %{__libtoolize} @@ -162,6 +165,7 @@ sed -i -e's;#!/usr/bin/env \(python\|perl\);#!/usr/bin/\1;' \ %{__autoconf} CPPFLAGS="%{rpmcppflags} -DOPENIPMI_DEFINE_SELECTOR_T" %configure \ + PYTHON=%{__python} \ --docdir=%{_docdir}/%{name}-%{version} \ --disable-fatal-warnings \ --disable-static \ -- 2.44.0