[gpsd] move files from /lib

Miroslav Lichvar mlichvar at fedoraproject.org
Thu May 2 11:33:27 UTC 2013


commit e96414ed73089804374788b10ab04f902858145d
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date:   Thu May 2 13:21:11 2013 +0200

    move files from /lib

 gpsd.spec |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gpsd.spec b/gpsd.spec
index dd1340d..618b710 100644
--- a/gpsd.spec
+++ b/gpsd.spec
@@ -100,9 +100,9 @@ export CCFLAGS="%{optflags}"
 DESTDIR=%{buildroot} scons install
 
 # service files
-%{__install} -d -m 0755 %{buildroot}/lib/systemd/system
+%{__install} -d -m 0755 %{buildroot}%{_unitdir}
 %{__install} -p -m 0644 %{SOURCE10} \
-	%{buildroot}/lib/systemd/system/gpsd.service
+	%{buildroot}%{_unitdir}/gpsd.service
 
 %{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
 %{__install} -p -m 0644 %{SOURCE11} \
@@ -114,8 +114,8 @@ DESTDIR=%{buildroot} scons install
 	%{buildroot}%{_sysconfdir}/udev/rules.d/99-gpsd.rules
 
 # hotplug script
-%{__install} -d -m 0755 %{buildroot}/lib/udev
-%{__install} -p -m 0755 gpsd.hotplug %{buildroot}/lib/udev
+%{__install} -d -m 0755 %{buildroot}%{_prefix}/lib/udev
+%{__install} -p -m 0755 gpsd.hotplug %{buildroot}%{_prefix}/lib/udev
 
 # Install the .desktop files
 desktop-file-install \
@@ -165,8 +165,8 @@ done
 %{_bindir}/gpsprof
 %{_bindir}/gpsmon
 %{_bindir}/gpsctl
-/lib/systemd/system/gpsd.service
-/lib/udev/gpsd*
+%{_unitdir}/gpsd.service
+%{_prefix}/lib/udev/gpsd*
 %{_mandir}/man8/gpsd.8*
 %{_mandir}/man8/gpsdctl.8*
 %{_mandir}/man8/gpsinit.8*


More information about the scm-commits mailing list