This commit is contained in:
68
powertop.spec
Normal file
68
powertop.spec
Normal file
@@ -0,0 +1,68 @@
|
||||
#
|
||||
# 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
|
Reference in New Issue
Block a user