3 #sbs-git:slp/pkgs/s/system-server system-server 0.1.51 56e16bca39f96d6c8aed9ed3df2fea9b393801be
10 Source0: system-server-%{version}.tar.gz
11 Source1: system-server.manifest
12 Source2: deviced.manifest
13 Source3: sysman.manifest
14 Source4: libslp-pm.manifest
15 Source5: haptic.manifest
16 Source6: devman.manifest
17 Source8: regpmon.service
18 Source9: zbooting-done.service
20 BuildRequires: libattr-devel
21 BuildRequires: pkgconfig(ecore)
22 BuildRequires: pkgconfig(heynoti)
23 BuildRequires: pkgconfig(vconf)
24 BuildRequires: pkgconfig(tapi)
25 BuildRequires: pkgconfig(edbus)
26 BuildRequires: pkgconfig(dlog)
27 BuildRequires: pkgconfig(syspopup-caller)
29 BuildRequires: pkgconfig(x11)
31 BuildRequires: pkgconfig(notification)
32 BuildRequires: pkgconfig(usbutils)
33 BuildRequires: pkgconfig(udev)
34 BuildRequires: pkgconfig(device-node)
35 BuildRequires: pkgconfig(libsmack)
36 BuildRequires: gettext
37 BuildRequires: pkgconfig(sensor)
38 BuildRequires: pkgconfig(libsystemd-daemon)
39 BuildRequires: pkgconfig(capi-base-common)
40 BuildRequires: pkgconfig(libtzplatform-config)
43 Requires(post): /usr/bin/vconftool
49 Summary: Sysman library
50 Group: System/Libraries
51 Requires: %{name} = %{version}-%{release}
53 %description -n sysman
54 System manager interface library.
56 %package -n sysman-devel
57 Summary: Sysman devel library
58 Group: System/Development
59 Requires: sysman = %{version}-%{release}
61 %description -n sysman-devel
64 %package -n sysman-internal-devel
65 Summary: Sysman internal devel library
66 Group: System/Development
67 Requires: sysman = %{version}-%{release}
69 %description -n sysman-internal-devel
70 sysman internal devel library.
73 Summary: Power manager client
74 Group: System/Libraries
75 Requires: %{name} = %{version}-%{release}
77 %description -n libslp-pm
78 power-manager library.
80 %package -n libslp-pm-devel
81 Summary: Power manager client (devel)
82 Group: System/Development
83 Requires: libslp-pm = %{version}-%{release}
85 %description -n libslp-pm-devel
86 power-manager devel library.
89 Summary: Haptic library
90 Group: Development/Libraries
91 Requires: %{name} = %{version}-%{release}
93 %description -n libhaptic
94 Haptic library for device control
96 %package -n libhaptic-devel
97 Summary: Haptic library for (devel)
98 Group: Development/Libraries
99 Requires: libhaptic = %{version}-%{release}
101 %description -n libhaptic-devel
102 Haptic library for device control (devel)
104 %package -n libhaptic-plugin-devel
105 Summary: Haptic plugin library for (devel)
106 Group: Development/Libraries
107 Requires: libhaptic = %{version}-%{release}
109 %description -n libhaptic-plugin-devel
110 Haptic plugin library for device control (devel)
112 %package -n libdevman
113 Summary: Device manager library
114 Group: Development/Libraries
115 Requires: %{name} = %{version}-%{release}
117 %description -n libdevman
118 Device manager library for device control
120 %package -n libdevman-devel
121 Summary: Device manager library for (devel)
122 Group: Development/Libraries
123 Requires: libdevman = %{version}-%{release}
125 %description -n libdevman-devel
126 Device manager library for device control (devel)
128 %package -n libdevman-haptic-devel
129 Summary: Haptic Device manager library for (devel)
130 Group: Development/Libraries
131 Requires: libdevman-devel = %{version}-%{release}
133 %description -n libdevman-haptic-devel
134 Haptic Device manager library for device control (devel)
136 %package -n libdeviced
137 Summary: Deviced library
138 Group: System/Libraries
139 Requires: %{name} = %{version}-%{release}
141 %description -n libdeviced
142 Deviced library for device control
144 %package -n libdeviced-devel
145 Summary: Deviced library for (devel)
146 Group: System/Development
147 Requires: libdeviced = %{version}-%{release}
149 %description -n libdeviced-devel
150 Deviced library for device control (devel)
156 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
171 %cmake . -DTZ_SYS_ETC=%TZ_SYS_ETC
176 %install_service multi-user.target.wants system-server.service
177 %install_service sockets.target.wants system-server.socket
179 %install_service graphical.target.wants regpmon.service
180 install -m 0644 %{SOURCE8} %{buildroot}%{_unitdir}/regpmon.service
182 %install_service graphical.target.wants zbooting-done.service
183 install -m 0644 %{SOURCE9} %{buildroot}%{_unitdir}/zbooting-done.service
186 rm -f %{buildroot}%{_bindir}/restart
190 #memory type vconf key init
191 users_gid=$(getent group $TZ_SYS_USER_GROUP | cut -f3 -d':')
193 vconftool set -t int memory/sysman/usbhost_status -1 -i
194 vconftool set -t int memory/sysman/mmc 0 -i
195 vconftool set -t int memory/sysman/earjack_key 0 -i
196 vconftool set -t int memory/sysman/added_usb_storage 0 -i
197 vconftool set -t int memory/sysman/removed_usb_storage 0 -i
198 vconftool set -t int memory/sysman/charger_status -1 -i
199 vconftool set -t int memory/sysman/charge_now -1 -i
200 vconftool set -t int memory/sysman/battery_status_low -1 -i
201 vconftool set -t int memory/sysman/battery_capacity -1 -i
202 vconftool set -t int memory/sysman/usb_status -1 -i
203 vconftool set -t int memory/sysman/earjack -1 -i
204 vconftool set -t int memory/sysman/low_memory 1 -i
205 vconftool set -t int memory/sysman/sliding_keyboard -1 -i
206 vconftool set -t int memory/sysman/mmc_mount -1 -i
207 vconftool set -t int memory/sysman/mmc_unmount -1 -i
208 vconftool set -t int memory/sysman/mmc_format -1 -i
209 vconftool set -t int memory/sysman/mmc_format_progress 0 -i
210 vconftool set -t int memory/sysman/mmc_err_status 0 -i
211 vconftool set -t int memory/sysman/power_off 0 -g $users_gid -i -f
212 vconftool set -t int memory/sysman/battery_level_status -1 -i
213 vconftool set -t string memory/private/sysman/added_storage_uevent "" -i
214 vconftool set -t string memory/private/sysman/removed_storage_uevent "" -g $users_gid -i
216 vconftool set -t int memory/sysman/hdmi 0 -i
218 vconftool set -t int memory/sysman/stime_changed 0 -i
220 #db type vconf key init
221 vconftool set -t int db/sysman/mmc_dev_changed 0 -i
223 vconftool set -t int memory/pm/state 0 -i -g $users_gid
224 vconftool set -t int memory/pm/battery_timetofull -1 -i
225 vconftool set -t int memory/pm/battery_timetoempty -1 -i
226 vconftool set -t int memory/pm/sip_status 0 -i -g $users_gid
227 vconftool set -t int memory/pm/custom_brightness_status 0 -i -g $users_gid
228 vconftool set -t bool memory/pm/brt_changed_lpm 0 -i
229 vconftool set -t int memory/pm/current_brt 60 -i -g $users_gid
231 heynotitool set system_wakeup
232 heynotitool set pm_event
234 heynotitool set power_off_start
236 heynotitool set mmcblk_add
237 heynotitool set mmcblk_remove
238 heynotitool set device_charge_chgdet
239 heynotitool set device_usb_host_add
240 heynotitool set device_usb_host_remove
241 heynotitool set device_pci_keyboard_add
242 heynotitool set device_pci_keyboard_remove
244 heynotitool set device_usb_chgdet
245 heynotitool set device_ta_chgdet
246 heynotitool set device_earjack_chgdet
247 heynotitool set device_earkey_chgdet
248 heynotitool set device_tvout_chgdet
249 heynotitool set device_hdmi_chgdet
250 heynotitool set device_keyboard_chgdet
253 systemctl daemon-reload
254 if [ "$1" = "1" ]; then
255 systemctl restart system-server.service
256 systemctl restart regpmon.service
257 systemctl restart zbooting-done.service
262 if [ "$1" = "0" ]; then
263 systemctl stop system-server.service
264 systemctl stop regpmon.service
265 systemctl stop zbooting-done.service
269 systemctl daemon-reload
272 %post -n sysman -p /sbin/ldconfig
274 %postun -n sysman -p /sbin/ldconfig
276 %post -n libslp-pm -p /sbin/ldconfig
278 %postun -n libslp-pm -p /sbin/ldconfig
280 %post -n libhaptic -p /sbin/ldconfig
282 %postun -n libhaptic -p /sbin/ldconfig
284 %post -n libdevman -p /sbin/ldconfig
286 %postun -n libdevman -p /sbin/ldconfig
288 %post -n libdeviced -p /sbin/ldconfig
290 %postun -n libdeviced -p /sbin/ldconfig
293 %manifest %{name}.manifest
294 %license LICENSE.APLv2
295 %config %{_sysconfdir}/dbus-1/system.d/deviced.conf
296 %{_bindir}/system_server
297 %{_libdir}/system-server/shutdown.sh
298 %if %{undefined simulator}
301 %{_bindir}/movi_format.sh
306 %{_bindir}/sys_pci_noti
307 %{_bindir}/mmc-smack-label
308 %{_bindir}/device-daemon
309 %{_bindir}/fsck_msdosfs
310 %{_unitdir}/multi-user.target.wants/system-server.service
311 %{_unitdir}/graphical.target.wants/regpmon.service
312 %{_unitdir}/sockets.target.wants/system-server.socket
313 %{_unitdir}/system-server.service
314 %{_unitdir}/system-server.socket
315 %{_unitdir}/regpmon.service
316 %{_unitdir}/graphical.target.wants/zbooting-done.service
317 %{_unitdir}/zbooting-done.service
318 %{_datadir}/system-server/sys_pci_noti/res/locale/*/LC_MESSAGES/*.mo
319 %{_datadir}/license/fsck_msdosfs
322 %manifest sysman.manifest
323 %defattr(-,root,root,-)
324 %{_libdir}/libsysman.so.*
326 %files -n sysman-devel
327 %defattr(-,root,root,-)
328 %{_includedir}/sysman/sysman.h
329 %{_includedir}/sysman/sysman_managed.h
330 %{_includedir}/sysman/sysman_PG.h
331 %{_libdir}/pkgconfig/sysman.pc
332 %{_libdir}/libsysman.so
334 %files -n sysman-internal-devel
335 %defattr(-,root,root,-)
336 %{_includedir}/sysman/sysman-internal.h
339 %defattr(-,root,root,-)
340 %manifest libslp-pm.manifest
341 %{_libdir}/libpmapi.so.*
343 %files -n libslp-pm-devel
344 %defattr(-,root,root,-)
345 %{_includedir}/pmapi/pmapi.h
346 %{_includedir}/pmapi/pmapi_managed.h
347 %{_includedir}/pmapi/pm_PG.h
348 %{_libdir}/pkgconfig/pmapi.pc
349 %{_libdir}/libpmapi.so
352 %defattr(-,root,root,-)
353 %{_libdir}/libhaptic.so.*
354 %manifest haptic.manifest
356 %files -n libhaptic-devel
357 %defattr(-,root,root,-)
358 %{_includedir}/haptic/haptic.h
359 %{_libdir}/libhaptic.so
360 %{_libdir}/pkgconfig/haptic.pc
362 %files -n libhaptic-plugin-devel
363 %defattr(-,root,root,-)
364 %{_includedir}/haptic/haptic_module.h
365 %{_includedir}/haptic/haptic_plugin_intf.h
366 %{_includedir}/haptic/haptic_PG.h
367 %{_libdir}/pkgconfig/haptic-plugin.pc
370 %{_bindir}/display_wd
371 %{_libdir}/libdevman.so.*
372 %manifest devman.manifest
374 %files -n libdevman-devel
375 %{_includedir}/devman/devman.h
376 %{_includedir}/devman/devman_image.h
377 %{_includedir}/devman/devman_managed.h
378 %{_includedir}/devman/devman_haptic.h
379 %{_includedir}/devman/devman_PG.h
380 %{_libdir}/pkgconfig/devman.pc
381 %{_libdir}/libdevman.so
383 %files -n libdevman-haptic-devel
384 %{_includedir}/devman/devman_haptic_ext.h
385 %{_includedir}/devman/devman_haptic_ext_core.h
386 %{_libdir}/pkgconfig/devman_haptic.pc
389 %defattr(-,root,root,-)
390 %{_libdir}/libdeviced.so.*
391 %manifest deviced.manifest
393 %files -n libdeviced-devel
394 %defattr(-,root,root,-)
395 %{_includedir}/deviced/dd-battery.h
396 %{_includedir}/deviced/dd-control.h
397 %{_includedir}/deviced/dd-deviced.h
398 %{_includedir}/deviced/dd-deviced-managed.h
399 %{_includedir}/deviced/dd-display.h
400 %{_includedir}/deviced/dd-haptic.h
401 %{_includedir}/deviced/dd-led.h
402 %{_includedir}/deviced/haptic-module.h
403 %{_includedir}/deviced/haptic-plugin-intf.h
404 %{_libdir}/libdeviced.so
405 %{_libdir}/pkgconfig/deviced.pc