[packages/python-pygobject] - fix shebangs - rel 4

baggins baggins at pld-linux.org
Sat Apr 25 11:12:26 CEST 2020


commit 058710b268bab67628065d77a7733c741088a56f
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sat Apr 25 11:09:52 2020 +0200

    - fix shebangs
    - rel 4

 python-pygobject.spec | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/python-pygobject.spec b/python-pygobject.spec
index d6c2ff7..9ba5d7a 100644
--- a/python-pygobject.spec
+++ b/python-pygobject.spec
@@ -8,7 +8,7 @@ Summary:	Python bindings for GObject library
 Summary(pl.UTF-8):	Wiązania Pythona do biblioteki GObject
 Name:		python-%{module}
 Version:	2.28.7
-Release:	3
+Release:	4
 License:	LGPL v2+
 Group:		Libraries/Python
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/%{module}-%{version}.tar.xz
@@ -180,6 +180,9 @@ install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
 cp -a examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 
+%{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' \
+	$RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*.py
+
 %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la
 
 %if %{with python2}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-pygobject.git/commitdiff/058710b268bab67628065d77a7733c741088a56f



More information about the pld-cvs-commit mailing list