packages: nmon/nmon.spec - use minimal makefile

sparky sparky at pld-linux.org
Thu Nov 26 20:40:28 CET 2009


Author: sparky                       Date: Thu Nov 26 19:40:28 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- use minimal makefile

---- Files affected:
packages/nmon:
   nmon.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: packages/nmon/nmon.spec
diff -u packages/nmon/nmon.spec:1.5 packages/nmon/nmon.spec:1.6
--- packages/nmon/nmon.spec:1.5	Thu Nov 26 19:20:54 2009
+++ packages/nmon/nmon.spec	Thu Nov 26 20:40:23 2009
@@ -1,8 +1,4 @@
 # $Revision$, $Date$
-# $Id$
-# Authority: dag
-# Upstream: Nigel Griffiths <nag$uk,ibm,com>
-
 Summary:	Performance analysis tool
 Name:		nmon
 Version:	12f
@@ -11,7 +7,7 @@
 Group:		Applications/System
 URL:		http://nmon.sourceforge.net/pmwiki.php
 BuildRequires:	ncurses-devel
-Source0:	http://downloads.sourceforge.net/project/nmon/lmon12f.c
+Source0:	http://downloads.sourceforge.net/project/nmon/lmon%{version}.c
 # Source0-md5:	36da7485cc16dccbd6f840359c76ad83
 Source1:	http://downloads.sourceforge.net/project/nmon/Documentation.txt
 # Source1-md5:	dbb13658cf55d687c4f2ff771a696d4a
@@ -25,12 +21,20 @@
 
 %prep
 %setup -q -T -c
-cp -f %{SOURCE0} .
-cp -f %{SOURCE1} .
+install %{SOURCE0} nmon.c
+install %{SOURCE1} .
+
+cat <<'EOF' > Makefile
+nmon: nmon.o
+	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
+EOF
 
 %build
-#%{__cc} %{rpmcflags} %{rpmldflags} -I/usr/include -I/usr/include/ncurses -o nmon lmon*.c -D JFS -D GETUSER -D LARGEMEM
-%{__cc} -g -O2 -D JFS -D GETUSER -Wall -D LARGEMEM -I/usr/include/ncurses -lncurses -g -o nmon lmon*.c
+%{__make} nmon \
+	CC="%{__cc}" \
+	CFLAGS="%{rpmcflags} -Wall -I/usr/include/ncurses -D JFS -D GETUSER -D LARGEMEM" \
+	LDFLAGS="%{rpmldflags}" \
+	LIBS="-lncurses"
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -50,6 +54,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2009/11/26 19:40:23  sparky
+- use minimal makefile
+
 Revision 1.5  2009/11/26 18:20:54  blekot
 - added pawelz comments about this spec
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nmon/nmon.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list