Name: powertop Version: 1.0 Release: 1%{?dist} Summary: Power consumption monitor Group: Applications/System License: GPL URL: http://www.linuxpowertop.org/ Source0: http://www.linuxpowertop.org/download/%{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Patch0: powertop-1.0-makefile-fixes.patch #BuildRequires: #Requires: %description PowerTOP is a tool that finds the software component(s) that make your computer use more power than necessary while it is idle. %prep %setup -q -n %{name} %patch -p1 -b .build-fixes %build export CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING %{_bindir}/powertop %changelog * Fri May 11 2007 Adam Jackson 1.0-1 - Initial revision.