Sophie

Sophie

distrib > Arklinux > devel > x86_64 > media > main-src > by-pkgid > fe019d0d5ef49aeeb2a8ea23a7fa9588 > files > 2

laptop-mode-tools-1.55-1ark.src.rpm

Name: laptop-mode-tools
Version: 1.55
Release: 1ark
Summary: Laptop power saving tools
URL: http://www.samwel.tk/laptop_mode/
Source: http://samwel.tk/laptop_mode/tools/downloads/%{name}_%version.tar.gz
Patch1: laptop-mode-tools-0.97-chkconfig.patch
License: GPL
Group: System/Tools
Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-root
BuildArch: noarch
Prereq: chkconfig

%description
The Linux kernel, starting from version 2.6.6, contains a
feature called laptop mode. When you enable this feature,
Linux allows your hard drive to spin down more often,
resulting in significant power savings.

The %name package controls the laptop mode settings.

%prep
%setup -q -n %{name}_%version
%patch1 -p1 -b .chkconfig~

%build
make %?_smp_mflags

%install
rm -rf $RPM_BUILD_ROOT
DESTDIR="$RPM_BUILD_ROOT" MAN_D=%_mandir ./install.sh
rm -f $RPM_BUILD_ROOT/etc/rc3.d/S20laptop-mode
%if "%_lib" != "lib"
cd $RPM_BUILD_ROOT%_prefix
mv lib %_lib
%endif

%post
/sbin/chkconfig --add laptop-mode

%preun
/sbin/chkconfig --del laptop-mode

%files
%defattr(-,root,root)
%_sysconfdir/acpi/*/*
%_sysconfdir/apm/event.d/*
%_sysconfdir/init.d/laptop-mode
%dir %_sysconfdir/laptop-mode
%config(noreplace) %_sysconfdir/laptop-mode/laptop-mode.conf
%_sbindir/laptop_mode
%_sbindir/lm-*
%_datadir/%name
%_sysconfdir/laptop-mode
%_sysconfdir/power
%_mandir/man8/*
%_libdir/pm-utils/*

%clean
rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}

%changelog
* Fri Jun 11 2010 Bernhard Rosenkraenzer <bero@arklinux.org> 1.55-1ark
- Update

* Sat Aug 14 2004 Bernhard Rosenkraenzer <bero@arklinux.org> 0.97-1ark
- initial RPM