Name: laptop-mode-tools Version: 1.60 Release: 1mamba Summary: A laptop power saving package for Linux systems Group: System/Kernel and Hardware Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.samwel.tk/laptop_mode/ Source: http://samwel.tk/laptop_mode/tools/downloads/laptop-mode-tools_%{version}.tar.gz Patch0: %{name}-1.57-initscript_chkconfig.patch Patch1: %{name}-1.59-no_usb_autosuspend_for_input_devices.patch Patch2: %{name}-1.60-udev-179.patch License: GPL BuildArch: noarch Provides: cpufreqd Obsoletes: cpufreqd Requires: hdparm BuildRoot: %{_tmppath}/%{name}-%{version}-root %description Laptop Mode Tools is a laptop power saving package for Linux systems. It allows you to extend the battery life of your laptop, in several ways. It is the primary way to enable the Laptop Mode feature of the Linux kernel, which lets your hard drive spin down. In addition, it allows you to tweak a number of other power-related settings using a simple configuration file. %prep %setup -q -n %{name}_%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %build %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" install -d %{buildroot}%{_sysconfdir}/pm/sleep.d DESTDIR=%{buildroot} \ INIT_D="%{buildroot}%{_initrddir}" \ MAN_D=%{_mandir} \ INSTALL=install \ ./install.sh %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %preun if [ $1 -eq 0 ]; then /sbin/service laptop-mode stop &>/dev/null || : /sbin/chkconfig --del laptop-mode fi %post if [ $1 -ge 1 ]; then # del and add to change stop order due to fix /sbin/chkconfig --del laptop-mode /sbin/chkconfig --add laptop-mode /sbin/service laptop-mode start &>/dev/null || : /sbin/service acpid restart &>/dev/null || : fi %postun /sbin/service laptop-mode condrestart &>/dev/null || : %files %defattr(-,root,root) %{_sysconfdir}/acpi/actions/lm_*.sh %{_sysconfdir}/acpi/events/lm_* %{_sysconfdir}/apm/event.d/laptop-mode %dir %{_sysconfdir}/pm/sleep.d %{_sysconfdir}/power/event.d/laptop-mode %{_sysconfdir}/power/scripts.d/laptop-mode %dir %{_sysconfdir}/laptop-mode %dir %{_sysconfdir}/laptop-mode/conf.d %{_sysconfdir}/laptop-mode/conf.d/*.conf %config(noreplace) %{_sysconfdir}/laptop-mode/laptop-mode.conf %config(noreplace) %{_sysconfdir}/laptop-mode/lm-profiler.conf %{_initrddir}/laptop-mode %{_sysconfdir}/udev/rules.d/99-laptop-mode.rules %{_sbindir}/laptop_mode %{_sbindir}/lm-profiler %{_sbindir}/lm-syslog-setup /lib/udev/lmt-udev %{_libdir}/pm-utils/sleep.d/01laptop-mode %dir %{_datadir}/laptop-mode-tools %dir %{_datadir}/laptop-mode-tools/modules %{_datadir}/laptop-mode-tools/modules/* %dir %{_datadir}/laptop-mode-tools/module-helpers %{_datadir}/laptop-mode-tools/module-helpers/lm-polling-daemon %{_datadir}/laptop-mode-tools/module-helpers/pm-* %{_mandir}/man8/laptop-mode.conf.8* %{_mandir}/man8/laptop_mode.8* %{_mandir}/man8/lm-profiler.8* %{_mandir}/man8/lm-profiler.conf.8* %{_mandir}/man8/lm-syslog-setup.8* %doc COPYING README %changelog * Sat Feb 11 2012 Silvan Calarco 1.60-1mamba - update to 1.60 - added patch for udev >= 179 * Wed Aug 17 2011 Stefano Cotta Ramusino 1.59-1mamba - update to 1.59 - added patch to avoid usb autosuspend for user input devices * Mon May 09 2011 Silvan Calarco 1.57-2mamba - set init script stop order to 93 before mountfs or it hangs shutdown in monothreaded mode * Thu Apr 07 2011 Silvan Calarco 1.57-1mamba - package created by autospec