]> git.pld-linux.org Git - packages/powertop.git/blob - powertop.spec
- up to 2.4
[packages/powertop.git] / powertop.spec
1 Summary:        PowerTOP - tool that finds the software component(s) that make your laptop use more power
2 Summary(pl.UTF-8):      PowerTOP - narzędzie wykrywające programy zwiększające pobór energii laptopa
3 Name:           powertop
4 Version:        2.4
5 Release:        1
6 License:        GPL v2
7 Group:          Applications
8 Source0:        https://01.org/powertop/sites/default/files/downloads/%{name}-%{version}.tar.gz
9 # Source0-md5:  3aa686bb245d6683b86cba9a6a4b8c6d
10 URL:            https://01.org/powertop/
11 BuildRequires:  gettext-devel
12 BuildRequires:  libnl-devel
13 BuildRequires:  libstdc++-devel
14 BuildRequires:  ncurses-devel
15 BuildRequires:  pciutils-devel
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 PowerTOP is a Linux tool that finds the software component(s) that
20 make your laptop use more power than necessary while it is idle. As of
21 Linux kernel version 2.6.21, the kernel no longer has a fixed 1000Hz
22 timer tick. This will (in theory) give a huge power savings because
23 the CPU stays in low power mode for longer periods of time during
24 system idle.
25
26 However... there are many things that can ruin the party, both inside
27 the kernel and in userspace. PowerTOP combines various sources of
28 information from the kernel into one convenient screen so that you can
29 see how well your system is doing, and which components are the
30 biggest problem.
31
32 %description -l pl.UTF-8
33 PowerTOP to narzędzie linuksowe znajdujące programy zwiększające pobór
34 energii laptopa w czasie bezczynności. Od wersji 2.6.21 jądro Linuksa
35 już nie ma stałej częstotliwości zegara 1000Hz. Daje to (w teorii)
36 dużą oszczędność energii, ponieważ procesor pozostaje w trybie małego
37 poboru energii na dłuższe okresy czasu podczas bezczynności systemu.
38
39 Jednak jest wiele elementów, które mogą zrujnować tę właściwość,
40 zarówno w jądrze, jak i przestrzeni użytkownika. PowerTOP łączy różne
41 źródła informacji z jądra w jeden wygodny ekran pozwalający obejrzeć,
42 jak dobrze system się sprawuje i które komponenty stanowią największy
43 problem.
44
45 %prep
46 %setup -q
47
48 %build
49 %configure \
50         CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" \
51         --disable-silent-rules
52 %{__make}
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 %{__make} install \
57         DESTDIR=$RPM_BUILD_ROOT
58
59 install -d $RPM_BUILD_ROOT/var/cache/powertop
60 touch $RPM_BUILD_ROOT/var/cache/powertop/saved_parameters.powertop
61
62 # fix locales names
63 mv $RPM_BUILD_ROOT%{_localedir}/cs{_CZ,}
64 mv $RPM_BUILD_ROOT%{_localedir}/de{_DE,}
65 mv $RPM_BUILD_ROOT%{_localedir}/es{_ES,}
66 mv $RPM_BUILD_ROOT%{_localedir}/hu{_HU,}
67 mv $RPM_BUILD_ROOT%{_localedir}/id{_ID,}
68 mv $RPM_BUILD_ROOT%{_localedir}/nl{_NL,}
69
70 %find_lang %{name}
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files -f %{name}.lang
76 %defattr(644,root,root,755)
77 %doc README TODO
78 %attr(755,root,root) %{_sbindir}/powertop
79 %{_mandir}/man8/powertop.8*
80 %dir /var/cache/powertop
81 %ghost /var/cache/powertop/saved_parameters.powertop
This page took 0.059304 seconds and 3 git commands to generate.