rpms/powertop/devel powertop-1.0-makefile-fixes.patch, NONE, 1.1 powertop.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Adam Jackson (ajax)
fedora-extras-commits at redhat.com
Mon May 14 01:32:02 UTC 2007
Author: ajax
Update of /cvs/pkgs/rpms/powertop/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26461/devel
Modified Files:
.cvsignore sources
Added Files:
powertop-1.0-makefile-fixes.patch powertop.spec
Log Message:
Initial import.
powertop-1.0-makefile-fixes.patch:
--- NEW FILE powertop-1.0-makefile-fixes.patch ---
--- 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
+
--- NEW FILE powertop.spec ---
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 at redhat.com> 1.0-1
- Initial revision.
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/powertop/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 13 May 2007 00:54:56 -0000 1.1
+++ .cvsignore 14 May 2007 01:31:27 -0000 1.2
@@ -0,0 +1 @@
+powertop-1.0.tar.gz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/powertop/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 13 May 2007 00:54:56 -0000 1.1
+++ sources 14 May 2007 01:31:27 -0000 1.2
@@ -0,0 +1 @@
+c2f64f27cc3f6cb90fa40c2c40c025e5 powertop-1.0.tar.gz
More information about the fedora-extras-commits
mailing list