File nmon.spec of Package nmon

# spec file for package nmon
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011-2013 Pascal Bleser <>
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

Name:           nmon
Version:        16m
Release:        0
Summary:        Performance Monitor
License:        GPL-3.0-only
BuildRequires:  ncurses-devel
Provides:       lmon = %{version}

This systems administrator, tuner, benchmark tool gives you a huge amount of
important performance information in one go. It can output the data in two ways

1. On screen (console, telnet, VNC, putty or X Windows) using curses for low
   CPU impact which is updated once every two seconds. You hit single characters
   on you keyboard to enable/disable the various sorts of data.
   * You can display the CPU, memory, network, disks (mini graphs or numbers),
     file systems, NFS, top processes, resources (Linux version & processors)
     and on Power micro-partition information.
2. Save the data to a comma separated file for analysis and longer term data
   * Use this together with nmon Analyser Excel 2000 spreadsheet, which loads
     the nmon output file and automatically creates dozens of graphs ready for
     you to study or write performance reports.
   * Filter this data, add it to a rrd database (using an excellent freely
     available utility called rrdtool). This graphs the data to .gif or .png
     files plus generates the webpage .html file and you can then put the
     graphs directly on a website automatically on AIX with no need of a
     Windows based machine.
   * Directly put the data into a rrd database or other database for your own

%setup -q -T -c %{name}-%{version}

export CFLAGS="%{optflags} \
  -fPIE \
  -D JFS \
  -D KERNEL_2_6_18 \
  %if 0%{?is_opensuse}
  -Wno-unused \
  -D SLES12 -Wno-unused \
export LDFLAGS="-o nmon \
  -lncurses \
  -lm \
  -Wl,--as-needed \
  -Wl,--no-undefined \
  -Wl,-z,relro,-z,now \
%ifarch ppc ppc64 ppc64le
%ifarch s390x
%ifarch %{arm} aarch64
%ifarch %{ix86} x86_64
cc $CFLAGS -D X86 \

install -Dpm 0755 nmon \
ln -s nmon %{buildroot}%{_bindir}/lmon

%license LICENSE.GPL-3.0

openSUSE Build Service is sponsored by