forked from pool/powertop
bf1348ce44
Copy from Base:System/powertop based on submit request 31834 from user oertel OBS-URL: https://build.opensuse.org/request/show/31834 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/powertop?expand=0&rev=14
66 lines
1.7 KiB
RPMSpec
66 lines
1.7 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: 2
|
|
License: GPLv2+
|
|
Group: System/Monitoring
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Patch0: powertop-segfault.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
|
|
|
|
%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}.1.gz
|
|
|
|
%changelog
|