]> git.pld-linux.org Git - packages/laptop-mode-tools.git/blame - laptop-mode-tools.spec
- tabs in preamble
[packages/laptop-mode-tools.git] / laptop-mode-tools.spec
CommitLineData
3aa88ade 1Summary: Laptop Mode Tools
1ff27b94 2Summary(pl.UTF-8): Narzędzia do trybu laptopowego
3aa88ade 3Name: laptop-mode-tools
41ab4281
AM
4Version: 1.32
5Release: 1
3aa88ade
AM
6License: GPL
7Group: Applications/System
8Source0: http://www.xs4all.nl/~bsamwel/laptop_mode/tools/downloads/%{name}_%{version}.tar.gz
41ab4281 9# Source0-md5: 120723749b1a067fa6dec1c767ad2786
3aa88ade 10Source1: %{name}.init
066dee10 11URL: http://www.samwel.tk/laptop_mode/
9d2c8548 12BuildRequires: rpmbuild(macros) >= 1.268
3aa88ade
AM
13Requires(post,preun): /sbin/chkconfig
14Requires: %{name}-scripts = %{epoch}:%{version}-%{release}
15BuildArch: noarch
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
19Laptop mode (also known as laptopmode, laptop-mode and laptop_mode,
20for search engine purposes :) ) is a kernel "mode" that allows you to
21extend the battery life of your laptop. It does this by intelligently
22grouping write activity on your disks, so that only reads of uncached
23data result in a disk spinup. It causes a significant improvement in
24battery life (for usage patterns that allow it).
25
4d82385c
JR
26%description -l pl.UTF-8
27Tryb laptopowy (laptop mode) to "tryb" pracy jądra umożliwiający
28wydłużenie czasu życia baterii laptopa. Czyni to inteligentnie
29grupując zapisy na dyski w ten sposób, że tylko odczyt
30niezbuforowanych danych powoduje rozpędzenie dysku. Powoduje znaczącą
31poprawę czasu życia baterii.
c9dfa2d1 32
3aa88ade
AM
33%package acpi
34Summary: ACPI scripts for laptop mode tools
1ff27b94 35Summary(pl.UTF-8): Skrypty ACPI dla narzędzi do trybu laptopowego
3aa88ade 36Group: Applications/System
3aa88ade
AM
37Requires: %{name} = %{epoch}:%{version}-%{release}
38Requires: acpid
c9dfa2d1 39Provides: %{name}-scripts = %{epoch}:%{version}-%{release}
3aa88ade
AM
40
41%description acpi
42ACPI scripts for laptop mode tools.
43
4d82385c
JR
44%description acpi -l pl.UTF-8
45Skrypty ACPI dla narzędzi do trybu laptopowego.
c9dfa2d1 46
3aa88ade
AM
47%package apm
48Summary: APM scripts for laptop mode tools
1ff27b94 49Summary(pl.UTF-8): Skrypty APM dla narzędzi do trybu laptopowego
3aa88ade 50Group: Applications/System
3aa88ade
AM
51Requires: %{name} = %{epoch}:%{version}-%{release}
52Requires: apmd
c9dfa2d1 53Provides: %{name}-scripts = %{epoch}:%{version}-%{release}
3aa88ade
AM
54
55%description apm
56APM scripts for laptop mode tools.
57
4d82385c
JR
58%description apm -l pl.UTF-8
59Skrypty APM dla narzędzi do trybu laptopowego.
c9dfa2d1 60
3aa88ade
AM
61%prep
62%setup -q
63
3aa88ade
AM
64%install
65rm -rf $RPM_BUILD_ROOT
e57d0ad0
PG
66install -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}}
3aa88ade
AM
68
69install man/*.8 $RPM_BUILD_ROOT%{_mandir}/man8
70
71install etc/laptop-mode/laptop-mode.conf $RPM_BUILD_ROOT%{_sysconfdir}/laptop-mode
c9dfa2d1 72install usr/sbin/laptop_mode usr/sbin/lm-syslog-setup $RPM_BUILD_ROOT%{_sbindir}
3aa88ade
AM
73
74install etc/acpi/actions/* $RPM_BUILD_ROOT%{_sysconfdir}/acpi/actions
75install etc/acpi/events/* $RPM_BUILD_ROOT%{_sysconfdir}/acpi/events
76
c9dfa2d1 77install etc/apm/event.d/* $RPM_BUILD_ROOT%{_sysconfdir}/apm/event.d
3aa88ade
AM
78
79install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/laptop-mode
80
81%clean
82rm -rf $RPM_BUILD_ROOT
83
84%post
85/sbin/chkconfig --add laptop-mode
9d2c8548 86%service laptop-mode restart
3aa88ade
AM
87
88%preun
89if [ "$1" = "0" ]; then
9d2c8548 90 %service laptop-mode stop
3aa88ade
AM
91 /sbin/chkconfig --del laptop-mode
92fi
93
94%files
95%defattr(644,root,root,755)
96%doc README Documentation/*
430bdbc2 97%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/laptop-mode/*.*
e57d0ad0 98%dir %{_sysconfdir}/laptop-mode
3aa88ade
AM
99%attr(754,root,root) /etc/rc.d/init.d/laptop-mode
100%attr(755,root,root) %{_sbindir}/*
3aa88ade
AM
101%{_mandir}/man8/*.8*
102
103%files acpi
104%defattr(644,root,root,755)
105%attr(750,root,root) %{_sysconfdir}/acpi/*/*
106
107%files apm
108%defattr(644,root,root,755)
109%attr(750,root,root) %{_sysconfdir}/apm/event.d/*
This page took 0.106826 seconds and 4 git commands to generate.