42 lines
1.3 KiB
RPMSpec
42 lines
1.3 KiB
RPMSpec
|
|
Name: nmon
|
||
|
|
Version: 16g
|
||
|
|
Release: 1
|
||
|
|
Summary: Nigel's performance Monitor for Linux
|
||
|
|
License: GPLv3
|
||
|
|
URL: http://nmon.sourceforge.net
|
||
|
|
Source0: https://sourceforge.net/projects/nmon/files/lmon%{version}.c
|
||
|
|
Source1: https://sourceforge.net/projects/nmon/files/Documentation.txt
|
||
|
|
Source2: nmon.1
|
||
|
|
BuildRequires: gcc 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}
|
||
|
|
sed -e "s/\r//" %{SOURCE1} > Documentation.txt
|
||
|
|
touch -c -r %{SOURCE1} Documentation.txt
|
||
|
|
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}
|
||
|
|
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc Documentation.txt
|
||
|
|
%{_mandir}/man1/%{name}.1.*
|
||
|
|
%{_bindir}/%{name}
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Aug 3 2020 Jeffery.Gao <gaojianxing@huawei.com> - 16g-1
|
||
|
|
- Package init
|