- Fix shebangs of python script (currently still python2)
OBS-URL: https://build.opensuse.org/package/show/Application:Geo/gpsd?expand=0&rev=109
This commit is contained in:
parent
59d107b7a9
commit
5d8ca09324
@ -14,6 +14,7 @@ Mon Nov 20 13:48:01 UTC 2017 - mpluskal@suse.com
|
||||
* gpsmon includes the hostname with the device display.
|
||||
* gpsprof now has centimeter precision.
|
||||
- Add gpsd-python3.patch to fix building with python3
|
||||
- Fix shebangs of python script (currently still python2)
|
||||
- Refresh gpsd-fix-shebang.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
|
@ -167,7 +167,9 @@ install -d -m 755 %{buildroot}%{python_sitearch}
|
||||
install -m 644 %{SOURCE1} %{buildroot}%{_udevdir}/rules.d/51-gpsd.rules
|
||||
install -m 755 %{SOURCE2} %{buildroot}%{_udevdir}/gpsd.sh
|
||||
install -m 644 %{SOURCE3} %{buildroot}%{_localstatedir}/adm/fillup-templates
|
||||
mv -f %{buildroot}%{python_sitelib}/* %{buildroot}%{python_sitearch}
|
||||
if [ %{buildroot}%{python_sitelib} != %{buildroot}%{python_sitearch} ] ; then
|
||||
mv -f %{buildroot}%{python_sitelib}/* %{buildroot}%{python_sitearch}
|
||||
fi
|
||||
if [ -f %{buildroot}%{python_sitearch}/*.egg-info ] ; then
|
||||
rm -f %{buildroot}%{python_sitearch}/*.egg-info
|
||||
fi
|
||||
@ -181,6 +183,9 @@ install -D -m 644 systemd/gpsd.socket %{buildroot}/%{_unitdir}/gpsd.socket
|
||||
install -D -m 644 systemd/gpsdctl@.service %{buildroot}/%{_unitdir}/gpsdctl@.service
|
||||
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rcgpsd
|
||||
|
||||
# Use correct python2 paths
|
||||
sed -i "s|env python|python|g" %{buildroot}%{_bindir}/*
|
||||
|
||||
# strip absolute path and suffix
|
||||
sed -i -e 's#Icon=.*/\([^/]\+\)\(\..\+\)#Icon=\1#' %{buildroot}%{_datadir}/applications/xgps{,speed}.desktop
|
||||
%suse_update_desktop_file -r xgpsspeed System Monitor
|
||||
|
Loading…
x
Reference in New Issue
Block a user