update service untis to be installed in /usr/lib vs /lib 20120702.1113
authorChris E Ferron <chris.e.ferron@linux.intel.com>
Mon, 2 Jul 2012 18:13:41 +0000 (11:13 -0700)
committerChris E Ferron <chris.e.ferron@linux.intel.com>
Mon, 2 Jul 2012 18:13:41 +0000 (11:13 -0700)
packaging/ofono.spec

index 2a15200..9dbf570 100644 (file)
@@ -49,15 +49,15 @@ autoreconf --force --install
 
 %configure --disable-static \
     --enable-test \
-    --with-systemdunitdir="/%{_lib}/systemd/system"
+    --with-systemdunitdir="/usr/lib/systemd/system"
 
 make %{?jobs:-j%jobs}
 
 %install
 %make_install
 
-mkdir -p %{buildroot}/%{_lib}/systemd/system/network.target.wants
-ln -s ../ofono.service %{buildroot}/%{_lib}/systemd/system/network.target.wants/ofono.service
+mkdir -p %{buildroot}/usr/lib/systemd/system/network.target.wants
+ln -s ../ofono.service %{buildroot}/usr/lib/systemd/system/network.target.wants/ofono.service
 
 mkdir -p %{buildroot}/etc/rc.d/init.d
 cp %{SOURCE1} %{buildroot}/etc/rc.d/init.d/ofono
@@ -72,8 +72,8 @@ ln -sf ../init.d/ofono /etc/rc.d/rc5.d/S61ofono
 %files
 %config(noreplace) %{_sysconfdir}/dbus-1/system.d/*.conf
 %{_sbindir}/*
-/%{_lib}/systemd/system/network.target.wants/ofono.service
-/%{_lib}/systemd/system/ofono.service
+/usr/lib/systemd/system/network.target.wants/ofono.service
+/usr/lib/systemd/system/ofono.service
 /etc/ofono/phonesim.conf
 /etc/rc.d/init.d/*