[packages/nmon] Up to 16p

arekm arekm at pld-linux.org
Sat Mar 14 23:00:40 CET 2026


commit 0b2726796dc62386768de0c761e6c15a2b08efa6
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Mar 14 23:00:17 2026 +0100

    Up to 16p

 nmon.spec | 44 +++++++++++++++++++-------------------------
 1 file changed, 19 insertions(+), 25 deletions(-)
---
diff --git a/nmon.spec b/nmon.spec
index b5af27f..3c3d49a 100644
--- a/nmon.spec
+++ b/nmon.spec
@@ -1,16 +1,15 @@
 Summary:	Performance analysis tool
 Summary(pl.UTF-8):	Narzędzie do analizowania wydajności
 Name:		nmon
-Version:	14g
-Release:	3
-License:	GPL
+Version:	16p
+Release:	1
+License:	GPL v3+
 Group:		Applications/System
-URL:		http://nmon.sourceforge.net/pmwiki.php
+URL:		https://nmon.sourceforge.io/
+BuildRequires:	gcc
 BuildRequires:	ncurses-devel
-Source0:	http://dl.sourceforge.net/project/nmon/lmon%{version}.c
-# Source0-md5:	e537f51446fb375140368b115dc8278b
-Source1:	http://dl.sourceforge.net/project/nmon/Documentation.txt
-# Source1-md5:	dbb13658cf55d687c4f2ff771a696d4a
+Source0:	https://downloads.sourceforge.net/project/nmon/lmon%{version}.c
+# Source0-md5:	a294567253cd49ccad66d5f56435ba9d
 ExclusiveArch:	%{ix86} %{x8664} ppc ppc64
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -28,24 +27,20 @@ http://www.ibm.com/developerworks/wikis/display/WikiPtype/nmonanalyser
 
 %prep
 %setup -qcT
-install %{SOURCE0} nmon.c
-install %{SOURCE1} .
-
-cat <<'EOF' > Makefile
-LIBS := -lncurses -ltinfo
-OPTFLAGS := -O2
-CFLAGS := -Wall -I/usr/include/ncurses -D JFS -D GETUSER -D LARGEMEM -D KERNEL_2_6_18 $(OPTFLAGS)
-LDFLAGS := -l/libtinfo.so.5
-
-nmon: nmon.o
-	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS)
-EOF
+install %{SOURCE0} lmon%{version}.c
 
 %build
-%{__make} nmon \
-	CC="%{__cc}" \
-	OPTFLAGS="%{rpmcflags}" \
-	LDFLAGS="%{rpmldflags}"
+%ifarch %{ix86} %{x8664}
+archdef=X86
+%else
+archdef=POWER
+%endif
+%{__cc} %{rpmcflags} \
+	-Wall -I/usr/include/ncurses \
+	-D JFS -D GETUSER -D LARGEMEM -D KERNEL_2_6_18 -D ${archdef} \
+	lmon%{version}.c \
+	-o nmon \
+	%{rpmldflags} -lncurses -ltinfo -lm
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -56,5 +51,4 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc Documentation.txt
 %attr(755,root,root) %{_bindir}/nmon
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nmon.git/commitdiff/0b2726796dc62386768de0c761e6c15a2b08efa6



More information about the pld-cvs-commit mailing list