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_user}/default.target.wants
66 install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir_user}/pushd.service
67 ln -s ../pushd.service %{buildroot}%{_unitdir_user}/default.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}
92 cp -a arm/lib/libpush.so.* %{buildroot}%{_libdir}
94 cp -a arm/lib/libpush.so %{buildroot}%{_libdir}
96 cp -a arm/bin/pushd %{buildroot}%{_bindir}
97 cp -a arm/bin/push_tool %{buildroot}%{_bindir}
98 cp -a arm/share/push/*.cer %{buildroot}/usr/share/push/
99 %if %{_support_weblog}
106 cp -a aarch64/lib64/libpush.so.* %{buildroot}%{_libdir}
108 cp -a aarch64/lib64/libpush.so %{buildroot}%{_libdir}
110 cp -a aarch64/bin/pushd %{buildroot}%{_bindir}
111 cp -a aarch64/bin/push_tool %{buildroot}%{_bindir}
112 cp -a aarch64/share/push/*.cer %{buildroot}/usr/share/push/
113 %if %{_support_weblog}
114 aarch64/bin/pushlog_tool
120 cp -a x86/lib/libpush.so.* %{buildroot}%{_libdir}
122 cp -a x86/lib/libpush.so %{buildroot}%{_libdir}
124 cp -a x86/bin/pushd %{buildroot}%{_bindir}
125 cp -a x86/bin/push_tool %{buildroot}%{_bindir}
126 cp -a x86/share/push/*.cer %{buildroot}/usr/share/push/
127 %if %{_support_weblog}
134 cp -a x86_64/lib64/libpush.so.* %{buildroot}%{_libdir}
136 cp -a x86_64/lib64/libpush.so %{buildroot}%{_libdir}
138 cp -a x86_64/bin/pushd %{buildroot}%{_bindir}
139 cp -a x86_64/bin/push_tool %{buildroot}%{_bindir}
140 cp -a x86_64/share/push/*.cer %{buildroot}/usr/share/push/
141 %if %{_support_weblog}
142 x86_64/bin/pushlog_tool
147 #mkdir -p /usr/dbspace
148 #sqlite3 /usr/dbspace/.push.db "PRAGMA journal_mode = PERSIST; create table a(a); drop table a;" > /dev/null
149 #chown system:system /usr/dbspace/.push.db
150 #chown system:system /usr/dbspace/.push.db-journal
151 #chmod 660 /usr/dbspace/.push.db
152 #chmod 660 /usr/dbspace/.push.db-journal
157 %postun -n libpush -p /sbin/ldconfig
160 %manifest libpush.manifest
161 %attr(644,system,system)%{_libdir}/libpush.so.*
163 %files -n libpush-devel
165 %{_libdir}/pkgconfig/*.pc
166 %{_libdir}/libpush.so
169 %manifest push-bin.manifest
171 %attr(644,system,system)/usr/share/push/*.cer
172 %attr(644,system,system)/usr/share/license/%{name}
174 # This is a certificate file to access to logging server by HTTPS.
175 %if %{_support_weblog}
176 %attr(644,system,system)/usr/share/push/push_sslkey.pem
177 %attr(644,system,system)/usr/share/push/prd-dl-key.pem
180 %{_unitdir_user}/pushd.service
181 %{_unitdir_user}/default.target.wants/pushd.service
184 %manifest push-tool.manifest
187 %if %{_support_weblog}
188 %{_bindir}/pushlog_tool
192 * Sat Nov 3 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.26
193 - Prevent bug fixed(out-of bounds read, dead code,..)
194 * Mon Oct 22 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.25
195 - bundle null check added & protobuf null check added
196 * Wed Sep 19 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.24
197 - when pkg is uninstlled, db process is added
198 * Fri Sep 7 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.23
199 - emul check logic is changed(using capi-system-info)
200 * Tue Sep 4 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.22
201 - decoding of message with space character which is urlencoded to "+"
202 * Wed Aug 29 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.21
203 - package uninstalled event added
204 * Fri Aug 17 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.20
205 - debug msg added & some internal function name changed
206 * Wed Aug 8 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.19
207 - push noti default action is silent, and old key is deleted
208 * Wed Aug 8 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.18
209 - tapi imei api is changed for new tapi
210 * Tue Aug 7 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.17
211 - emulator check func is added
212 * Wed Jul 25 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.16
213 - OSP Push noti support(alertMessage,..)