Name: nmon Version: 16m Release: 1%{?dist} Summary: Nigel's performance Monitor for Linux License: GPLv3 URL: http://nmon.sourceforge.net Source0: https://sourceforge.net/projects/%{name}/files/lmon%{version}.c BuildRequires: gcc BuildRequires: ncurses-devel %description nmon is a systems administrator, tuner, benchmark tool, which provides information about CPU, disks, network, etc., all in one view. %prep %setup -T -c -n %{name} cp %{SOURCE0} . %build %ifarch ppc %{power64} %{__cc} %{optflags} -D JFS -D GETUSER \ -D LARGEMEM -lncurses -lm lmon%{version}.c -D POWER -o %{name} %else %{__cc} %{optflags} -D JFS -D GETUSER \ -D LARGEMEM -D X86 -lncurses -lm lmon%{version}.c -o %{name} %endif %install install -D -p -m 0755 %{name} %{buildroot}%{_bindir}/%{name} %files %{_bindir}/%{name}