+* Wed Sep 12 2012 Rusty Lynch <rusty.lynch@intel.com> 2e2bef7
+- Start installing Tizen.Device.js
+- Adding a systemd configuration
+
* Fri Sep 07 2012 Rusty Lynch <rusty.lynch@intel.com> cb5c43d
- Initial packaging
--- /dev/null
+[Unit]
+Description=SockDrawer Daemon
+After=syslog.target
+
+[Service]
+ExecStart=/usr/bin/sockdrawer --contentdir=/usr/share/sockdrawer
+ExecReload=/bin/kill -HUP $MAINPID
+KillMode=process
+Restart=always
+StandardOutput=syslog
+
+[Install]
+WantedBy=multi-user.target
+
License: GPLv2.1
URL: https://github.com/otcshare/sockdrawer
Source0: %{name}-%{version}.tar.bz2
+Source1: sockdrawer.service
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
rm -rf %{buildroot}
%make_install
+mkdir -p $RPM_BUILD_ROOT/%{_libdir}/systemd/system/graphical.target.wants
+install -m 0644 %{SOURCE1} $RPM_BUILD_ROOT/%{_libdir}/systemd/system/
+ln -sf ../sockdrawer.service $RPM_BUILD_ROOT/%{_libdir}/systemd/system/graphical.target.wants/sockdrawer.service
+
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_bindir}/sockdrawer
+%{_datadir}/sockdrawer/*
+%{_libdir}/systemd/system/sockdrawer.service
+%{_libdir}/systemd/system/graphical.target.wants/sockdrawer.service