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}