1 Summary: Laptop Mode Tools
2 Summary(pl): Narzêdzia do trybu laptopowego
3 Name: laptop-mode-tools
7 Group: Applications/System
8 Source0: http://www.xs4all.nl/~bsamwel/laptop_mode/tools/downloads/%{name}_%{version}.tar.gz
9 # Source0-md5: 61cf06849c3340ba965fc14091a25c82
11 URL: http://www.xs4all.nl/~bsamwel/laptop_mode/
13 Requires(post,preun): /sbin/chkconfig
14 Requires: %{name}-scripts = %{epoch}:%{version}-%{release}
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 Laptop mode (also known as laptopmode, laptop-mode and laptop_mode,
20 for search engine purposes :) ) is a kernel "mode" that allows you to
21 extend the battery life of your laptop. It does this by intelligently
22 grouping write activity on your disks, so that only reads of uncached
23 data result in a disk spinup. It causes a significant improvement in
24 battery life (for usage patterns that allow it).
27 Tryb laptopowy (laptop mode) to "tryb" pracy j±dra umo¿liwiaj±cy
28 wyd³u¿enie czasu ¿ycia baterii laptopa. Czyni to inteligentnie
29 grupuj±c zapisy na dyski w ten sposób, ¿e tylko odczyt
30 niezbuforowanych danych powoduje rozpêdzenie dysku. Powoduje znacz±c±
31 poprawê czasu ¿ycia baterii.
34 Summary: ACPI scripts for laptop mode tools
35 Summary(pl): Skrypty ACPI dla narzêdzi do trybu laptopowego
36 Group: Applications/System
37 Requires: %{name} = %{epoch}:%{version}-%{release}
39 Provides: %{name}-scripts = %{epoch}:%{version}-%{release}
42 ACPI scripts for laptop mode tools.
44 %description acpi -l pl
45 Skrypty ACPI dla narzêdzi do trybu laptopowego.
48 Summary: APM scripts for laptop mode tools
49 Summary(pl): Skrypty APM dla narzêdzi do trybu laptopowego
50 Group: Applications/System
51 Requires: %{name} = %{epoch}:%{version}-%{release}
53 Provides: %{name}-scripts = %{epoch}:%{version}-%{release}
56 APM scripts for laptop mode tools.
58 %description apm -l pl
59 Skrypty APM dla narzêdzi do trybu laptopowego.
65 rm -rf $RPM_BUILD_ROOT
66 install -d $RPM_BUILD_ROOT/etc/{sysconfig,rc.d/init.d,laptop-mode,apm/event.d,acpi/{actions,events}} \
67 $RPM_BUILD_ROOT{%{_mandir}/man8,%{_sbindir}}
69 install man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
71 install etc/laptop-mode/laptop-mode.conf $RPM_BUILD_ROOT%{_sysconfdir}/laptop-mode
72 install usr/sbin/laptop_mode usr/sbin/lm-syslog-setup $RPM_BUILD_ROOT%{_sbindir}
74 install etc/acpi/actions/* $RPM_BUILD_ROOT%{_sysconfdir}/acpi/actions
75 install etc/acpi/events/* $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events
77 install etc/apm/event.d/* $RPM_BUILD_ROOT%{_sysconfdir}/apm/event.d
79 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/laptop-mode
82 rm -rf $RPM_BUILD_ROOT
85 /sbin/chkconfig --add laptop-mode
86 if [ -f /var/lock/subsys/laptop-mode ]; then
87 /etc/rc.d/init.d/laptop-mode restart 1>&2
89 echo "Run \"/etc/rc.d/init.d/laptop-mode start\" to start laptop-mode."
93 if [ "$1" = "0" ]; then
94 if [ -f /var/lock/subsys/laptop-mode ]; then
95 /etc/rc.d/init.d/laptop-mode stop 1>&2
97 /sbin/chkconfig --del laptop-mode
101 %defattr(644,root,root,755)
102 %doc README Documentation/*
103 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/laptop-mode/*.*
104 %dir %{_sysconfdir}/laptop-mode
105 %attr(754,root,root) /etc/rc.d/init.d/laptop-mode
106 %attr(755,root,root) %{_sbindir}/*
110 %defattr(644,root,root,755)
111 %attr(750,root,root) %{_sysconfdir}/acpi/*/*
114 %defattr(644,root,root,755)
115 %attr(750,root,root) %{_sysconfdir}/apm/event.d/*