2007-05-16 04:41:40 +02:00
|
|
|
#
|
2007-05-26 10:57:42 +02:00
|
|
|
# spec file for package powertop (Version 1.4)
|
2007-05-16 04:41:40 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
# This file and all modifications and additions to the pristine
|
|
|
|
# package are under the same license as the package itself.
|
|
|
|
#
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
|
|
|
Name: powertop
|
|
|
|
URL: http://www.linuxpowertop.org
|
|
|
|
Summary: PowerTOP is a Linux tool to find out what is using power on a laptop
|
2007-05-26 10:57:42 +02:00
|
|
|
Version: 1.4
|
2007-05-17 11:52:51 +02:00
|
|
|
Release: 1
|
2007-05-16 04:41:40 +02:00
|
|
|
License: GNU General Public License (GPL)
|
|
|
|
Group: System/Monitoring
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
2007-05-26 10:57:42 +02:00
|
|
|
BuildRequires: ncurses-devel
|
2007-05-16 04:41:40 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Autoreqprov: on
|
|
|
|
|
|
|
|
%description
|
|
|
|
PowerTOP is a program that collects the various pieces of information
|
|
|
|
from your system and presents an overview of how well your laptop is
|
|
|
|
doing in terms of power savings.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Arjan van de Ven <arjan@linux.intel.com>
|
|
|
|
|
|
|
|
%prep
|
2007-05-17 11:52:51 +02:00
|
|
|
%setup
|
2007-05-16 04:41:40 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" make
|
2007-05-26 10:57:42 +02:00
|
|
|
strip %{name}
|
2007-05-16 04:41:40 +02:00
|
|
|
|
|
|
|
%install
|
2007-05-17 11:52:51 +02:00
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
|
|
make install DESTDIR=%{buildroot}
|
2007-05-26 10:57:42 +02:00
|
|
|
%find_lang %{name}
|
2007-05-16 04:41:40 +02:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{_buildroot}
|
|
|
|
|
2007-05-26 10:57:42 +02:00
|
|
|
%files -f %{name}.lang
|
2007-05-16 04:41:40 +02:00
|
|
|
%defattr(-,root,root)
|
2007-05-17 11:52:51 +02:00
|
|
|
%doc COPYING
|
|
|
|
%{_bindir}/%{name}
|
2007-05-26 10:57:42 +02:00
|
|
|
%{_mandir}/man*/%{name}.1.gz
|
2007-05-16 04:41:40 +02:00
|
|
|
|
|
|
|
%changelog
|
2007-05-26 10:57:42 +02:00
|
|
|
* Sat May 26 2007 - thoenig@suse.de
|
|
|
|
- Update to PowerTOP 1.4
|
|
|
|
- Strip binary
|
|
|
|
- Add man page and localisation for powertop
|
|
|
|
- Changes:
|
|
|
|
* use gettext to allow translation
|
|
|
|
(with lots of thanks to the various translators, especially
|
|
|
|
to Benjamin Pineau who showed me how to use gettext tools)
|
|
|
|
* fix bluethooth-checks-cause-autload-of-bluetooth bug
|
|
|
|
* use ncurses (Sebastian Kuzminsky)
|
|
|
|
* rotate through the suggestions randomly, so that all of them
|
|
|
|
will show over time
|
|
|
|
* Fix the CONFIG_SND_AC97_POWER_SAVE check to only report on ac97
|
|
|
|
hw
|
|
|
|
* report "hidden but suprious" timer ticks (due to missing hpet
|
|
|
|
or lack of NO_HZ)
|
|
|
|
* check for HPET being present; if not suggest user to toggle in
|
|
|
|
BIOS or apply the patch
|
|
|
|
* Some suggestions have become "active", you can press a key to
|
|
|
|
tune it right away.
|
|
|
|
* Add active suggestion to enable AC97 powersave mode at runtime
|
|
|
|
* Add active suggestion to enable wireless powersave mode at
|
|
|
|
runtime
|
|
|
|
* Add active suggestion to enable ondemand
|
2007-05-22 15:11:57 +02:00
|
|
|
* Tue May 22 2007 - thoenig@suse.de
|
|
|
|
- Update to PowerTOP 1.3
|
|
|
|
- Remove patch powertop-fix-compiler-warnings-thoenig-02.patch:
|
|
|
|
merged upstream
|
|
|
|
- Changes:
|
|
|
|
* Add suggestion for CONFIG_SND_AC97_POWER_SAVE
|
|
|
|
* Fix inefficient code for readdir (Vince Pinter)
|
|
|
|
* Highlight the worst offenders in bold (Vince Pinter)
|
|
|
|
* Fix crash when running on 2.4 kernels (Harald Fernengel)
|
|
|
|
* Check fgets() return values (Timom Hoenig @ SuSE)
|
|
|
|
* add suggestion to enable laptop mode (when disabled)
|
|
|
|
* add suggestion to disable bluetooth when unused
|
2007-05-17 11:52:51 +02:00
|
|
|
* Tue May 15 2007 - thoenig@suse.de
|
|
|
|
- Update to PowerTOP 1.2 (skipped 1.1)
|
|
|
|
- Fix battery code to work with both, mA and mW
|
|
|
|
- Clean up spec file
|
|
|
|
- Update patch powertop-fix-compiler-warnings-thoenig-02.patch
|
|
|
|
- Drop patch powertop-respect-rpm-opt-flags-thoenig-01.patch
|
2007-05-16 04:41:40 +02:00
|
|
|
* Sun May 13 2007 - thoenig@suse.de
|
|
|
|
- Add patch powertop-fix-compiler-warnings-thoenig-01.patch: Make
|
|
|
|
compiler warnings about unsued parameters and return values not
|
|
|
|
being repected go away.
|
|
|
|
- Fix whitespaces for %%description
|
|
|
|
* Sun May 13 2007 - thoenig@suse.de
|
|
|
|
- Initial package submission (PowerTOP 1.0)
|
|
|
|
- Add patch powertop-respect-rpm-opt-flags-thoenig-01.patch: Fix
|
|
|
|
Makefile to respect RPM_OPT_FLAGS
|