[packages/python-PyQt4/PyQt4-4.12.3] - fix shebang in examples

qboosh qboosh at pld-linux.org
Tue Mar 17 17:34:23 CET 2020


commit 4959b5793bda96077aee39425fb7dcf819cac9d4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Mar 17 17:35:24 2020 +0100

    - fix shebang in examples

 python-PyQt4.spec | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/python-PyQt4.spec b/python-PyQt4.spec
index 901cd7a..0ec0c95 100644
--- a/python-PyQt4.spec
+++ b/python-PyQt4.spec
@@ -220,6 +220,8 @@ kodu wykorzystującego PyQt4.
 %patch0 -p1
 %patch1 -p1
 
+find examples -name '*.py' | xargs %{__sed} -i -e '1s,/usr/bin/env python,%{__python},'
+
 %build
 %if %{with python2}
 install -d build-py2
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-PyQt4.git/commitdiff/4959b5793bda96077aee39425fb7dcf819cac9d4



More information about the pld-cvs-commit mailing list