2 Summary: oma-ds-agent daemon for data sync
6 License: Apache License, Version 2.0
7 Source0: %{name}-%{version}.tar.gz
8 Source1: packaing/oma-ds-agent.service
9 Requires(post): /sbin/ldconfig
10 Requires(postun): /sbin/ldconfig
11 BuildRequires: pkgconfig(glib-2.0)
12 BuildRequires: pkgconfig(libsoup-2.4)
13 BuildRequires: pkgconfig(sqlite3)
14 BuildRequires: pkgconfig(sync-agent)
15 BuildRequires: pkgconfig(vconf)
16 BuildRequires: pkgconfig(dbus-glib-1)
17 BuildRequires: pkgconfig(check)
18 BuildRequires: pkgconfig(memo)
19 BuildRequires: pkgconfig(contacts-service2)
20 BuildRequires: pkgconfig(dlog)
21 BuildRequires: pkgconfig(aul)
22 BuildRequires: expat-devel
28 oma-ds-agent daemon (development headers)
30 %package -n ds-public-plugins
31 Summary: DS Public Plugins
34 %description -n ds-public-plugins
35 ds public plugins for sync-agent
43 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
50 if [ ! -d %{buildroot}/opt/dbspace ]
52 mkdir -p %{buildroot}/opt/dbspace
55 sqlite3 %{buildroot}/opt/dbspace/.omasyncagent.db "PRAGMA journal_mode = PERSIST; create table a(a); drop table a;" > /dev/null
59 # systemd service script sertup
60 mkdir -p %{buildroot}%{_libdir}/systemd/system/graphical.target.wants
61 install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/system/
62 ln -s ../oma-ds-agent.service %{buildroot}%{_libdir}/systemd/system/graphical.target.wants/oma-ds-agent.service
69 if [ ! -d /opt/dbspace ]
73 if [ ! -d /etc/rc.d/rc3.d ]
77 if [ ! -d /etc/rc.d/rc5.d ]
82 if [ ! -f /etc/rc.d/rc3.d/S91oma-ds-agent ]
84 ln -s /etc/init.d/oma-ds /etc/rc.d/rc3.d/S91oma-ds-agent
87 if [ ! -f /etc/rc.d/rc5.d/S91oma-ds-agent ]
89 ln -s /etc/init.d/oma-ds /etc/rc.d/rc5.d/S91oma-ds-agent
92 #/etc/init.d/oma-ds start
96 /etc/init.d/oma-ds stop
101 rm -f /tmp/agent_fw_event_omads*
102 rm -f /tmp/agent_fw_noti_reply_omads*
104 rm -f /etc/rc.d/rc3.d/S91oma-ds-agent
105 rm -f /etc/rc.d/rc5.d/S91oma-ds-agent
107 rm -f /opt/dbspace/.omasyncagent.db /opt/dbspace/.omasyncagent.db-journal
109 rm -rf /usr/share/oma-ds-cfg
113 %attr(600,root,root) /opt/dbspace/.omasyncagent.db
114 %attr(600,root,root) /opt/dbspace/.omasyncagent.db-journal
116 %manifest oma-ds-agent.manifest
117 %defattr(-,root,root,-)
118 /usr/share/dbus-1/services/*
119 /usr/bin/oma-ds-agent
121 /usr/share/oma-ds-cfg/*
123 %defattr(700,root,root)
126 %defattr(644,root,root)
127 /usr/lib/systemd/system/oma-ds-agent.service
128 /usr/lib/systemd/system/graphical.target.wants/oma-ds-agent.service
130 %files -n ds-public-plugins
131 %manifest ds-public-plugins.manifest
132 %defattr(-,root,root,-)
133 /usr/lib/sync-agent/ds-public/*