- powertop 1.1.
This commit is contained in:
parent
f17459996b
commit
a6d211a726
@ -1 +1 @@
|
||||
powertop-1.0.tar.gz
|
||||
powertop-1.1.tar.gz
|
||||
|
||||
@ -1,21 +0,0 @@
|
||||
--- 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
|
||||
+
|
||||
21
powertop-1.1-build-fixes.patch
Normal file
21
powertop-1.1-build-fixes.patch
Normal file
@ -0,0 +1,21 @@
|
||||
--- powertop/Makefile.build-fixes 2007-05-13 13:22:08.000000000 -0400
|
||||
+++ powertop/Makefile 2007-05-13 21:26:01.000000000 -0400
|
||||
@@ -1,13 +1,14 @@
|
||||
BINDIR=/usr/bin
|
||||
|
||||
-WARNFLAGS=-Wall
|
||||
-CFLAGS=-O2 -g ${WARNFLAGS}
|
||||
+WARNFLAGS = -Wall
|
||||
+CFLAGS ?= -O2 -g ${WARNFLAGS}
|
||||
powertop: powertop.c config.c process.c Makefile powertop.h
|
||||
gcc ${CFLAGS} powertop.c config.c process.c -o powertop
|
||||
|
||||
install: powertop
|
||||
+ mkdir -p ${DESTDIR}${BINDIR}
|
||||
cp powertop ${DESTDIR}${BINDIR}
|
||||
|
||||
clean:
|
||||
rm -f *~ powertop
|
||||
-
|
||||
\ No newline at end of file
|
||||
+
|
||||
@ -1,5 +1,5 @@
|
||||
Name: powertop
|
||||
Version: 1.0
|
||||
Version: 1.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Power consumption monitor
|
||||
|
||||
@ -9,7 +9,7 @@ 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
|
||||
Patch0: powertop-1.1-build-fixes.patch
|
||||
|
||||
#BuildRequires:
|
||||
#Requires:
|
||||
@ -35,9 +35,12 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING
|
||||
%doc COPYING README
|
||||
%{_bindir}/powertop
|
||||
|
||||
%changelog
|
||||
* Sun May 13 2007 Adam Jackson <ajax@redhat.com> 1.1-1
|
||||
- powertop 1.1.
|
||||
|
||||
* Fri May 11 2007 Adam Jackson <ajax@redhat.com> 1.0-1
|
||||
- Initial revision.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user