2 Summary: Push services and client library
5 Group: Application Framwork/Service
7 Source0: %{name}-%{version}.tar.gz
8 Source1001: push.manifest
12 Push services and client library.
15 Summary: Push service client library
16 Group: Application Framwork/Libraries
17 Provides: libpush.so.0
19 %description -n libpush
20 Push service client library
23 %package -n libpush-devel
24 Summary: Push service client library (DEV)
26 Requires: libpush = %{version}-%{release}
27 Requires: capi-appfw-application-devel
29 %description -n libpush-devel
30 Push service client library (DEV)
34 Summary: Push service daemon
35 Group: Application Framwork/Service
43 Summary: Push service tool
45 Requires: libpush = %{version}-%{release}
46 Requires: %{name}-bin = %{version}-%{release}
63 mkdir -p %{buildroot}%{_bindir}
64 mkdir -p %{buildroot}%{_libdir}/pkgconfig
65 mkdir -p %{buildroot}%{_includedir}
66 mkdir -p %{buildroot}/usr/share/push
67 mkdir -p %{buildroot}%{_sysconfdir}/init.d
68 mkdir -p %{buildroot}%{_sysconfdir}/rc.d/{rc3.d,rc5.d}
69 mkdir -p %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants
74 cp -a arm/lib/libpush.so.* %{buildroot}%{_libdir}
76 cp -a arm/include/push.h %{buildroot}%{_includedir}
77 cp -a arm/lib/pkgconfig/push.pc %{buildroot}%{_libdir}/pkgconfig/push.pc
78 cp -a arm/lib/libpush.so %{buildroot}%{_libdir}
80 cp -a arm/bin/pushd %{buildroot}%{_bindir}
81 cp -a arm/share/push/PushServerTrust.cer %{buildroot}/usr/share/push/PushServerTrust.cer
82 cp -a arm/etc/init.d/pushd %{buildroot}%{_sysconfdir}/init.d/pushd
83 cp -a arm/etc/rc.d/rc3.d/S90pushd %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S90pushd
84 cp -a arm/etc/rc.d/rc5.d/S90pushd %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S90pushd
85 cp -a arm/lib/systemd/user/pushd.service %{buildroot}%{_libdir}/systemd/user/pushd.service
86 cp -a arm/lib/systemd/user/tizen-middleware.target.wants/pushd.service \
87 %{buildroot}%{_libdir}/systemd/user/tizen-middleware.target.wants/pushd.service
89 cp -a arm/bin/push_tool %{buildroot}%{_bindir}
92 cp -a x86/lib/libpush.so.* %{buildroot}%{_libdir}
94 cp -a x86/include/push.h %{buildroot}%{_includedir}
95 cp -a x86/lib/pkgconfig/push.pc %{buildroot}%{_libdir}/pkgconfig/push.pc
96 cp -a x86/lib/libpush.so %{buildroot}%{_libdir}
98 cp -a x86/bin/pushd %{buildroot}%{_bindir}
99 cp -a x86/share/push/PushServerTrust.cer %{buildroot}/usr/share/push/PushServerTrust.cer
100 cp -a x86/etc/init.d/pushd %{buildroot}%{_sysconfdir}/init.d/pushd
101 cp -a x86/etc/rc.d/rc3.d/S90pushd %{buildroot}%{_sysconfdir}/rc.d/rc3.d/S90pushd
102 cp -a x86/etc/rc.d/rc5.d/S90pushd %{buildroot}%{_sysconfdir}/rc.d/rc5.d/S90pushd
103 cp -a x86/lib/systemd/user/pushd.service %{buildroot}/usr/lib/systemd/user/pushd.service
104 cp -a x86/lib/systemd/user/tizen-middleware.target.wants/pushd.service \
105 %{buildroot}/usr/lib/systemd/user/tizen-middleware.target.wants/pushd.service
107 cp -a x86/bin/push_tool %{buildroot}%{_bindir}
110 if [ -f /usr/lib/rpm-plugins/msm.so ]
112 chsmack -a "_" -e "_" %{buildroot}/etc/init.d/pushd
113 chsmack -a "_" -e "_" %{buildroot}/etc/rc.d/rc3.d/S90pushd
114 chsmack -a "_" -e "_" %{buildroot}/etc/rc.d/rc5.d/S90pushd
118 mkdir -p /opt/dbspace
119 sqlite3 /opt/dbspace/.push.db "PRAGMA journal_mode = PERSIST; create table a(a); drop table a;" > /dev/null
120 chown root:5000 /opt/dbspace/.push.db
121 chown root:5000 /opt/dbspace/.push.db-journal
122 chmod 660 /opt/dbspace/.push.db
123 chmod 660 /opt/dbspace/.push.db-journal
125 chsmack -a 'push-service::db' /opt/dbspace/.push.db
126 chsmack -a 'push-service::db' /opt/dbspace/.push.db-journal
130 _DEV_INFO="device.model=ssltest"
131 _IP_PV="gld.push.samsungosp.com"
133 #ping interval {120,240,480,960,1920}
137 vconftool set -t string file/private/push-bin/version ${_VER} ${_GRP} -f
138 vconftool set -t string file/private/push-bin/dev_type ${_DEV_TYPE} ${_GRP} -f
139 vconftool set -t string file/private/push-bin/dev_info ${_DEV_INFO} ${_GRP} -f
140 vconftool set -t string file/private/push-bin/ip_pv ${_IP_PV} ${_GRP} -f
141 vconftool set -t int file/private/push-bin/port_pv ${_PORT_PV} ${_GRP} -f
142 vconftool set -t int file/private/push-bin/ping_int ${_PING_INT} ${_GRP} -f
143 vconftool set -t string file/private/push-bin/devtk "" ${_GRP} -f
144 vconftool set -t string file/private/push-bin/ip_pri "" ${_GRP} -f
145 vconftool set -t int file/private/push-bin/port_pri -1 ${_GRP} -f
146 vconftool set -t string file/private/push-bin/ip_sec "" ${_GRP} -f
147 vconftool set -t int file/private/push-bin/port_sec -1 ${_GRP} -f
149 #vconftool unset file/private/push-bin/devtk
154 %postun -n libpush -p /sbin/ldconfig
158 %manifest %{name}.manifest
159 %attr(644,-,-) %{_libdir}/libpush.so.*
161 %files -n libpush-devel
162 %manifest %{name}.manifest
163 %attr(644,-,-) %{_includedir}/*.h
164 %{_libdir}/pkgconfig/*.pc
165 %{_libdir}/libpush.so
168 %manifest %{name}.manifest
170 /usr/share/push/*.cer
172 /etc/rc.d/rc3.d/S90pushd
173 /etc/rc.d/rc5.d/S90pushd
174 /usr/lib/systemd/user/pushd.service
175 /usr/lib/systemd/user/tizen-middleware.target.wants/pushd.service
178 %manifest %{name}.manifest
182 * Mon Oct 22 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.25
183 - bundle null check added & protobuf null check added
184 * Wed Sep 19 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.24
185 - when pkg is uninstlled, db process is added
186 * Fri Sep 7 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.23
187 - emul check logic is changed(using capi-system-info)
188 * Tue Sep 4 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.22
189 - decoding of message with space character which is urlencoded to "+"
190 * Wed Aug 29 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.21
191 - package uninstalled event added
192 * Fri Aug 17 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.20
193 - debug msg added & some internal function name changed
194 * Wed Aug 8 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.19
195 - push noti default action is silent, and old key is deleted
196 * Wed Aug 8 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.18
197 - tapi imei api is changed for new tapi
198 * Tue Aug 7 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.17
199 - emulator check func is added
200 * Wed Jul 25 2012 Jooseok Park <jooseok.park@samsung.com> - 0.2.16
201 - OSP Push noti support(alertMessage,..)