]>
Commit | Line | Data |
---|---|---|
770b92c2 | 1 | Summary: PowerTOP - tool that finds the software component(s) that make your laptop use more power |
97193998 | 2 | Summary(pl.UTF-8): PowerTOP - narzędzie wykrywające programy zwiększające pobór energii laptopa |
770b92c2 | 3 | Name: powertop |
8c658bf6 | 4 | Version: 2.4 |
38b55433 | 5 | Release: 1 |
770b92c2 PG |
6 | License: GPL v2 |
7 | Group: Applications | |
768ae65f | 8 | Source0: https://01.org/powertop/sites/default/files/downloads/%{name}-%{version}.tar.gz |
8c658bf6 | 9 | # Source0-md5: 3aa686bb245d6683b86cba9a6a4b8c6d |
1160b784 | 10 | URL: https://01.org/powertop/ |
768ae65f | 11 | BuildRequires: gettext-devel |
1160b784 | 12 | BuildRequires: libnl-devel |
768ae65f | 13 | BuildRequires: libstdc++-devel |
866d1e2f | 14 | BuildRequires: ncurses-devel |
1160b784 | 15 | BuildRequires: pciutils-devel |
770b92c2 PG |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
97193998 JB |
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 | |
9d1883c4 | 30 | biggest problem. |
97193998 JB |
31 | |
32 | %description -l pl.UTF-8 | |
20e33957 JB |
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. | |
770b92c2 PG |
44 | |
45 | %prep | |
1160b784 | 46 | %setup -q |
770b92c2 PG |
47 | |
48 | %build | |
1160b784 | 49 | %configure \ |
768ae65f ŁK |
50 | CPPFLAGS="%{rpmcppflags} -I/usr/include/ncurses" \ |
51 | --disable-silent-rules | |
1160b784 | 52 | %{__make} |
770b92c2 PG |
53 | |
54 | %install | |
55 | rm -rf $RPM_BUILD_ROOT | |
770b92c2 PG |
56 | %{__make} install \ |
57 | DESTDIR=$RPM_BUILD_ROOT | |
58 | ||
53298f7b ER |
59 | install -d $RPM_BUILD_ROOT/var/cache/powertop |
60 | touch $RPM_BUILD_ROOT/var/cache/powertop/saved_parameters.powertop | |
61 | ||
11dd99dd ŁK |
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 | ||
768ae65f ŁK |
70 | %find_lang %{name} |
71 | ||
770b92c2 PG |
72 | %clean |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
768ae65f | 75 | %files -f %{name}.lang |
770b92c2 | 76 | %defattr(644,root,root,755) |
768ae65f | 77 | %doc README TODO |
1160b784 | 78 | %attr(755,root,root) %{_sbindir}/powertop |
768ae65f | 79 | %{_mandir}/man8/powertop.8* |
53298f7b ER |
80 | %dir /var/cache/powertop |
81 | %ghost /var/cache/powertop/saved_parameters.powertop |