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)
41 Requires(preun): /usr/bin/systemctl
42 Requires(post): /usr/bin/systemctl
43 Requires(post): /usr/bin/vconftool
44 Requires(postun): /usr/bin/systemctl
49 %package system-server
50 Summary: System-server daemon
52 Requires: %{name} = %{version}-%{release}
54 %description system-server
58 Summary: Sysman library
60 Group: System/Libraries
61 Requires: %{name} = %{version}-%{release}
63 %description -n sysman
66 %package -n sysman-devel
67 Summary: Sysman devel library
69 Group: System/Development
70 Requires: %{name} = %{version}-%{release}
72 %description -n sysman-devel
75 %package -n sysman-internal-devel
76 Summary: Sysman internal devel library
78 Group: System/Development
79 Requires: %{name} = %{version}-%{release}
81 %description -n sysman-internal-devel
82 sysman internal devel library.
85 Summary: Power manager client
86 Group: System/Libraries
87 Requires: %{name} = %{version}-%{release}
89 %description -n libslp-pm
90 power-manager library.
92 %package -n libslp-pm-devel
93 Summary: Power manager client (devel)
94 Group: System/Development
95 Requires: libslp-pm = %{version}-%{release}
97 %description -n libslp-pm-devel
98 power-manager devel library.
100 %package -n libhaptic
101 Summary: Haptic library
102 Group: Development/Libraries
103 Requires: %{name} = %{version}-%{release}
105 %description -n libhaptic
106 Haptic library for device control
108 %package -n libhaptic-devel
109 Summary: Haptic library for (devel)
110 Group: Development/Libraries
111 Requires: libhaptic = %{version}-%{release}
113 %description -n libhaptic-devel
114 Haptic library for device control (devel)
116 %package -n libhaptic-plugin-devel
117 Summary: Haptic plugin library for (devel)
118 Group: Development/Libraries
120 %description -n libhaptic-plugin-devel
121 Haptic plugin library for device control (devel)
123 %package -n libdevman
124 Summary: Device manager library
125 Group: Development/Libraries
126 Requires: %{name} = %{version}-%{release}
128 %description -n libdevman
129 Device manager library for device control
131 %package -n libdevman-devel
132 Summary: Device manager library for (devel)
133 Group: Development/Libraries
134 Requires: libdevman = %{version}-%{release}
136 %description -n libdevman-devel
137 Device manager library for device control (devel)
139 %package -n libdevman-haptic-devel
140 Summary: Haptic Device manager library for (devel)
141 Group: Development/Libraries
142 Requires: libdevman-devel = %{version}-%{release}
144 %description -n libdevman-haptic-devel
145 Haptic Device manager library for device control (devel)
147 %package -n libdeviced
148 Summary: Deviced library
149 Group: System/Libraries
151 %description -n libdeviced
152 Deviced library for device control
154 %package -n libdeviced-devel
155 Summary: Deviced library for (devel)
156 Group: System/Development
157 Requires: libdeviced = %{version}-%{release}
159 %description -n libdeviced-devel
160 Deviced library for device control (devel)
166 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
187 %install_service multi-user.target.wants system-server.service
188 %install_service sockets.target.wants system-server.service
190 %install_service graphical.target.wants regpmon.service
191 install -m 0644 %{SOURCE8} %{buildroot}%{_unitdir}/regpmon.service
193 %install_service graphical.target.wants zbooting-done.service
194 install -m 0644 %{SOURCE9} %{buildroot}%{_unitdir}/zbooting-done.service
197 #memory type vconf key init
198 vconftool set -t int memory/sysman/usbhost_status -1 -i
199 vconftool set -t int memory/sysman/mmc 0 -i
200 vconftool set -t int memory/sysman/earjack_key 0 -i
201 vconftool set -t int memory/sysman/added_usb_storage 0 -i
202 vconftool set -t int memory/sysman/removed_usb_storage 0 -i
203 vconftool set -t int memory/sysman/charger_status -1 -i
204 vconftool set -t int memory/sysman/charge_now -1 -i
205 vconftool set -t int memory/sysman/battery_status_low -1 -i
206 vconftool set -t int memory/sysman/battery_capacity -1 -i
207 vconftool set -t int memory/sysman/usb_status -1 -i
208 vconftool set -t int memory/sysman/earjack -1 -i
209 vconftool set -t int memory/sysman/low_memory 1 -i
210 vconftool set -t int memory/sysman/sliding_keyboard -1 -i
211 vconftool set -t int memory/sysman/mmc_mount -1 -i
212 vconftool set -t int memory/sysman/mmc_unmount -1 -i
213 vconftool set -t int memory/sysman/mmc_format -1 -i
214 vconftool set -t int memory/sysman/mmc_format_progress 0 -i
215 vconftool set -t int memory/sysman/mmc_err_status 0 -i
216 vconftool set -t int memory/sysman/power_off 0 -u 5000 -i -f
217 vconftool set -t int memory/sysman/battery_level_status -1 -i
218 vconftool set -t string memory/private/sysman/added_storage_uevent "" -i
219 vconftool set -t string memory/private/sysman/removed_storage_uevent "" -u 5000 -i
221 vconftool set -t int memory/sysman/hdmi 0 -i
223 vconftool set -t int memory/sysman/stime_changed 0 -i
225 #db type vconf key init
226 vconftool set -t int db/sysman/mmc_dev_changed 0 -i
228 vconftool set -t int memory/pm/state 0 -i -g 5000
229 vconftool set -t int memory/pm/battery_timetofull -1 -i
230 vconftool set -t int memory/pm/battery_timetoempty -1 -i
231 vconftool set -t int memory/pm/sip_status 0 -i -g 5000
232 vconftool set -t int memory/pm/custom_brightness_status 0 -i -g 5000
233 vconftool set -t bool memory/pm/brt_changed_lpm 0 -i
234 vconftool set -t int memory/pm/current_brt 60 -i -g 5000
236 heynotitool set system_wakeup
237 heynotitool set pm_event
239 heynotitool set power_off_start
241 heynotitool set mmcblk_add
242 heynotitool set mmcblk_remove
243 heynotitool set device_charge_chgdet
244 heynotitool set device_usb_host_add
245 heynotitool set device_usb_host_remove
246 heynotitool set device_pci_keyboard_add
247 heynotitool set device_pci_keyboard_remove
249 heynotitool set device_usb_chgdet
250 heynotitool set device_ta_chgdet
251 heynotitool set device_earjack_chgdet
252 heynotitool set device_earkey_chgdet
253 heynotitool set device_tvout_chgdet
254 heynotitool set device_hdmi_chgdet
255 heynotitool set device_keyboard_chgdet
258 systemctl daemon-reload
259 if [ "$1" = "1" ]; then
260 systemctl restart system-server.service
261 systemctl restart regpmon.service
262 systemctl restart zbooting-done.service
267 if [ "$1" = "0" ]; then
268 systemctl stop system-server.service
269 systemctl stop regpmon.service
270 systemctl stop zbooting-done.service
274 systemctl daemon-reload
277 %files -n system-server
278 %manifest %{name}.manifest
279 %license LICENSE.APLv2
280 %config %{_sysconfdir}/dbus-1/system.d/system-server.conf
281 %{_bindir}/system_server
282 /opt/etc/smack/accesses.d/system-server.rule
283 %{_libdir}/system-server/shutdown.sh
285 %exclude %{_bindir}/restart
289 %{_bindir}/movi_format.sh
295 %{_bindir}/sys_pci_noti
296 %{_bindir}/mmc-smack-label
297 %{_bindir}/device-daemon
298 %{_bindir}/fsck_msdosfs
299 %{_unitdir}/multi-user.target.wants/system-server.service
300 %{_unitdir}/graphical.target.wants/regpmon.service
301 %{_unitdir}/sockets.target.wants/system-server.service
302 %{_unitdir}/system-server.service
303 %{_unitdir}/system-server.socket
304 %{_unitdir}/regpmon.service
305 %{_unitdir}/graphical.target.wants/zbooting-done.service
306 %{_unitdir}/zbooting-done.service
307 %{_datadir}/system-server/sys_pci_noti/res/locale/*/LC_MESSAGES/*.mo
308 %config %{_sysconfdir}/dbus-1/system.d/system-server.conf
309 %{_datadir}/license/fsck_msdosfs
312 %manifest sysman.manifest
313 %defattr(-,root,root,-)
314 %{_libdir}/libsysman.so.*
324 %files -n sysman-devel
325 %defattr(-,root,root,-)
326 %{_includedir}/sysman/sysman.h
327 %{_includedir}/sysman/sysman_managed.h
328 %{_includedir}/sysman/sysman_PG.h
329 %{_libdir}/pkgconfig/sysman.pc
330 %{_libdir}/libsysman.so
332 %files -n sysman-internal-devel
333 %defattr(-,root,root,-)
334 %{_includedir}/sysman/sysman-internal.h
337 %defattr(-,root,root,-)
338 %manifest libslp-pm.manifest
339 %{_libdir}/libpmapi.so.*
347 %files -n libslp-pm-devel
348 %defattr(-,root,root,-)
349 %{_includedir}/pmapi/pmapi.h
350 %{_includedir}/pmapi/pmapi_managed.h
351 %{_includedir}/pmapi/pm_PG.h
352 %{_libdir}/pkgconfig/pmapi.pc
353 %{_libdir}/libpmapi.so
355 %post -n libslp-pm-devel
358 %postun -n libslp-pm-devel
362 %defattr(-,root,root,-)
363 %{_libdir}/libhaptic.so.*
364 %manifest haptic.manifest
373 %files -n libhaptic-devel
374 %defattr(-,root,root,-)
375 %{_includedir}/haptic/haptic.h
376 %{_libdir}/libhaptic.so
377 %{_libdir}/pkgconfig/haptic.pc
379 %post -n libhaptic-devel
382 %postun -n libhaptic-devel
385 %files -n libhaptic-plugin-devel
386 %defattr(-,root,root,-)
387 %{_includedir}/haptic/haptic_module.h
388 %{_includedir}/haptic/haptic_plugin_intf.h
389 %{_includedir}/haptic/haptic_PG.h
390 %{_libdir}/pkgconfig/haptic-plugin.pc
393 %{_bindir}/display_wd
394 %{_libdir}/libdevman.so.*
395 %manifest devman.manifest
404 %files -n libdevman-devel
405 %{_includedir}/devman/devman.h
406 %{_includedir}/devman/devman_image.h
407 %{_includedir}/devman/devman_managed.h
408 %{_includedir}/devman/devman_haptic.h
409 %{_includedir}/devman/devman_PG.h
410 %{_libdir}/pkgconfig/devman.pc
411 %{_libdir}/libdevman.so
413 %post -n libdevman-devel
416 %postun -n libdevman-devel
419 %files -n libdevman-haptic-devel
420 %{_includedir}/devman/devman_haptic_ext.h
421 %{_includedir}/devman/devman_haptic_ext_core.h
422 %{_libdir}/pkgconfig/devman_haptic.pc
425 %defattr(-,root,root,-)
426 %{_libdir}/libdeviced.so.*
427 %manifest deviced.manifest
432 %postun -n libdeviced
435 %files -n libdeviced-devel
436 %defattr(-,root,root,-)
437 %{_includedir}/deviced/dd-battery.h
438 %{_includedir}/deviced/dd-control.h
439 %{_includedir}/deviced/dd-deviced.h
440 %{_includedir}/deviced/dd-deviced-managed.h
441 %{_includedir}/deviced/dd-display.h
442 %{_includedir}/deviced/dd-haptic.h
443 %{_includedir}/deviced/dd-led.h
444 %{_includedir}/deviced/haptic-module.h
445 %{_includedir}/deviced/haptic-plugin-intf.h
446 %{_libdir}/libdeviced.so
447 %{_libdir}/pkgconfig/deviced.pc
449 %post -n libdeviced-devel
452 %postun -n libdeviced-devel