remove shebang in python module files and fix permissions

This commit is contained in:
Miroslav Lichvar 2023-05-11 14:39:21 +02:00
parent 6a43fd3e78
commit 83cea8cd98

View File

@ -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}