--- /dev/null
+[Unit]
+Description=OMA DS agent
+After=calendar.service contacts-service.service pushd.service msg-service.service dbus.service
+
+[Service]
+Type=forking
+ExecStart=/usr/bin/oma-ds-agent
+
+[Install]
+WantedBy=tizen-middleware.target
Group: TO_BE/FILLED_IN
License: Apache License, Version 2.0
Source0: %{name}-%{version}.tar.gz
+Source1: packaing/oma-ds-agent.service
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
BuildRequires: pkgconfig(glib-2.0)
%make_install
+# systemd service script sertup
+mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants
+install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/user/
+ln -s ../oma-ds-agent.service %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants/oma-ds-agent.service
%clean
rm -rf %{buildroot}
%defattr(700,root,root)
/etc/init.d/oma-ds
+%defattr(644,root,root)
+/usr/lib/systemd/user/oma-ds-agent.service
+/usr/lib/systemd/user/tizen-middleware.target.wants/oma-ds-agent.service
+
%files -n ds-public-plugins
%manifest ds-public-plugins.manifest
%defattr(-,root,root,-)