SHA256
1
0
forked from pool/powertop
powertop/powertop.spec
OBS User autobuild 88cda16d3b Accepting request 39708 from Base:System
Copy from Base:System/powertop based on submit request 39708 from user seife

OBS-URL: https://build.opensuse.org/request/show/39708
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powertop?expand=0&rev=16
2010-05-13 22:47:35 +00:00

68 lines
1.8 KiB
RPMSpec

#
# spec file for package powertop (Version 1.11)
#
# 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: PowerTOP is a Linux Tool to Find out What is Using Power on a Laptop
Version: 1.11
Release: 3
License: GPLv2+
Group: System/Monitoring
Source0: %{name}-%{version}.tar.gz
Patch0: powertop-segfault.diff
Patch1: powertop-1.11-svn_r332.diff
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
%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