commit 1466a1eee99dcac43cd878fea9ccac6adb940dfd
Author: Jan Palus <[email protected]>
Date: Mon Oct 5 12:28:43 2020 +0200
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 \
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cluster-glue.git/commitdiff/1466a1eee99dcac43cd878fea9ccac6adb940dfd
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit