[packages/python-pexpect] - python3 shebang fixes fix

qboosh qboosh at pld-linux.org
Sat Feb 1 10:50:16 CET 2020


commit cd1b1f582d69f578fe84c49957f1241b922b8c74
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Feb 1 10:50:34 2020 +0100

    - python3 shebang fixes fix

 python-pexpect.spec | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/python-pexpect.spec b/python-pexpect.spec
index f610fd6..54859b7 100644
--- a/python-pexpect.spec
+++ b/python-pexpect.spec
@@ -144,9 +144,9 @@ cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
 cp -p examples/* $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}
-%{__sed} -i -e '1s,/usr/bin/env python,%{__python3},' $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*.py
-%{__sed} -i -e '1s,/usr/bin/python,%{__python3},' $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/cgishell.cgi
-%{__sed} -i -e '2s,/usr/bin/env python,,' $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/cgishell.cgi
+%{__sed} -i -e '1s,/usr/bin/env python,%{__python3},' $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}/*.py
+%{__sed} -i -e '1s,/usr/bin/python,%{__python3},' $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}/cgishell.cgi
+%{__sed} -i -e '2s,/usr/bin/env python,,' $RPM_BUILD_ROOT%{_examplesdir}/python3-%{module}-%{version}/cgishell.cgi
 %endif
 
 %clean
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pexpect.git/commitdiff/cd1b1f582d69f578fe84c49957f1241b922b8c74



More information about the pld-cvs-commit mailing list