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
8 Source0: https://01.org/powertop/sites/default/files/downloads/%{name}-%{version}.tar.gz
9 # Source0-md5: d620018e48a959c3ea41e63d3d9deffc
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)
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
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
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.
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
50 CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" \
51 --disable-silent-rules
55 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT/var/cache/powertop
60 touch $RPM_BUILD_ROOT/var/cache/powertop/saved_parameters.powertop
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,}
73 rm -rf $RPM_BUILD_ROOT
75 %files -f %{name}.lang
76 %defattr(644,root,root,755)
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