2021-06-28 10:57:50 +08:00
|
|
|
Name: nmon
|
2022-03-17 20:08:50 +08:00
|
|
|
Version: 16n
|
2021-06-28 10:57:50 +08:00
|
|
|
Release: 1
|
|
|
|
|
Summary: Nigel's performance Monitor for Linux
|
|
|
|
|
|
|
|
|
|
License: GPLv3
|
|
|
|
|
URL: http://nmon.sourceforge.net
|
|
|
|
|
Source0: https://sourceforge.net/projects/%{name}/files/lmon%{version}.c
|
|
|
|
|
Source1: https://sourceforge.net/projects/%{name}/files/Documentation.txt
|
|
|
|
|
# Manpage available from the patch archive:
|
|
|
|
|
# http://sourceforge.net/tracker/?func=detail&aid=2833213&group_id=271307&atid=1153693
|
|
|
|
|
Source2: %{name}.1
|
|
|
|
|
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: ncurses-devel
|
|
|
|
|
|
|
|
|
|
|
2020-08-10 15:39:50 +08:00
|
|
|
%description
|
2021-06-28 10:57:50 +08:00
|
|
|
nmon is a systems administrator, tuner, benchmark tool, which provides
|
2020-08-10 15:39:50 +08:00
|
|
|
information about CPU, disks, network, etc., all in one view.
|
|
|
|
|
|
2021-06-28 10:57:50 +08:00
|
|
|
|
2020-08-10 15:39:50 +08:00
|
|
|
%prep
|
|
|
|
|
%setup -T -c -n %{name}
|
|
|
|
|
sed -e "s/\r//" %{SOURCE1} > Documentation.txt
|
|
|
|
|
touch -c -r %{SOURCE1} Documentation.txt
|
|
|
|
|
cp %{SOURCE0} .
|
|
|
|
|
|
2021-06-28 10:57:50 +08:00
|
|
|
|
2020-08-10 15:39:50 +08:00
|
|
|
%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
|
|
|
|
|
|
2021-06-28 10:57:50 +08:00
|
|
|
|
2020-08-10 15:39:50 +08:00
|
|
|
%install
|
|
|
|
|
install -D -p -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
|
|
|
|
|
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1
|
|
|
|
|
|
2021-06-28 10:57:50 +08:00
|
|
|
|
2020-08-10 15:39:50 +08:00
|
|
|
%files
|
2021-06-28 10:57:50 +08:00
|
|
|
%doc Documentation.txt
|
2020-08-10 15:39:50 +08:00
|
|
|
%{_mandir}/man1/%{name}.1.*
|
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
|
2021-06-28 10:57:50 +08:00
|
|
|
|
2020-08-10 15:39:50 +08:00
|
|
|
%changelog
|
2022-03-17 20:08:50 +08:00
|
|
|
* Thu Mar 17 2022 wangkai <wangkai385@huawei.com> - 16n-1
|
|
|
|
|
- Update to 16n
|
|
|
|
|
|
|
|
|
|
* Mon Jun 28 2021 chenjian <chenjian@kylinos.cn> - 16m-1
|
2021-06-28 10:57:50 +08:00
|
|
|
- Update to 16m-1
|
|
|
|
|
|
2020-08-10 15:39:50 +08:00
|
|
|
* Mon Aug 3 2020 Jeffery.Gao <gaojianxing@huawei.com> - 16g-1
|
|
|
|
|
- Package init
|