# Authority: dag # Upstream: Bart Samwel Summary: Tools for power savings based on battery/AC status Name: laptop-mode-tools Version: 1.45 Release: 1 License: GPL Group: System Environment/Base URL: http://www.samwel.tk/laptop_mode Source: http://www.samwel.tk/laptop_mode/tools/downloads/laptop-mode-tools_%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: acpid %description Laptop mode is a Linux kernel feature that allows your laptop to save considerable power, by allowing the hard drive to spin down for longer periods of time. This package contains the userland scripts that are needed to enable laptop mode. It includes support for automatically enabling laptop mode when the computer is working on batteries. In addition, it provides a set of modules which allow you to apply various other power savings. %prep %setup %build %{__rm} -rf %{buildroot} DESTDIR=%{buildroot} INIT_D="" MAN_D=%{_mandir} INSTALL=install ./install.sh # Work around bug in installer. It installs the script in the wrong location if INIT_D="". rm %{buildroot}/etc/init.d/laptop-mode %{__mkdir_p} -m0755 %{buildroot}%{_initrddir} %{__install} -Dp -m755 etc/init.d/laptop-mode %{buildroot}%{_initrddir} %clean %{__rm} -rf %{buildroot} %preun if [ $1 -eq 0 ]; then /sbin/service laptop-mode stop &>/dev/null || : /sbin/chkconfig --del laptop-mode fi %post /sbin/chkconfig --add laptop-mode /sbin/service laptop-mode start &>/dev/null || : /sbin/service acpid restart &>/dev/null || : %postun /sbin/service laptop-mode condrestart &>/dev/null || : %files %defattr(-, root, root, 0755) %doc COPYING Documentation/*.txt README %docdir %{_mandir} %config %{_sysconfdir}/acpi/actions/lm_*.sh %config %{_sysconfdir}/acpi/events/lm_* %config(noreplace) %{_sysconfdir}/laptop-mode/ %config %{_initrddir}/laptop-mode %{_sysconfdir}/apm/event.d/* %{_sysconfdir}/power/scripts.d/* %{_sysconfdir}/power/event.d/* %{_usr}/sbin/* %{_usr}/share/laptop-mode-tools/modules/* %dir %{_sysconfdir}/acpi/events %dir %{_sysconfdir}/acpi/actions %dir %{_usr}/sbin %dir %{_usr}/share/laptop-mode-tools/modules %dir %{_sysconfdir}/apm/event.d %dir %{_sysconfdir}/power/scripts.d %dir %{_sysconfdir}/power/event.d %changelog * Sun Sep 07 2008 Bart Samwel - 1.45-1 - Updated to release 1.45. * Mon May 28 2007 Bart Samwel - 1.34-1 - Updated to release 1.34. - Added some files from upstream that were left out in earlier packages, such as lm-profiler. - Restart acpid after %{__install} -Dping. * Sun Oct 08 2006 Dag Wieers - 1.32-1 - Updated to release 1.32. * Sun Apr 16 2006 Dag Wieers - 1.31-1 - Updated to release 1.31. * Sat Apr 15 2006 Dag Wieers - 1.30-1 - Updated to release 1.30. * Sun Apr 10 2005 Dag Wieers - 1.05-1 - Initial package. (using DAR)