Sisyphus repositório
Última atualização: 8 julho 2020 | SRPMs: 17697 | Visitas: 18852396
en ru br
ALT Linux repositórios
5.0: 1.10-alt1
4.1: 1.9-alt1
4.0: 1.7-alt1

Group :: Sistema/Kernel e hardware
RPM: powertop

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Name: powertop
Version: 2.11
Release: alt1
Serial: 1

Summary: Tool that helps you find what software is using the most power
License: GPLv2 only
Group: System/Kernel and hardware

Source0: %name-%version.tar
Source1: %name.service
Source2: %name.init

# Automatically added by buildreq on Tue May 15 2012

# optimized out: libncurses-devel libstdc++-devel libtinfo-devel pkg-config xz
BuildRequires: gcc-c++ libncursesw-devel libnl-devel libpci-devel zlib-devel

%define cachedir %_cachedir/%name

PowerTOP is a Linux tool that finds the software component(s) that make
your laptop use more power than necessary while it is idle.

PowerTOP works best on a laptop computer, or at least a computer with an
Intel mobile processor (certain small non-laptop devices also contain a
mobile processor). When using PowerTOP on a laptop, do so when running
on battery.

Please note that it also runs just fine with e.g. AMD CPUs. :)


find -name '*.o' -delete

%find_lang %name
install -d %buildroot%cachedir
touch %buildroot%cachedir/saved_{parameters,results}.powertop
install -pDm644 %SOURCE1 %buildroot%_unitdir/%name.service
install -pDm755 %SOURCE2 %buildroot%_initdir/%name

%post_service %name
# Hack for powertop not to show warnings on first start
touch %cachedir/saved_{parameters,results}.powertop

%preun_service %name

%files -f %name.lang
%dir %cachedir
%ghost %cachedir/saved_*.powertop


Todas as alterações você pod ver aqui

projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009