]> git.pld-linux.org Git - packages/eeepc-acpi-utilities.git/blob - eeepc-acpi-utilities.spec
rel. 0.3
[packages/eeepc-acpi-utilities.git] / eeepc-acpi-utilities.spec
1 Summary:        ACPI scripts for EeePC netbook computers
2 Summary(pl.UTF-8):      Skrypty ACPI dla notebooków EeePC
3 Name:           eeepc-acpi-utilities
4 Version:        1.0.9
5 Release:        0.3
6 License:        GPL
7 Group:          X11/Applications
8 Source0:        http://dl.sourceforge.net/eeepc-acpi-util/%{name}_%{version}.tar.gz
9 # Source0-md5:  cc32bd733b980d76beaac051f6b2cf4e
10 Source1:        %{name}.init
11 URL:            http://eeepc-acpi-util.sourceforge.net/
12 Requires:       acpid
13 Requires:       coreutils
14 Requires:       dmidecode
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 ACPI scripts for EeePC netbook computers.
20
21 Keys are configured as follows by default:
22
23 Top row (4 keys)
24
25 - Touchpad On / Off
26 - Screen resolution cycle (1024x600, 800x600, 640x480)
27 - Bluetooth On / Off
28 - Webcam On / Off
29
30 Alternately any two of the following can be enabled instead of
31 Bluetooth / Webcam:
32
33 - Rotate Screen (Cycles Left, Inverted, Right, then Normal)
34 - CPU Mode cycle (Performance, On Demand, Power Saver)
35 - Firefox (Customizable)
36 - Pidgin (Customizable)
37
38 The FN-[F1-F12] keys are set to the following by default:
39
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
47 - F10 - Volume Mute
48 - F11 - Volume -
49 - F12 - Volume +
50
51 Features: Zero resident memory footprint unless keys are pressed, fast
52 response, parameter save / restore, fan management, CPU frequency
53 management, and more.
54
55 %prep
56 %setup -q
57
58 for i in usr/share/applications/eeepc.desktop \
59         acpi/eeepc/*.sh \
60         init.d/eeepc-restore ; do
61         sed -i "s@/etc/default/eeepc-acpi@/etc/sysconfig/eeepc-acpi@g" $i
62 done
63
64 %build
65
66 %install
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
73
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 sed -i "s@/etc/default/eeepc-acpi@/etc/sysconfig/eeepc-acpi@g" $RPM_BUILD_ROOT/etc/rc.d/init.d/eeepc-restore
80 install usr/share/applications/eeepc.desktop $RPM_BUILD_ROOT%{_desktopdir}/
81 install usr/share/pixmaps/eee.png $RPM_BUILD_ROOT%{_pixmapsdir}/
82 install xdg/autostart/eeepc-acpi-util.desktop $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post
88 /sbin/chkconfig --add eeepc-restore
89 %service %{name} restart
90
91 %preun
92 if [ "$1" = "0" ]; then
93         %service -q %{name} stop
94         /sbin/chkconfig --del eeepc-restore
95 fi
96
97 %files
98 %defattr(644,root,root,755)
99 %dir  %{_sysconfdir}/acpi/eeepc
100 %attr(755,root,root) %{_sysconfdir}/acpi/eeepc/*.sh
101 %{_sysconfdir}/acpi/events/eeepc-hotkeys
102 /etc/cron.d/eeepc-fan
103 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/eeepc-acpi
104 %attr(754,root,root) /etc/rc.d/init.d/eeepc-restore
105 %{_sysconfdir}/xdg/autostart/eeepc-acpi-util.desktop
106 %{_desktopdir}/eeepc.desktop
107 %{_pixmapsdir}/eee.png
108 %dir /var/eeepc
This page took 0.071111 seconds and 3 git commands to generate.