File powertop.spec of Package powertop

#
# spec file for package powertop (Version 1.13)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           powertop
Url:            http://www.linuxpowertop.org
Summary:        A Linux Tool to Find out What is Using Power on a Laptop
Version:        1.13
Release:        1
License:        GPLv2+
Group:          System/Monitoring
Source0:        %{name}-%{version}.tar.bz2
Patch0:         powertop_fix_sizof_link.patch
Patch1:         powertop_set_cflags_override.patch
BuildRequires:  ncurses-devel
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
%setup
%patch0 -p1
%patch1 -p1

%build
make CFLAGS="$RPM_OPT_FLAGS"

%install
mkdir -p %{buildroot}/%{_bindir}
make install DESTDIR=%{buildroot}
%find_lang %{name}

%clean
rm -rf %{_buildroot}

%files  -f %{name}.lang
%defattr(-,root,root)
%doc COPYING
%{_bindir}/%{name}
%{_mandir}/man*/%{name}.8.gz

%changelog
openSUSE Build Service is sponsored by