5 Summary: Messaging Framework Library
6 Group: System/Libraries
7 Source0: %{name}-%{version}.tar.gz
8 Source1: msg-server.service
9 Source2: msg-server.socket
11 %if "%{?tizen_profile_name}" == "tv"
12 ExcludeArch: %{arm} %ix86 x86_64
15 Requires(post): /usr/bin/sqlite3
16 Requires(post): /sbin/ldconfig
17 Requires(postun): /sbin/ldconfig
18 Requires(post): systemd
19 Requires(postun): systemd
21 BuildRequires: pkgconfig(alarm-service)
22 BuildRequires: pkgconfig(aul)
23 BuildRequires: pkgconfig(badge)
24 BuildRequires: pkgconfig(bundle)
25 BuildRequires: pkgconfig(capi-appfw-application)
26 BuildRequires: pkgconfig(capi-network-connection)
27 BuildRequires: pkgconfig(capi-system-info)
28 BuildRequires: pkgconfig(capi-telephony)
29 BuildRequires: pkgconfig(contacts-service2)
30 BuildRequires: pkgconfig(cynara-client)
31 BuildRequires: pkgconfig(cynara-creds-commons)
32 BuildRequires: pkgconfig(cynara-creds-socket)
33 BuildRequires: pkgconfig(cynara-session)
34 BuildRequires: pkgconfig(db-util)
35 BuildRequires: pkgconfig(deviced)
36 BuildRequires: pkgconfig(dlog)
37 BuildRequires: pkgconfig(eventsystem)
38 BuildRequires: pkgconfig(feedback)
39 BuildRequires: pkgconfig(gio-2.0)
40 BuildRequires: pkgconfig(gobject-2.0)
41 BuildRequires: pkgconfig(iniparser)
42 BuildRequires: pkgconfig(json-glib-1.0)
43 BuildRequires: pkgconfig(lbs-dbus)
44 BuildRequires: pkgconfig(libcurl)
45 BuildRequires: pkgconfig(libsystemd-daemon)
46 BuildRequires: pkgconfig(libxml-2.0)
47 BuildRequires: pkgconfig(libwbxml2)
48 BuildRequires: pkgconfig(capi-media-thumbnail-util)
49 BuildRequires: pkgconfig(capi-media-image-util)
50 BuildRequires: pkgconfig(mm-fileinfo)
51 BuildRequires: pkgconfig(mm-player)
52 BuildRequires: pkgconfig(mm-session)
53 BuildRequires: pkgconfig(mm-sound)
54 BuildRequires: pkgconfig(mmutil-imgp)
55 BuildRequires: pkgconfig(mmutil-jpeg)
56 BuildRequires: pkgconfig(notification)
57 BuildRequires: pkgconfig(privacy-manager-client)
58 BuildRequires: pkgconfig(sensor)
59 BuildRequires: pkgconfig(storage)
60 BuildRequires: pkgconfig(tapi)
61 BuildRequires: pkgconfig(vconf)
64 Description: Messaging Framework Library
69 Summary: Messaging Framework Library (development)
70 Requires: %{name} = %{version}-%{release}
71 Group: Development/Libraries
74 Description: Messaging Framework Library (development)
79 Summary: Messaging server application
80 Requires: %{name} = %{version}-%{release}
81 Group: TO_BU / FILL_IN
82 Requires(post): /usr/bin/sqlite3
83 Requires(post): /sbin/ldconfig
84 Requires(postun): /sbin/ldconfig
87 Description: Messaging server application
90 %package -n sms-plugin
92 Summary: SMS plugin library
93 Requires: %{name} = %{version}-%{release}
94 Group: System/Libraries
95 Requires(post): /sbin/ldconfig
96 Requires(postun): /sbin/ldconfig
98 %description -n sms-plugin
99 Description: SMS plugin library
101 %package -n mms-plugin
103 Summary: MMS plugin library
104 Requires: %{name} = %{version}-%{release}
105 Group: System/Libraries
106 Requires(post): /sbin/ldconfig
107 Requires(postun): /sbin/ldconfig
109 %description -n mms-plugin
110 Description: MMS plugin library
116 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
117 -DLIB_INSTALL_DIR=%{_libdir} \
119 -D_TIZEN_I586_ENABLED:BOOL=ON \
121 -D_TIZEN_I586_ENABLED:BOOL=OFF \
123 %if "%{?tizen_profile_name}" == "wearable"
124 -D_MSG_WEARABLE_PROFILE:BOOL=ON \
126 -D_MSG_WEARABLE_PROFILE:BOOL=OFF \
129 make %{?jobs:-j%jobs}
133 mkdir -p %{buildroot}/usr/share/license
134 mkdir -p %{buildroot}/etc/config
138 mkdir -p %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants
139 install -m 0644 %SOURCE1 %{buildroot}%{_libdir}/systemd/system/msg-server.service
140 ln -s ../msg-server.service %{buildroot}%{_libdir}/systemd/system/multi-user.target.wants/msg-server.service
142 mkdir -p %{buildroot}%{_libdir}/systemd/system/sockets.target.wants
143 install -m 0644 %SOURCE2 %{buildroot}%{_libdir}/systemd/system/msg-server.socket
144 ln -s ../msg-server.socket %{buildroot}%{_libdir}/systemd/system/sockets.target.wants/msg-server.socket
146 mkdir -p %{buildroot}/opt/usr/dbspace
147 sqlite3 %{buildroot}/opt/usr/dbspace/.msg_service.db "PRAGMA journal_mode = PERSIST;"
148 sqlite3 %{buildroot}/opt/usr/dbspace/.msg_service.db < %{buildroot}/usr/share/msg-service/msg-service-db.sql
150 rm %{buildroot}/usr/share/msg-service/msg-service-db.sql
155 chown 200:5000 /opt/usr/dbspace/.msg_service.db
156 chown 200:5000 /opt/usr/dbspace/.msg_service.db-journal
157 chown 200:200 %{_libdir}/systemd/system/msg-server.socket
159 chmod 660 /opt/usr/dbspace/.msg_service.db
160 chmod 660 /opt/usr/dbspace/.msg_service.db-journal
162 mkdir -p -m 775 /opt/usr/data/msg-service
163 mkdir -p -m 775 /opt/usr/data/msg-service/msgdata
164 mkdir -p -m 775 /opt/usr/data/msg-service/smildata
165 mkdir -p -m 775 /opt/usr/data/msg-service/ipcdata
166 mkdir -p -m 775 /opt/usr/data/msg-service/msgdata/thumbnails
168 chown 200:5000 /opt/usr/data/msg-service
169 chown 200:5000 /opt/usr/data/msg-service/msgdata
170 chown 200:5000 /opt/usr/data/msg-service/smildata
171 chown 200:5000 /opt/usr/data/msg-service/ipcdata
172 chown 200:5000 /opt/usr/data/msg-service/msgdata/thumbnails
174 %post -n sms-plugin -p /sbin/ldconfig
175 %post -n mms-plugin -p /sbin/ldconfig
180 %postun -p /sbin/ldconfig
182 %postun tools -p /sbin/ldconfig
183 %postun -n sms-plugin -p /sbin/ldconfig
184 %postun -n mms-plugin -p /sbin/ldconfig
187 %manifest msg-service.manifest
188 %defattr(-,system,system,-)
189 %{_libdir}/libmsg_plugin_manager.so
190 %{_libdir}/libmsg_mapi.so.*
191 %{_libdir}/libmsg_framework_handler.so
192 %{_libdir}/libmsg_transaction_manager.so
193 %{_libdir}/libmsg_utils.so
194 %{_libdir}/libmsg_externals.so
195 %{_libdir}/libmsg_transaction_proxy.so
196 %{_libdir}/libmsg_vobject.so
197 /usr/share/license/msg-service/LICENSE.APLv2
200 %defattr(-,system,system,-)
201 %{_libdir}/libmsg_mapi.so
202 %{_libdir}/pkgconfig/msg-service.pc
203 %{_includedir}/msg-service/*
206 %manifest msg-service-tools.manifest
207 %defattr(-,system,system,-)
208 %caps(cap_chown,cap_dac_override,cap_lease=eip) %{_bindir}/msg-server
209 %config(noreplace) /opt/usr/dbspace/.msg_service.db*
210 %{_libdir}/systemd/system/msg-server.service
211 %{_libdir}/systemd/system/multi-user.target.wants/msg-server.service
212 %{_libdir}/systemd/system/sockets.target.wants/msg-server.socket
213 %{_libdir}/systemd/system/msg-server.socket
214 /usr/share/license/msg-service/LICENSE.APLv2
218 %manifest sms-plugin.manifest
219 %defattr(-,system,system,-)
220 %{_libdir}/libmsg_sms_plugin.so
221 /usr/share/license/msg-service/LICENSE.APLv2
224 %manifest mms-plugin.manifest
225 %defattr(-,system,system,-)
226 %{_libdir}/libmsg_mms_plugin.so
227 /usr/share/license/msg-service/LICENSE.APLv2