]> git.pld-linux.org Git - packages/powertop.git/blame - powertop.spec
- up to 2.4
[packages/powertop.git] / powertop.spec
CommitLineData
770b92c2 1Summary: PowerTOP - tool that finds the software component(s) that make your laptop use more power
97193998 2Summary(pl.UTF-8): PowerTOP - narzędzie wykrywające programy zwiększające pobór energii laptopa
770b92c2 3Name: powertop
8c658bf6 4Version: 2.4
38b55433 5Release: 1
770b92c2
PG
6License: GPL v2
7Group: Applications
768ae65f 8Source0: https://01.org/powertop/sites/default/files/downloads/%{name}-%{version}.tar.gz
8c658bf6 9# Source0-md5: 3aa686bb245d6683b86cba9a6a4b8c6d
1160b784 10URL: https://01.org/powertop/
768ae65f 11BuildRequires: gettext-devel
1160b784 12BuildRequires: libnl-devel
768ae65f 13BuildRequires: libstdc++-devel
866d1e2f 14BuildRequires: ncurses-devel
1160b784 15BuildRequires: pciutils-devel
770b92c2
PG
16BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18%description
97193998
JB
19PowerTOP is a Linux tool that finds the software component(s) that
20make your laptop use more power than necessary while it is idle. As of
21Linux kernel version 2.6.21, the kernel no longer has a fixed 1000Hz
22timer tick. This will (in theory) give a huge power savings because
23the CPU stays in low power mode for longer periods of time during
24system idle.
25
26However... there are many things that can ruin the party, both inside
27the kernel and in userspace. PowerTOP combines various sources of
28information from the kernel into one convenient screen so that you can
29see how well your system is doing, and which components are the
9d1883c4 30biggest problem.
97193998
JB
31
32%description -l pl.UTF-8
20e33957
JB
33PowerTOP to narzędzie linuksowe znajdujące programy zwiększające pobór
34energii laptopa w czasie bezczynności. Od wersji 2.6.21 jądro Linuksa
35już nie ma stałej częstotliwości zegara 1000Hz. Daje to (w teorii)
36dużą oszczędność energii, ponieważ procesor pozostaje w trybie małego
37poboru energii na dłuższe okresy czasu podczas bezczynności systemu.
38
39Jednak jest wiele elementów, które mogą zrujnować tę właściwość,
40zaró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ć,
42jak dobrze system się sprawuje i które komponenty stanowią największy
43problem.
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
55rm -rf $RPM_BUILD_ROOT
770b92c2
PG
56%{__make} install \
57 DESTDIR=$RPM_BUILD_ROOT
58
53298f7b
ER
59install -d $RPM_BUILD_ROOT/var/cache/powertop
60touch $RPM_BUILD_ROOT/var/cache/powertop/saved_parameters.powertop
61
11dd99dd
ŁK
62# fix locales names
63mv $RPM_BUILD_ROOT%{_localedir}/cs{_CZ,}
64mv $RPM_BUILD_ROOT%{_localedir}/de{_DE,}
65mv $RPM_BUILD_ROOT%{_localedir}/es{_ES,}
66mv $RPM_BUILD_ROOT%{_localedir}/hu{_HU,}
67mv $RPM_BUILD_ROOT%{_localedir}/id{_ID,}
68mv $RPM_BUILD_ROOT%{_localedir}/nl{_NL,}
69
768ae65f
ŁK
70%find_lang %{name}
71
770b92c2
PG
72%clean
73rm -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
This page took 0.069381 seconds and 4 git commands to generate.