[systemd] Move service to system tizen_2.1 submit/tizen_2.1/20130515.030950
authorSeungbae Shin <seungbae.shin@samsung.com>
Tue, 14 May 2013 13:52:34 +0000 (22:52 +0900)
committerSeungbae Shin <seungbae.shin@samsung.com>
Tue, 14 May 2013 13:56:06 +0000 (22:56 +0900)
Change-Id: Idc589f17dd2cc52675c7802756469706cde2f220

packaging/libmm-sound.spec
packaging/sound-server.service

index f6c77f8..9cc3ca1 100644 (file)
@@ -1,7 +1,7 @@
 Name:       libmm-sound
 Summary:    MMSound Package contains client lib and sound_server binary
-Version:    0.7.1
-Release:    2
+Version:    0.7.2
+Release:    0
 Group:      System/Libraries
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
@@ -72,10 +72,10 @@ make %{?_smp_mflags}
 
 %install
 %make_install
-install -d %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants
-install -m0644 %{SOURCE1} %{buildroot}/usr/lib/systemd/user/
-install -m0644 %{SOURCE2} %{buildroot}/usr/lib/systemd/user/
-ln -sf ../sound-server.path %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants/sound-server.path
+install -d %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
+install -m0644 %{SOURCE1} %{buildroot}%{_libdir}/systemd/system/
+install -m0644 %{SOURCE2} %{buildroot}%{_libdir}/systemd/system/
+ln -sf ../sound-server.path %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/sound-server.path
 
 # FIXME: remove after systemd is in
 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc3.d
@@ -120,10 +120,10 @@ ln -s %{_sysconfdir}/rc.d/init.d/soundserver %{buildroot}%{_sysconfdir}/rc.d/rc4
 %attr(0755,root,root) %{_sysconfdir}/rc.d/init.d/soundserver
 %{_sysconfdir}/rc.d/rc3.d/S23soundserver
 %{_sysconfdir}/rc.d/rc4.d/S23soundserver
-/usr/lib/systemd/user/tizen-middleware.target.wants/sound-server.path
-/usr/lib/systemd/user/sound-server.service
-/usr/lib/systemd/user/sound-server.path
 /usr/share/sounds/sound-server/*
+%{_libdir}/systemd/system/multi-user.target.wants/sound-server.path
+%{_libdir}/systemd/system/sound-server.service
+%{_libdir}/systemd/system/sound-server.path
 
 %files devel
 %defattr(-,root,root,-)
index 405896e..6e9b9f5 100644 (file)
@@ -9,4 +9,4 @@ Restart=always
 RestartSec=2
 
 [Install]
-WantedBy=tizen-middleware.target
+WantedBy=multi-user.target