1 Summary: ACPI scripts for EeePC netbook computers
2 Summary(pl.UTF-8): Skrypty ACPI dla notebooków EeePC
3 Name: eeepc-acpi-utilities
7 Group: X11/Applications
8 Source0: http://dl.sourceforge.net/eeepc-acpi-util/%{name}_%{version}.tar.gz
9 # Source0-md5: cc32bd733b980d76beaac051f6b2cf4e
11 URL: http://eeepc-acpi-util.sourceforge.net/
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 ACPI scripts for EeePC netbook computers.
21 Keys are configured as follows by default:
26 - Screen resolution cycle (1024x600, 800x600, 640x480)
30 Alternately any two of the following can be enabled instead of
33 - Rotate Screen (Cycles Left, Inverted, Right, then Normal)
34 - CPU Mode cycle (Performance, On Demand, Power Saver)
35 - Firefox (Customizable)
36 - Pidgin (Customizable)
38 The FN-[F1-F12] keys are set to the following by default:
40 - F1 - Sleep (not managed by my ACPI Scripts)
41 - F2 - WIFI (It will autodetect your adapter, or alternately you can
42 select ndiswrapper mode)
43 - F5-F6 Brightness (not managed by my ACPI Scripts)
44 - F7 - LCD power Toggle On / Off
45 - F8 - VGA Output toggle
46 - F9 - Gnome System Monitor
51 Features: Zero resident memory footprint unless keys are pressed, fast
52 response, parameter save / restore, fan management, CPU frequency
58 for i in usr/share/applications/eeepc.desktop \
60 init.d/eeepc-restore ; do
61 sed -i "s@/etc/default/eeepc-acpi@/etc/sysconfig/eeepc-acpi@g" $i
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_sysconfdir}/{acpi,cron.d,sysconfig,rc.d/init.d,xdg}
69 install -d $RPM_BUILD_ROOT%{_sysconfdir}/acpi/{eeepc,events}
70 install -d $RPM_BUILD_ROOT%{_datadir}/{,applications,pixmaps}
71 install -d $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart
72 install -d $RPM_BUILD_ROOT/var/eeepc
74 install acpi/eeepc/*.sh $RPM_BUILD_ROOT%{_sysconfdir}/acpi/eeepc/
75 install acpi/events/eeepc-hotkeys $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events/
76 install cron.d/eeepc-fan $RPM_BUILD_ROOT/etc/cron.d/
77 install default/eeepc-acpi $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/
78 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/eeepc-restore
79 install usr/share/applications/eeepc.desktop $RPM_BUILD_ROOT%{_desktopdir}/
80 install usr/share/pixmaps/eee.png $RPM_BUILD_ROOT%{_pixmapsdir}/
81 install xdg/autostart/eeepc-acpi-util.desktop $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/
84 rm -rf $RPM_BUILD_ROOT
87 /sbin/chkconfig --add eeepc-restore
88 %service %{name} restart
91 if [ "$1" = "0" ]; then
92 %service -q %{name} stop
93 /sbin/chkconfig --del eeepc-restore
97 %defattr(644,root,root,755)
98 %dir %{_sysconfdir}/acpi/eeepc
99 %attr(755,root,root) %{_sysconfdir}/acpi/eeepc/*.sh
100 %{_sysconfdir}/acpi/events/eeepc-hotkeys
101 /etc/cron.d/eeepc-fan
102 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/eeepc-acpi
103 %attr(754,root,root) /etc/rc.d/init.d/eeepc-restore
104 %{_sysconfdir}/xdg/autostart/eeepc-acpi-util.desktop
105 %{_desktopdir}/eeepc.desktop
106 %{_pixmapsdir}/eee.png