Initial import.

This commit is contained in:
Adam Jackson 2007-05-14 01:31:27 +00:00
parent d3580111c9
commit f17459996b
4 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1 @@
powertop-1.0.tar.gz

View File

@ -0,0 +1,21 @@
--- powertop/Makefile.destdir 2007-05-11 15:27:34.000000000 -0400
+++ powertop/Makefile 2007-05-11 20:04:46.000000000 -0400
@@ -1,11 +1,14 @@
BINDIR=/usr/bin
+CFLAGS ?= -Wall -W -O1 -g
+
powertop: powertop.c config.c Makefile
- gcc -Wall -W -O1 -g powertop.c config.c -o powertop
+ gcc $(CFLAGS) powertop.c config.c -o powertop
install: powertop
- cp powertop ${BINDIR}
+ mkdir -p ${DESTDIR}${BINDIR}
+ cp powertop ${DESTDIR}${BINDIR}
clean:
rm -f *~ powertop
-
\ No newline at end of file
+

43
powertop.spec Normal file
View File

@ -0,0 +1,43 @@
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 <ajax@redhat.com> 1.0-1
- Initial revision.

View File

@ -0,0 +1 @@
c2f64f27cc3f6cb90fa40c2c40c025e5 powertop-1.0.tar.gz