diff --git a/gpsd.spec b/gpsd.spec index 35378aa..4b506b5 100644 --- a/gpsd.spec +++ b/gpsd.spec @@ -114,6 +114,9 @@ different gps devices. %prep %setup -q +# fix paths in systemd unit files +sed -i 's|/usr/local/sbin|%{_sbindir}|' systemd/*.service + # set gpsd revision string to include package revision sed -i 's|^revision=.*REVISION.*$|revision='\'\ '#define REVISION "%{version}-%{release}'\"\'\| SConstruct