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 Source2: pushd.asan.conf
12 Requires(post): /sbin/ldconfig
13 Requires(post): /usr/bin/sqlite3
14 Requires(postun): /sbin/ldconfig
15 BuildRequires: pkgconfig(libtzplatform-config)
17 %if %{_support_weblog}
18 BuildRequires: pkgconfig(zlib)
19 BuildRequires: pkgconfig(json-glib-1.0)
24 Push services and client library.
27 Summary: Push service client library
28 Group: Application Framework/Libraries
29 Requires: %{name}-bin = %{version}-%{release}
31 %description -n libpush
32 Push service client library
34 %package -n libpush-devel
35 Summary: Push service client library (DEV)
36 Group: Development/Libraries
37 Requires: libpush = %{version}-%{release}
38 Requires: capi-appfw-application-devel
40 %description -n libpush-devel
41 Push service client library (DEV)
44 Summary: Push service daemon
45 Group: Application Framework/Service
51 Summary: Push service tool
52 Group: Development/Tools
53 Requires: libpush = %{version}-%{release}
54 Requires: %{name}-bin = %{version}-%{release}
68 mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
69 install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/pushd.service
70 %install_service multi-user.target.wants pushd.service
72 mkdir -p %{buildroot}%{_unitdir}/pushd.service.d
73 install -m 644 %SOURCE2 %{buildroot}%{_unitdir}/pushd.service.d/pushd.asan.conf
76 mkdir -p %{buildroot}%{_includedir}
77 cp -a include/push-service.h %{buildroot}%{_includedir}
78 cp -a include/push.h %{buildroot}%{_includedir}
79 %if %{_support_weblog}
80 include/pushlog.h %{buildroot}%{_includedir}
83 mkdir -p %{buildroot}%{_libdir}/pkgconfig
84 cp -a push.pc %{buildroot}%{_libdir}/pkgconfig/
85 mkdir -p %{buildroot}%{_bindir}
88 mkdir -p %{buildroot}/usr/share/push
94 for FILE in libpush.so*; do cp -a "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
97 for FILE in push*; do cp -a "$FILE" "%{buildroot}%{_bindir}/$FILE"; done
99 pushd armv7l/share/push/
100 for FILE in *.cer; do cp -a "$FILE" "%{buildroot}/usr/share/push/$FILE"; done
102 %if %{_support_weblog}
103 armv7l/bin/pushlog_tool
111 for FILE in libpush.so*; do cp -a "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
114 for FILE in push*; do cp -a "$FILE" "%{buildroot}%{_bindir}/$FILE"; done
116 pushd armv7hl/share/push/
117 for FILE in *.cer; do cp -a "$FILE" "%{buildroot}/usr/share/push/$FILE"; done
119 %if %{_support_weblog}
120 armv7hl/bin/pushlog_tool
128 for FILE in libpush.so*; do cp -a "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
131 for FILE in push*; do cp -a "$FILE" "%{buildroot}%{_bindir}/$FILE"; done
133 pushd aarch64/share/push/
134 for FILE in *.cer; do cp -a "$FILE" "%{buildroot}/usr/share/push/$FILE"; done
136 %if %{_support_weblog}
137 aarch64/bin/pushlog_tool
145 for FILE in libpush.so*; do cp -a "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
148 for FILE in push*; do cp -a "$FILE" "%{buildroot}%{_bindir}/$FILE"; done
150 pushd riscv64/share/push/
151 for FILE in *.cer; do cp -a "$FILE" "%{buildroot}/usr/share/push/$FILE"; done
153 %if %{_support_weblog}
154 riscv64/bin/pushlog_tool
162 for FILE in libpush.so*; do cp -a "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
165 for FILE in push*; do cp -a "$FILE" "%{buildroot}%{_bindir}/$FILE"; done
167 pushd x86/share/push/
168 for FILE in *.cer; do cp -a "$FILE" "%{buildroot}/usr/share/push/$FILE"; done
170 %if %{_support_weblog}
179 for FILE in libpush.so*; do cp -a "$FILE" "%{buildroot}%{_libdir}/$FILE"; done
182 for FILE in push*; do cp -a "$FILE" "%{buildroot}%{_bindir}/$FILE"; done
184 pushd x86_64/share/push/
185 for FILE in *.cer; do cp -a "$FILE" "%{buildroot}/usr/share/push/$FILE"; done
187 %if %{_support_weblog}
188 x86_64/bin/pushlog_tool
194 mkdir -p %{TZ_SYS_GLOBALUSER_DB}
195 sqlite3 %{TZ_SYS_GLOBALUSER_DB}/.push.db "PRAGMA journal_mode = PERSIST; create table a(a); drop table a;" > /dev/null
196 chown service_fw:service_fw %{TZ_SYS_GLOBALUSER_DB}/.push.db
197 chown service_fw:service_fw %{TZ_SYS_GLOBALUSER_DB}/.push.db-journal
198 chmod 600 %{TZ_SYS_GLOBALUSER_DB}/.push.db
199 chmod 600 %{TZ_SYS_GLOBALUSER_DB}/.push.db-journal
200 chsmack -a "System" %{TZ_SYS_GLOBALUSER_DB}/.push.db
201 chsmack -a "System" %{TZ_SYS_GLOBALUSER_DB}/.push.db-journal
206 %postun -n libpush -p /sbin/ldconfig
209 %manifest libpush.manifest
211 %attr(755,root,root) %{_libdir}/libpush.so.*
213 %files -n libpush-devel
215 %{_libdir}/pkgconfig/*.pc
216 %{_libdir}/libpush.so
219 %manifest push-bin.manifest
221 %attr(644,service_fw,service_fw) /usr/share/push/*.cer
224 %{_unitdir}/pushd.service
225 %{_unitdir}/multi-user.target.wants/pushd.service
227 %{_unitdir}/pushd.service.d/pushd.asan.conf
231 %manifest push-tool.manifest
234 %if %{_support_weblog}
235 %{_bindir}/pushlog_tool
241 * Sat Nov 3 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.26
242 - Prevent bug fixed(out-of bounds read, dead code,..)
243 * Mon Oct 22 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.25
244 - bundle null check added & protobuf null check added
245 * Wed Sep 19 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.24
246 - when pkg is uninstalled, db process is added
247 * Fri Sep 7 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.23
248 - emul check logic is changed(using capi-system-info)
249 * Tue Sep 4 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.22
250 - decoding of message with space character which is urlencoded to "+"
251 * Wed Aug 29 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.21
252 - package uninstalled event added
253 * Fri Aug 17 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.20
254 - debug msg added & some internal function name changed
255 * Wed Aug 8 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.19
256 - push noti default action is silent, and old key is deleted
257 * Wed Aug 8 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.18
258 - tapi imei api is changed for new tapi
259 * Tue Aug 7 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.17
260 - emulator check func is added
261 * Wed Jul 25 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.16
262 - OSP Push noti support(alertMessage,..)