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

baggins baggins at pld-linux.org
Tue Mar 17 23:54:53 CET 2020


commit f9d43b8017afb4c26a752b4927288df4f9ee0b8d
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Mar 17 23:54:40 2020 +0100

    - fix shebangs
    - rel 4

 python-gammu.spec | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/python-gammu.spec b/python-gammu.spec
index 9852c3d..eea3651 100644
--- a/python-gammu.spec
+++ b/python-gammu.spec
@@ -1,8 +1,8 @@
-%define 	module	python-gammu
+%define		module	python-gammu
 Summary:	Python bindings for Gammu library.
 Name:		%{module}
 Version:	2.3
-Release:	3
+Release:	4
 License:	GPL v2
 Group:		Development/Languages/Python
 Source0:	http://dl.cihar.com/python-gammu/%{module}-%{version}.tar.bz2
@@ -38,6 +38,9 @@ install examples/data/*.* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/data
 install examples/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
 #install examples/data/*.* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/data
 
+sed -E -i -e '1s,#!\s*/usr/bin/env\s+python(\s|$),#!%{__python}\1,' \
+      $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/*.py
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-gammu.git/commitdiff/f9d43b8017afb4c26a752b4927288df4f9ee0b8d



More information about the pld-cvs-commit mailing list