]> git.pld-linux.org Git - packages/eeepc-acpi-utilities.git/blame - eeepc-acpi-utilities.spec
rel. 0.3
[packages/eeepc-acpi-utilities.git] / eeepc-acpi-utilities.spec
CommitLineData
06440297
SP
1Summary: ACPI scripts for EeePC netbook computers
2Summary(pl.UTF-8): Skrypty ACPI dla notebooków EeePC
3Name: eeepc-acpi-utilities
4Version: 1.0.9
76701eca 5Release: 0.3
06440297
SP
6License: GPL
7Group: X11/Applications
8Source0: http://dl.sourceforge.net/eeepc-acpi-util/%{name}_%{version}.tar.gz
9# Source0-md5: cc32bd733b980d76beaac051f6b2cf4e
d443b6b4 10Source1: %{name}.init
06440297
SP
11URL: http://eeepc-acpi-util.sourceforge.net/
12Requires: acpid
e377b368 13Requires: coreutils
d443b6b4 14Requires: dmidecode
06440297
SP
15BuildArch: noarch
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19ACPI scripts for EeePC netbook computers.
20
21Keys are configured as follows by default:
22
23Top row (4 keys)
24
25- Touchpad On / Off
26- Screen resolution cycle (1024x600, 800x600, 640x480)
27- Bluetooth On / Off
28- Webcam On / Off
29
30Alternately any two of the following can be enabled instead of
31Bluetooth / 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
38The 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
51Features: Zero resident memory footprint unless keys are pressed, fast
52response, parameter save / restore, fan management, CPU frequency
53management, and more.
54
55%prep
56%setup -q
57
90b53fcd
SS
58for 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
62done
63
06440297
SP
64%build
65
66%install
67rm -rf $RPM_BUILD_ROOT
6d2a94a3 68install -d $RPM_BUILD_ROOT%{_sysconfdir}/{acpi,cron.d,sysconfig,rc.d/init.d,xdg}
06440297
SP
69install -d $RPM_BUILD_ROOT%{_sysconfdir}/acpi/{eeepc,events}
70install -d $RPM_BUILD_ROOT%{_datadir}/{,applications,pixmaps}
71install -d $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart
e377b368 72install -d $RPM_BUILD_ROOT/var/eeepc
06440297
SP
73
74install acpi/eeepc/*.sh $RPM_BUILD_ROOT%{_sysconfdir}/acpi/eeepc/
75install acpi/events/eeepc-hotkeys $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events/
76install cron.d/eeepc-fan $RPM_BUILD_ROOT/etc/cron.d/
6d2a94a3 77install default/eeepc-acpi $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/
d443b6b4 78install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/eeepc-restore
5a977d9a 79sed -i "s@/etc/default/eeepc-acpi@/etc/sysconfig/eeepc-acpi@g" $RPM_BUILD_ROOT/etc/rc.d/init.d/eeepc-restore
6d2a94a3
SP
80install usr/share/applications/eeepc.desktop $RPM_BUILD_ROOT%{_desktopdir}/
81install usr/share/pixmaps/eee.png $RPM_BUILD_ROOT%{_pixmapsdir}/
06440297
SP
82install xdg/autostart/eeepc-acpi-util.desktop $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
2bc04f61 87%post
e377b368
SP
88/sbin/chkconfig --add eeepc-restore
89%service %{name} restart
90
2bc04f61 91%preun
e377b368
SP
92if [ "$1" = "0" ]; then
93 %service -q %{name} stop
94 /sbin/chkconfig --del eeepc-restore
95fi
96
06440297
SP
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
6d2a94a3 103%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/eeepc-acpi
06440297
SP
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
e377b368 108%dir /var/eeepc
This page took 0.071748 seconds and 4 git commands to generate.