| # Authority: dag |
| # Upstream: Ritesh Raj Sarraf <rrs@researchut.com> |
| |
| Summary: Tools for power savings based on battery/AC status |
| Name: laptop-mode-tools |
| Version: 1.52 |
| Release: 1 |
| License: GPL |
| Group: System Environment/Base |
| URL: http://www.samwel.tk/laptop_mode |
| Vendor: Laptop Mode Tools Developers |
| Distribution: RPM Based distributions |
| Packager: Ritesh Raj Sarraf <rrs@researchut.com> |
| |
| 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 |
| |
| %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 -n %{name}_%{version} |
| |
| %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} |
| %doc %{_mandir}/man8/laptop-mode.conf.8 |
| %doc %{_mandir}/man8/laptop_mode.8 |
| %doc %{_mandir}/man8/lm-profiler.8 |
| %doc %{_mandir}/man8/lm-profiler.conf.8 |
| %doc %{_mandir}/man8/lm-syslog-setup.8 |
| %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/* |
| %{_usr}/lib/pm-utils/sleep.d/* |
| |
| %dir %{_sysconfdir}/acpi/events |
| %dir %{_sysconfdir}/acpi/actions |
| %dir %{_usr}/sbin |
| %dir %{_usr}/lib/pm-utils/sleep.d |
| %dir %{_usr}/share/laptop-mode-tools/modules |
| %dir %{_usr}/share/laptop-mode-tools/module-helpers/* |
| %dir %{_sysconfdir}/apm/event.d |
| %dir %{_sysconfdir}/power/scripts.d |
| %dir %{_sysconfdir}/power/event.d |
| |
| |
| %changelog |
| * Thu Oct 8 14:12:23 IST 2009 Ritesh Raj Sarraf <rrs@researchut.com> - 1.52-1 |
| - Updated to release 1.52. |
| |
| * Tue Sep 1 20:53:28 IST 2009 Ritesh Raj Sarraf <rrs@researchut.com> - 1.51-1 |
| - Updated to release 1.51. |
| |
| * Fri Jul 24 2009 Ritesh Raj Sarraf <rrs@researchut.com> - 1.50-1 |
| - Updated to release 1.50. |
| |
| * Sun Sep 07 2008 Bart Samwel <bart@samwel.tk> - 1.45-1 |
| - Updated to release 1.45. |
| |
| * Mon May 28 2007 Bart Samwel <bart@samwel.tk> - 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 <dag@wieers.com> - 1.32-1 |
| - Updated to release 1.32. |
| |
| * Sun Apr 16 2006 Dag Wieers <dag@wieers.com> - 1.31-1 |
| - Updated to release 1.31. |
| |
| * Sat Apr 15 2006 Dag Wieers <dag@wieers.com> - 1.30-1 |
| - Updated to release 1.30. |
| |
| * Sun Apr 10 2005 Dag Wieers <dag@wieers.com> - 1.05-1 |
| - Initial package. (using DAR) |