]> git.pld-linux.org Git - packages/cluster-glue.git/commitdiff
fix shebangs
authorJan Palus <atler@pld-linux.org>
Mon, 5 Oct 2020 10:28:43 +0000 (12:28 +0200)
committerJan Palus <atler@pld-linux.org>
Mon, 5 Oct 2020 10:28:43 +0000 (12:28 +0200)
cluster-glue.spec

index 2615bc8e5a8b73f078f5e31212475f917044513d..eb74ea96477cad27d248ad2ef68e4108fbc6e600 100644 (file)
@@ -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 \
This page took 0.112384 seconds and 4 git commands to generate.