]>
Commit | Line | Data |
---|---|---|
ebd38433 | 1 | Summary: Performance analysis tool |
2 | Name: nmon | |
3 | Version: 12f | |
3dd7e2e9 | 4 | Release: 1 |
ebd38433 | 5 | License: GPL |
6 | Group: Applications/System | |
7 | URL: http://nmon.sourceforge.net/pmwiki.php | |
d21e9188 | 8 | BuildRequires: ncurses-devel |
14a8db27 | 9 | Source0: http://dl.sourceforge.net/project/nmon/lmon%{version}.c |
c69f9efd | 10 | # Source0-md5: 36da7485cc16dccbd6f840359c76ad83 |
14a8db27 | 11 | Source1: http://dl.sourceforge.net/project/nmon/Documentation.txt |
d21e9188 | 12 | # Source1-md5: dbb13658cf55d687c4f2ff771a696d4a |
ebd38433 | 13 | ExclusiveArch: %{ix86} %{x8664} ppc ppc64 |
14a8db27 | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
ebd38433 | 15 | |
16 | %description | |
17 | nmon is designed for performance specialists to use for monitoring and | |
18 | analyzing performance data. | |
19 | ||
20 | %prep | |
14a8db27 | 21 | %setup -qcT |
9eaf4ed1 | 22 | install %{SOURCE0} nmon.c |
23 | install %{SOURCE1} . | |
24 | ||
25 | cat <<'EOF' > Makefile | |
14a8db27 ER |
26 | LIBS := -lncurses |
27 | OPTFLAGS := -O2 | |
28 | CFLAGS := -Wall -I/usr/include/ncurses -D JFS -D GETUSER -D LARGEMEM $(OPTFLAGS) | |
29 | ||
9eaf4ed1 | 30 | nmon: nmon.o |
31 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) | |
32 | EOF | |
ebd38433 | 33 | |
34 | %build | |
9eaf4ed1 | 35 | %{__make} nmon \ |
36 | CC="%{__cc}" \ | |
14a8db27 ER |
37 | OPTFLAGS="%{rpmcflags}" \ |
38 | LDFLAGS="%{rpmldflags}" | |
ebd38433 | 39 | |
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
14a8db27 | 42 | install -p -D nmon $RPM_BUILD_ROOT%{_bindir}/nmon |
ebd38433 | 43 | |
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
d21e9188 | 49 | %doc Documentation.txt |
ebd38433 | 50 | %attr(755,root,root) %{_bindir}/nmon |