packages: nmon/nmon.spec - builds - build section should be pldized (TODO, ...

blekot blekot at pld-linux.org
Thu Nov 26 19:12:40 CET 2009


Author: blekot                       Date: Thu Nov 26 18:12:40 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- builds
- build section should be pldized (TODO, help)

---- Files affected:
packages/nmon:
   nmon.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/nmon/nmon.spec
diff -u packages/nmon/nmon.spec:1.3 packages/nmon/nmon.spec:1.4
--- packages/nmon/nmon.spec:1.3	Thu Nov 26 18:39:51 2009
+++ packages/nmon/nmon.spec	Thu Nov 26 19:12:35 2009
@@ -25,33 +25,24 @@
 analyzing performance data.
 
 %prep
-%setup -q -c -a1 -a2
+%setup -q -T -c
+cp -f %{SOURCE0} .
+cp -f %{SOURCE2} .
 
 %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
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%ifarch i386
-%{?fc5:%{__install} -Dp -m0755 nmon_x86_fedora5 $RPM_BUILD_ROOT%{_bindir}/nmon}
-%{?el4:%{__install} -Dp -m0755 nmon_x86_rhel4 $RPM_BUILD_ROOT%{_bindir}/nmon}
-%{?el3:%{__install} -Dp -m0755 nmon_x86_rhel3 $RPM_BUILD_ROOT%{_bindir}/nmon}
-%{?el2:%{__install} -Dp -m0755 nmon_x86_rhel2 $RPM_BUILD_ROOT%{_bindir}/nmon}
-%{?rh9:%{__install} -Dp -m0755 nmon_x86_redhat9 $RPM_BUILD_ROOT%{_bindir}/nmon}
-%endif
-%ifarch x86_64
-%{?fc6:%{__install} -Dp -m0755 nmon_x86_64_fedora6 $RPM_BUILD_ROOT%{_bindir}/nmon}
-%{?el4:%{__install} -Dp -m0755 nmon_x86_64_rhel4u4 $RPM_BUILD_ROOT%{_bindir}/nmon}
-%endif
-%ifarch ppc ppc64
-%{?el4:%{__install} -Dp -m0755 nmon_power_rhel4 $RPM_BUILD_ROOT%{_bindir}/nmon}
-%{?el3:%{__install} -Dp -m0755 nmon_power_rhel3 $RPM_BUILD_ROOT%{_bindir}/nmon}
-%endif
+install -D nmon $RPM_BUILD_ROOT%{_bindir}/nmon
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%docdir Documentation.txt
 %attr(755,root,root) %{_bindir}/nmon
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -60,6 +51,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2009/11/26 18:12:35  blekot
+- builds
+- build section should be pldized (TODO, help)
+
 Revision 1.3  2009/11/26 17:39:51  blekot
 - proper source links
 - md5 sums
================================================================

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



More information about the pld-cvs-commit mailing list