rpms/gkrellm-top/F-7 gkrellm-top.spec, NONE, 1.1 gkrelltop-2.2.10-optflags.patch, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Robert Scheck (robert) fedora-extras-commits at redhat.com
Wed Dec 12 23:03:41 UTC 2007


Author: robert

Update of /cvs/pkgs/rpms/gkrellm-top/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv31444/F-7

Modified Files:
	.cvsignore sources 
Added Files:
	gkrellm-top.spec gkrelltop-2.2.10-optflags.patch 
Log Message:
- Upgrade to 2.2.10
- Initial spec file for Fedora and Red Hat Enterprise Linux



--- NEW FILE gkrellm-top.spec ---
%define gkplugindir %{_libdir}/gkrellm2/plugins

Summary:	GKrellM plugin which shows 3 most CPU intensive processes
Name:		gkrellm-top
Version:	2.2.10
Release:	1%{?dist}
License:	GPL+
Group:		Applications/System
URL:		http://gkrelltop.sourceforge.net/
Source:		http://downloads.sf.net/gkrelltop/gkrelltop_%{version}.orig.tar.gz
Patch:		gkrelltop-2.2.10-optflags.patch
Requires:	gkrellm >= 2.2.0
BuildRequires:	gkrellm-devel >= 2.2.0
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
A GKrellM plugin which displays the top three CPU intensive processes in a
small window inside GKrellM, similar to wmtop. Useful to check out anytime
what processes are consuming most CPU power on your machine.

%prep
%setup -q -n gkrelltop-%{version}.orig
%patch -p1 -b .optflags

%build
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
install -D -m 755 gkrelltop.so $RPM_BUILD_ROOT%{gkplugindir}/gkrelltop.so
install -D -m 755 gkrelltopd.so $RPM_BUILD_ROOT%{gkplugindir}/gkrelltopd.so

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%{gkplugindir}/gkrelltop.so
%{gkplugindir}/gkrelltopd.so

%changelog
* Wed Dec 12 2007 Robert Scheck <robert at fedoraproject.org> 2.2.10-1
- Upgrade to 2.2.10
- Initial spec file for Fedora and Red Hat Enterprise Linux

gkrelltop-2.2.10-optflags.patch:

--- NEW FILE gkrelltop-2.2.10-optflags.patch ---
Patch by Robert Scheck <robert at fedoraproject.org> for gkrelltop >= 2.2.10, which
adds the missing $RPM_OPT_FLAGS to the Makefile for proper building results.

--- gkrelltop-2.2.10.orig/Makefile		2007-07-21 06:52:00.000000000 +0200
+++ gkrelltop-2.2.10.orig/Makefile.optflags	2007-12-11 11:58:57.000000000 +0100
@@ -43,14 +43,14 @@
 
 ifeq ($(GKRELL1FLAG),0)
 # Parameters for gkrellm version 2.*
-CFLAGS2 = -D$(OSFLAG) -DGKRELLM2 -fPIC -Wall `pkg-config gtk+-2.0 --cflags`
+CFLAGS2 = -D$(OSFLAG) -DGKRELLM2 -fPIC -Wall `pkg-config gtk+-2.0 --cflags` $(RPM_OPT_FLAGS)
 LIBS =  
 CC=/usr/bin/gcc $(CFLAGS2)
 
 else 
 # Parameters for gkrellm version 1.*
 CC=/usr/bin/cc
-CFLAGS = -D$(OSFLAG) -Wall -fPIC `gtk-config --cflags` `imlib-config --cflags-gdk` 
+CFLAGS = -D$(OSFLAG) -Wall -fPIC `gtk-config --cflags` `imlib-config --cflags-gdk` $(RPM_OPT_FLAGS)
 LIBS=
 
 endif
@@ -65,11 +65,11 @@
 endif
 
 ifeq ($(WANT_GLIB12),yes)
-CFLAGSD = -I/usr/X11R6/include -D$(OSFLAG) -fPIC -Wall `glib-config --cflags`
+CFLAGSD = -I/usr/X11R6/include -D$(OSFLAG) -fPIC -Wall `glib-config --cflags` $(RPM_OPT_FLAGS)
 LIBSD = `glib-config --libs`
 CONFIGURE_ARGS += --with-glib12
 else
-CFLAGSD = -D$(OSFLAG) -fPIC -Wall `pkg-config glib-2.0 --cflags`
+CFLAGSD = -D$(OSFLAG) -fPIC -Wall `pkg-config glib-2.0 --cflags` $(RPM_OPT_FLAGS)
 LIBSD = `pkg-config glib-2.0 --libs`
 endif
 INSTALLDIRD ?= $(PREFIXD)/$(DESTDIR)


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/gkrellm-top/F-7/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	12 Dec 2007 19:37:29 -0000	1.1
+++ .cvsignore	12 Dec 2007 23:03:07 -0000	1.2
@@ -0,0 +1 @@
+gkrelltop_2.2.10.orig.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/gkrellm-top/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	12 Dec 2007 19:37:29 -0000	1.1
+++ sources	12 Dec 2007 23:03:07 -0000	1.2
@@ -0,0 +1 @@
+9699f4068a63202643b15a75232e69d8  gkrelltop_2.2.10.orig.tar.gz




More information about the fedora-extras-commits mailing list