From 83cea8cd98ad0cc000ad6474e37db36773083f3b Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 11 May 2023 14:39:21 +0200 Subject: [PATCH] remove shebang in python module files and fix permissions --- gpsd.spec | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gpsd.spec b/gpsd.spec index 91943b9..b58187b 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -172,6 +172,10 @@ desktop-file-install \ # Missed in scons install install -p -m 0755 gpsinit %{buildroot}%{_sbindir} +# Remove shebang and fix permissions +sed -i '/^#!.*python/d' %{buildroot}%{python3_sitearch}/gps/{aio,}gps.py +chmod 644 %{buildroot}%{python3_sitearch}/gps/gps.py + # If qt build was disabled, clean up the files that may have been installed # anyway %if !%{with_qt}