1 %global _support_weblog 0
4 Summary: Push services and client library
7 Group: Application Framework/Service
9 Source0: %{name}-%{version}.tar.gz
10 Source1: pushd.service
11 Requires(post): /sbin/ldconfig
12 Requires(post): /usr/bin/sqlite3
13 Requires(postun): /sbin/ldconfig
15 %if %{_support_weblog}
16 BuildRequires: pkgconfig(zlib)
17 BuildRequires: pkgconfig(json-glib-1.0)
21 Push services and client library.
24 Summary: Push service client library
25 Group: Application Framework/Libraries
26 Requires: %{name}-bin = %{version}-%{release}
27 Provides: libpush.so.0
29 %description -n libpush
30 Push service client library
32 %package -n libpush-devel
33 Summary: Push service client library (DEV)
34 Group: Development/Libraries
35 Requires: libpush = %{version}-%{release}
36 Requires: capi-appfw-application-devel
38 %description -n libpush-devel
39 Push service client library (DEV)
42 Summary: Push service daemon
43 Group: Application Framework/Service
44 Requires(post): telephony-daemon
50 Summary: Push service tool
51 Group: Development/Tools
52 Requires: libpush = %{version}-%{release}
53 Requires: %{name}-bin = %{version}-%{release}
65 mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
66 install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/pushd.service
67 %install_service multi-user.target.wants pushd.service
69 mkdir -p %{buildroot}/usr/share/license
70 cp -f LICENSE %{buildroot}/usr/share/license/%{name}
72 %if %{_support_weblog}
73 cp -a share/push/push_sslkey.pem %{buildroot}/usr/share/push/
74 cp -a share/push/prd-dl-key.pem %{buildroot}/usr/share/push/
77 mkdir -p %{buildroot}%{_includedir}
78 cp -a include/push-service.h %{buildroot}%{_includedir}
79 cp -a include/push.h %{buildroot}%{_includedir}
80 %if %{_support_weblog}
81 include/pushlog.h %{buildroot}%{_includedir}
84 mkdir -p %{buildroot}%{_libdir}/pkgconfig
85 cp -a push.pc %{buildroot}%{_libdir}/pkgconfig/
87 mkdir -p %{buildroot}/usr/share/push/
88 mkdir -p %{buildroot}%{_bindir}
93 cp -a arm/lib/libpush.so.* %{buildroot}%{_libdir}
95 cp -a arm/lib/libpush.so %{buildroot}%{_libdir}
97 cp -a arm/bin/pushd %{buildroot}%{_bindir}
98 cp -a arm/bin/push_tool %{buildroot}%{_bindir}
99 cp -a arm/share/push/*.cer %{buildroot}/usr/share/push/
100 %if %{_support_weblog}
104 %if "%{profile}" == "tv"
106 cp -a arm_tv/lib/libpush.so.* %{buildroot}%{_libdir}
108 cp -a arm_tv/lib/libpush.so %{buildroot}%{_libdir}
110 cp -a arm_tv/bin/pushd %{buildroot}%{_bindir}
111 cp -a arm_tv/bin/push_tool %{buildroot}%{_bindir}
112 cp -a arm_tv/share/push/*.cer %{buildroot}/usr/share/push/
113 %if %{_support_weblog}
114 arm_tv/bin/pushlog_tool
118 %if "%{profile}" == "wearable"
120 cp -a arm_wearable/lib/libpush.so.* %{buildroot}%{_libdir}
122 cp -a arm_wearable/lib/libpush.so %{buildroot}%{_libdir}
124 cp -a arm_wearable/bin/pushd %{buildroot}%{_bindir}
125 cp -a arm_wearable/bin/push_tool %{buildroot}%{_bindir}
126 cp -a arm_wearable/share/push/*.cer %{buildroot}/usr/share/push/
127 %if %{_support_weblog}
128 arm_wearable/bin/pushlog_tool
136 cp -a aarch64/lib64/libpush.so.* %{buildroot}%{_libdir}
138 cp -a aarch64/lib64/libpush.so %{buildroot}%{_libdir}
140 cp -a aarch64/bin/pushd %{buildroot}%{_bindir}
141 cp -a aarch64/bin/push_tool %{buildroot}%{_bindir}
142 cp -a aarch64/share/push/*.cer %{buildroot}/usr/share/push/
143 %if %{_support_weblog}
144 aarch64/bin/pushlog_tool
152 cp -a x86/lib/libpush.so.* %{buildroot}%{_libdir}
154 cp -a x86/lib/libpush.so %{buildroot}%{_libdir}
156 cp -a x86/bin/pushd %{buildroot}%{_bindir}
157 cp -a x86/bin/push_tool %{buildroot}%{_bindir}
158 cp -a x86/share/push/*.cer %{buildroot}/usr/share/push/
159 %if %{_support_weblog}
163 %if "%{profile}" == "tv"
165 cp -a x86_tv/lib/libpush.so.* %{buildroot}%{_libdir}
167 cp -a x86_tv/lib/libpush.so %{buildroot}%{_libdir}
169 cp -a x86_tv/bin/pushd %{buildroot}%{_bindir}
170 cp -a x86_tv/bin/push_tool %{buildroot}%{_bindir}
171 cp -a x86_tv/share/push/*.cer %{buildroot}/usr/share/push/
172 %if %{_support_weblog}
173 x86_tv/bin/pushlog_tool
177 %if "%{profile}" == "wearable"
179 cp -a x86_wearable/lib/libpush.so.* %{buildroot}%{_libdir}
181 cp -a x86_wearable/lib/libpush.so %{buildroot}%{_libdir}
183 cp -a x86_wearable/bin/pushd %{buildroot}%{_bindir}
184 cp -a x86_wearable/bin/push_tool %{buildroot}%{_bindir}
185 cp -a x86_wearable/share/push/*.cer %{buildroot}/usr/share/push/
186 %if %{_support_weblog}
187 x86_wearable/bin/pushlog_tool
196 cp -a x86_64/lib64/libpush.so.* %{buildroot}%{_libdir}
198 cp -a x86_64/lib64/libpush.so %{buildroot}%{_libdir}
200 cp -a x86_64/bin/pushd %{buildroot}%{_bindir}
201 cp -a x86_64/bin/push_tool %{buildroot}%{_bindir}
202 cp -a x86_64/share/push/*.cer %{buildroot}/usr/share/push/
203 %if %{_support_weblog}
204 x86_64/bin/pushlog_tool
210 mkdir -p %{buildroot}%{TZ_SYS_DB}
211 sqlite3 %{buildroot}%{TZ_SYS_DB}/.push.db "PRAGMA journal_mode = PERSIST; create table a(a); drop table a;" > /dev/null
212 chown service_fw:service_fw %{TZ_SYS_DB}/.push.db
213 chown service_fw:service_fw %{TZ_SYS_DB}/.push.db-journal
214 chmod 660 %{TZ_SYS_DB}/.push.db
215 chmod 660 %{TZ_SYS_DB}/.push.db-journal
217 chsmack -a "*" %{TZ_SYS_DB}/.push.db
218 chsmack -a "*" %{TZ_SYS_DB}/.push.db-journal
223 %postun -n libpush -p /sbin/ldconfig
226 %manifest libpush.manifest
227 %attr(644,service_fw,service_fw)%{_libdir}/libpush.so.*
229 %files -n libpush-devel
231 %{_libdir}/pkgconfig/*.pc
232 %{_libdir}/libpush.so
235 %manifest push-bin.manifest
237 %attr(644,service_fw,service_fw)/usr/share/push/*.cer
238 %attr(644,service_fw,service_fw)/usr/share/license/%{name}
240 # This is a certificate file to access to logging server by HTTPS.
241 %if %{_support_weblog}
242 %attr(644,service_fw,service_fw)/usr/share/push/push_sslkey.pem
243 %attr(644,service_fw,service_fw)/usr/share/push/prd-dl-key.pem
246 %{_unitdir}/pushd.service
247 %{_unitdir}/multi-user.target.wants/pushd.service
250 %manifest push-tool.manifest
253 %if %{_support_weblog}
254 %{_bindir}/pushlog_tool
258 * Sat Nov 3 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.26
259 - Prevent bug fixed(out-of bounds read, dead code,..)
260 * Mon Oct 22 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.25
261 - bundle null check added & protobuf null check added
262 * Wed Sep 19 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.24
263 - when pkg is uninstlled, db process is added
264 * Fri Sep 7 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.23
265 - emul check logic is changed(using capi-system-info)
266 * Tue Sep 4 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.22
267 - decoding of message with space character which is urlencoded to "+"
268 * Wed Aug 29 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.21
269 - package uninstalled event added
270 * Fri Aug 17 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.20
271 - debug msg added & some internal function name changed
272 * Wed Aug 8 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.19
273 - push noti default action is silent, and old key is deleted
274 * Wed Aug 8 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.18
275 - tapi imei api is changed for new tapi
276 * Tue Aug 7 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.17
277 - emulator check func is added
278 * Wed Jul 25 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.16
279 - OSP Push noti support(alertMessage,..)