update to 16m-1

This commit is contained in:
chenjian 2021-06-28 10:57:50 +08:00
parent 300687e71d
commit 79481346be
2 changed files with 279 additions and 282 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,23 +1,32 @@
Name: nmon Name: nmon
Version: 16g Version: 16m
Release: 1 Release: 1
Summary: Nigel's performance Monitor for Linux Summary: Nigel's performance Monitor for Linux
License: GPLv3 License: GPLv3
URL: http://nmon.sourceforge.net URL: http://nmon.sourceforge.net
Source0: https://sourceforge.net/projects/nmon/files/lmon%{version}.c Source0: https://sourceforge.net/projects/%{name}/files/lmon%{version}.c
Source1: https://sourceforge.net/projects/nmon/files/Documentation.txt Source1: https://sourceforge.net/projects/%{name}/files/Documentation.txt
Source2: nmon.1 # Manpage available from the patch archive:
BuildRequires: gcc ncurses-devel # http://sourceforge.net/tracker/?func=detail&aid=2833213&group_id=271307&atid=1153693
Source2: %{name}.1
BuildRequires: gcc
BuildRequires: ncurses-devel
%description %description
nmon is a systems administrator, tuner, benchmark tool, which provides nmon is a systems administrator, tuner, benchmark tool, which provides
information about CPU, disks, network, etc., all in one view. information about CPU, disks, network, etc., all in one view.
%prep %prep
%setup -T -c -n %{name} %setup -T -c -n %{name}
sed -e "s/\r//" %{SOURCE1} > Documentation.txt sed -e "s/\r//" %{SOURCE1} > Documentation.txt
touch -c -r %{SOURCE1} Documentation.txt touch -c -r %{SOURCE1} Documentation.txt
cp %{SOURCE0} . cp %{SOURCE0} .
%build %build
%ifarch ppc %{power64} %ifarch ppc %{power64}
%{__cc} %{optflags} -D JFS -D GETUSER \ %{__cc} %{optflags} -D JFS -D GETUSER \
@ -27,15 +36,21 @@ cp %{SOURCE0} .
-D LARGEMEM -D X86 -lncurses -lm lmon%{version}.c -o %{name} -D LARGEMEM -D X86 -lncurses -lm lmon%{version}.c -o %{name}
%endif %endif
%install %install
install -D -p -m 0755 %{name} %{buildroot}%{_bindir}/%{name} install -D -p -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1 install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1
%files %files
%doc Documentation.txt %doc Documentation.txt
%{_mandir}/man1/%{name}.1.* %{_mandir}/man1/%{name}.1.*
%{_bindir}/%{name} %{_bindir}/%{name}
%changelog %changelog
* Mon 28 Jun 2021 chenjian <chenjian@kylinos.cn> - 16m-1
- Update to 16m-1
* Mon Aug 3 2020 Jeffery.Gao <gaojianxing@huawei.com> - 16g-1 * Mon Aug 3 2020 Jeffery.Gao <gaojianxing@huawei.com> - 16g-1
- Package init - Package init