forked from pool/powertop
69 lines
1.8 KiB
RPMSpec
69 lines
1.8 KiB
RPMSpec
|
#
|
||
|
# spec file for package powertop (Version 1.0)
|
||
|
#
|
||
|
# 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
|
||
|
Version: 1.0
|
||
|
Release: 2
|
||
|
License: GNU General Public License (GPL)
|
||
|
Group: System/Monitoring
|
||
|
Source0: %{name}-%{version}.tar.gz
|
||
|
Patch0: %{name}-respect-rpm-opt-flags-thoenig-01.patch
|
||
|
Patch1: %{name}-fix-compiler-warnings-thoenig-01.patch
|
||
|
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
|
||
|
cp %{S:0} .
|
||
|
tar xfvz %{name}-%{version}.tar.gz
|
||
|
%patch0 -p0
|
||
|
%patch1 -p0
|
||
|
|
||
|
%build
|
||
|
cd %{name}
|
||
|
CFLAGS="$RPM_OPT_FLAGS" make
|
||
|
|
||
|
%install
|
||
|
mkdir -p %{buildroot}/%{_sbindir}
|
||
|
install -Dm 755 %{name}/%{name} %{buildroot}/%{_sbindir}/%{name}
|
||
|
|
||
|
%clean
|
||
|
rm -rf %{_buildroot}
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%doc %{name}/COPYING
|
||
|
%{_sbindir}/%{name}
|
||
|
|
||
|
%changelog
|
||
|
* 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
|