1 #sbs-git:slp/pkgs/s/system-server system-server 0.1.51 56e16bca39f96d6c8aed9ed3df2fea9b393801be
8 Source0: system-server-%{version}.tar.gz
9 Source1: system-server.manifest
10 Source2: deviced.manifest
11 Source3: sysman.manifest
12 Source4: libslp-pm.manifest
13 Source5: haptic.manifest
14 Source6: devman.manifest
16 BuildRequires: libattr-devel
17 BuildRequires: pkgconfig(ecore)
18 BuildRequires: pkgconfig(heynoti)
19 BuildRequires: pkgconfig(vconf)
20 BuildRequires: pkgconfig(tapi)
21 BuildRequires: pkgconfig(edbus)
22 BuildRequires: pkgconfig(dlog)
23 BuildRequires: pkgconfig(syspopup-caller)
24 BuildRequires: pkgconfig(x11)
25 BuildRequires: pkgconfig(notification)
26 BuildRequires: pkgconfig(usbutils)
27 BuildRequires: pkgconfig(udev)
28 BuildRequires: pkgconfig(device-node)
29 BuildRequires: pkgconfig(libsmack)
30 BuildRequires: gettext
31 BuildRequires: pkgconfig(sensor)
32 BuildRequires: pkgconfig(libsystemd-daemon)
33 BuildRequires: pkgconfig(capi-base-common)
35 Requires(preun): /usr/bin/systemctl
36 Requires(post): /usr/bin/systemctl
37 Requires(post): /usr/bin/vconftool
38 Requires(postun): /usr/bin/systemctl
43 %package system-server
44 Summary: System-server daemon
46 Requires: %{name} = %{version}-%{release}
48 %description system-server
52 Summary: Sysman library
54 Group: System/Libraries
55 Requires: %{name} = %{version}-%{release}
57 %description -n sysman
60 %package -n sysman-devel
61 Summary: Sysman devel library
63 Group: System/Development
64 Requires: %{name} = %{version}-%{release}
66 %description -n sysman-devel
69 %package -n sysman-internal-devel
70 Summary: Sysman internal devel library
72 Group: System/Development
73 Requires: %{name} = %{version}-%{release}
75 %description -n sysman-internal-devel
76 sysman internal devel library.
79 Summary: power manager client
80 Group: System/Libraries
81 Requires: %{name} = %{version}-%{release}
83 %description -n libslp-pm
84 power-manager library.
86 %package -n libslp-pm-devel
87 Summary: power manager client (devel)
88 Group: System/Development
89 Requires: %{name} = %{version}-%{release}
92 %description -n libslp-pm-devel
93 power-manager devel library.
96 Summary: Haptic library
97 Group: Development/Libraries
99 %description -n libhaptic
100 Haptic library for device control
102 %package -n libhaptic-devel
103 Summary: Haptic library for (devel)
104 Group: Development/Libraries
105 Requires: libhaptic = %{version}-%{release}
107 %description -n libhaptic-devel
108 Haptic library for device control (devel)
110 %package -n libhaptic-plugin-devel
111 Summary: Haptic plugin library for (devel)
112 Group: Development/Libraries
114 %description -n libhaptic-plugin-devel
115 Haptic plugin library for device control (devel)
117 %package -n libdevman
118 Summary: Device manager library
119 Group: Development/Libraries
121 %description -n libdevman
122 Device manager library for device control
124 %package -n libdevman-devel
125 Summary: Device manager library for (devel)
126 Group: Development/Libraries
127 Requires: libdevman = %{version}-%{release}
129 %description -n libdevman-devel
130 Device manager library for device control (devel)
132 %package -n libdevman-haptic-devel
133 Summary: Haptic Device manager library for (devel)
134 Group: Development/Libraries
135 Requires: libdevman-devel = %{version}-%{release}
137 %description -n libdevman-haptic-devel
138 Haptic Device manager library for device control (devel)
140 %package -n libdeviced
141 Summary: Deviced library
142 Group: System/Libraries
144 %description -n libdeviced
145 Deviced library for device control
147 %package -n libdeviced-devel
148 Summary: Deviced library for (devel)
149 Group: System/Development
150 Requires: libdeviced = %{version}-%{release}
152 %description -n libdeviced-devel
153 Deviced library for device control (devel)
157 %cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
172 mkdir -p %{buildroot}%{_unitdir}/multi-user.target.wants
173 mkdir -p %{buildroot}%{_unitdir}/sockets.target.wants
174 ln -s ../system-server.service %{buildroot}%{_unitdir}/multi-user.target.wants/system-server.service
175 ln -s ../system-server.service %{buildroot}%{_unitdir}/sockets.target.wants/system-server.socket
178 #memory type vconf key init
179 vconftool set -t int memory/sysman/usbhost_status -1 -i
180 vconftool set -t int memory/sysman/mmc 0 -i
181 vconftool set -t int memory/sysman/earjack_key 0 -i
182 vconftool set -t int memory/sysman/added_usb_storage 0 -i
183 vconftool set -t int memory/sysman/removed_usb_storage 0 -i
184 vconftool set -t int memory/sysman/charger_status -1 -i
185 vconftool set -t int memory/sysman/charge_now -1 -i
186 vconftool set -t int memory/sysman/battery_status_low -1 -i
187 vconftool set -t int memory/sysman/battery_capacity -1 -i
188 vconftool set -t int memory/sysman/usb_status -1 -i
189 vconftool set -t int memory/sysman/earjack -1 -i
190 vconftool set -t int memory/sysman/low_memory 1 -i
191 vconftool set -t int memory/sysman/sliding_keyboard -1 -i
192 vconftool set -t int memory/sysman/mmc_mount -1 -i
193 vconftool set -t int memory/sysman/mmc_unmount -1 -i
194 vconftool set -t int memory/sysman/mmc_format -1 -i
195 vconftool set -t int memory/sysman/mmc_format_progress 0 -i
196 vconftool set -t int memory/sysman/mmc_err_status 0 -i
197 vconftool set -t int memory/sysman/power_off 0 -u 5000 -i -f
198 vconftool set -t int memory/sysman/battery_level_status -1 -i
199 vconftool set -t string memory/private/sysman/added_storage_uevent "" -i
200 vconftool set -t string memory/private/sysman/removed_storage_uevent "" -u 5000 -i
202 vconftool set -t int memory/sysman/hdmi 0 -i
204 vconftool set -t int memory/sysman/stime_changed 0 -i
206 #db type vconf key init
207 vconftool set -t int db/sysman/mmc_dev_changed 0 -i
209 vconftool set -t int memory/pm/state 0 -i -g 5000
210 vconftool set -t int memory/pm/battery_timetofull -1 -i
211 vconftool set -t int memory/pm/battery_timetoempty -1 -i
212 vconftool set -t int memory/pm/sip_status 0 -i -g 5000
213 vconftool set -t int memory/pm/custom_brightness_status 0 -i -g 5000
214 vconftool set -t bool memory/pm/brt_changed_lpm 0 -i
215 vconftool set -t int memory/pm/current_brt 60 -i -g 5000
217 heynotitool set system_wakeup
218 heynotitool set pm_event
220 heynotitool set power_off_start
222 heynotitool set mmcblk_add
223 heynotitool set mmcblk_remove
224 heynotitool set device_charge_chgdet
225 heynotitool set device_usb_host_add
226 heynotitool set device_usb_host_remove
227 heynotitool set device_pci_keyboard_add
228 heynotitool set device_pci_keyboard_remove
230 heynotitool set device_usb_chgdet
231 heynotitool set device_ta_chgdet
232 heynotitool set device_earjack_chgdet
233 heynotitool set device_earkey_chgdet
234 heynotitool set device_tvout_chgdet
235 heynotitool set device_hdmi_chgdet
236 heynotitool set device_keyboard_chgdet
239 mkdir -p /etc/udev/rules.d
240 if ! [ -L /etc/udev/rules.d/91-system-server.rules ]; then
241 ln -s %{_datadir}/system-server/udev-rules/91-system-server.rules /etc/udev/rules.d/91-system-server.rules
244 systemctl daemon-reload
246 systemctl restart system-server.service
252 systemctl stop system-server.service
256 systemctl daemon-reload
259 %files -n system-server
260 %manifest %{name}.manifest
261 %license LICENSE.APLv2
262 %config %{_sysconfdir}/dbus-1/system.d/system-server.conf
263 %{_bindir}/system_server
264 /opt/etc/smack/accesses.d/system-server.rule
265 %{_libdir}/system-server/shutdown.sh
267 %exclude %{_bindir}/restart
271 %{_bindir}/movi_format.sh
274 %{_bindir}/sys_pci_noti
275 %{_bindir}/mmc-smack-label
276 %{_bindir}/device-daemon
277 %{_unitdir}/multi-user.target.wants/system-server.service
278 %{_unitdir}/sockets.target.wants/system-server.socket
279 %{_unitdir}/system-server.service
280 %{_unitdir}/system-server.socket
281 %{_datadir}/system-server/udev-rules/91-system-server.rules
282 %{_datadir}/system-server/sys_pci_noti/res/locale/*/LC_MESSAGES/*.mo
283 %config %{_sysconfdir}/dbus-1/system.d/system-server.conf
286 %manifest sysman.manifest
287 %defattr(-,root,root,-)
288 %{_libdir}/libsysman.so.*
298 %files -n sysman-devel
299 %defattr(-,root,root,-)
300 %{_includedir}/sysman/sysman.h
301 %{_includedir}/sysman/sysman_managed.h
302 %{_includedir}/sysman/sysman_PG.h
303 %{_libdir}/pkgconfig/sysman.pc
304 %{_libdir}/libsysman.so
306 %files -n sysman-internal-devel
307 %defattr(-,root,root,-)
308 %{_includedir}/sysman/sysman-internal.h
311 %defattr(-,root,root,-)
312 %manifest libslp-pm.manifest
313 %{_libdir}/libpmapi.so.*
321 %files -n libslp-pm-devel
322 %defattr(-,root,root,-)
323 %{_includedir}/pmapi/pmapi.h
324 %{_includedir}/pmapi/pmapi_managed.h
325 %{_includedir}/pmapi/pm_PG.h
326 %{_libdir}/pkgconfig/pmapi.pc
327 %{_libdir}/libpmapi.so
329 %post -n libslp-pm-devel
332 %postun -n libslp-pm-devel
336 %defattr(-,root,root,-)
337 %{_libdir}/libhaptic.so.*
338 %manifest haptic.manifest
347 %files -n libhaptic-devel
348 %defattr(-,root,root,-)
349 %{_includedir}/haptic/haptic.h
350 %{_libdir}/libhaptic.so
351 %{_libdir}/pkgconfig/haptic.pc
353 %post -n libhaptic-devel
356 %postun -n libhaptic-devel
359 %files -n libhaptic-plugin-devel
360 %defattr(-,root,root,-)
361 %{_includedir}/haptic/haptic_module.h
362 %{_includedir}/haptic/haptic_plugin_intf.h
363 %{_includedir}/haptic/haptic_PG.h
364 %{_libdir}/pkgconfig/haptic-plugin.pc
367 %{_bindir}/display_wd
368 %{_libdir}/libdevman.so.*
369 %manifest devman.manifest
378 %files -n libdevman-devel
379 %{_includedir}/devman/devman.h
380 %{_includedir}/devman/devman_image.h
381 %{_includedir}/devman/devman_managed.h
382 %{_includedir}/devman/devman_haptic.h
383 %{_includedir}/devman/devman_PG.h
384 %{_libdir}/pkgconfig/devman.pc
385 %{_libdir}/libdevman.so
387 %post -n libdevman-devel
390 %postun -n libdevman-devel
393 %files -n libdevman-haptic-devel
394 %{_includedir}/devman/devman_haptic_ext.h
395 %{_includedir}/devman/devman_haptic_ext_core.h
396 %{_libdir}/pkgconfig/devman_haptic.pc
399 %defattr(-,root,root,-)
400 %{_libdir}/libdeviced.so.*
401 %manifest deviced.manifest
406 %postun -n libdeviced
409 %files -n libdeviced-devel
410 %defattr(-,root,root,-)
411 %{_includedir}/deviced/dd-battery.h
412 %{_libdir}/libdeviced.so
413 %{_libdir}/pkgconfig/deviced.pc
415 %post -n libdeviced-devel
418 %postun -n libdeviced-devel