+* Tue Jun 26 2012 Chris Ferron <chris.e.ferron@linux.intel.com>
+- Added systemd to the spec file, and add a service file for systemd.
+
* Fri Jun 08 2012 Anas Nashif <anas.nashif@intel.com> b229f3d
- Fixed permissions of contact data
Summary: Contacts Service
Group: PIM/Contacts
Source0: %{name}-%{version}.tar.gz
+Source1: contacts-server.service
Source1001: contacts-service.manifest
BuildRequires: cmake
BuildRequires: vconf-keys-devel
ln -s ../init.d/contacts-svc-helper.sh %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S50contacts-svc-helper
ln -s ../init.d/contacts-svc-helper.sh %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S50contacts-svc-helper
+
+mkdir -p %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants
+install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/user/contacts-server.service
+ln -s ../contacts-server.service %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants/contacts-server.service
+
+
%post
/sbin/ldconfig
chmod 770 -R /opt/data/contacts-svc/img/
chmod 660 /opt/data/contacts-svc/.CONTACTS_SVC_*
vconftool set -t int db/service/contacts/default_lang 1
-
-# from libcontacts-service.postinst
vconftool set -t int db/service/contacts/name_sorting_order 0 -g 6005
vconftool set -t int db/service/contacts/name_display_order 0 -g 6005
/etc/rc.d/rc*.d/S50contacts-svc-helper
%attr(660,root,db_contacts) /opt/data/contacts-svc/.CONTACTS_SVC_*
%attr(770,root,db_contacts) /opt/data/contacts-svc/img/*
+%{_libdir}/systemd/user/contacts-server.service
+%{_libdir}/systemd/user/tizen-middleware.target.wants/contacts-server.service
%files devel
%manifest contacts-service.manifest