]>
Commit | Line | Data |
---|---|---|
ebd38433 | 1 | # $Id: nmon.spec,v 1.1 2009-11-26 17:34:53 blekot Exp $ |
2 | # Authority: dag | |
3 | # Upstream: Nigel Griffiths <nag$uk,ibm,com> | |
4 | ||
5 | Summary: Performance analysis tool | |
6 | Name: nmon | |
7 | Version: 12f | |
8 | Release: 0.1 | |
9 | License: GPL | |
10 | Group: Applications/System | |
11 | URL: http://nmon.sourceforge.net/pmwiki.php | |
12 | Source0: http://sourceforge.net/projects/nmon/files/lmon12f.c/download | |
13 | # Source0-md5: | |
14 | Source1: http://sourceforge.net/projects/nmon/files/makefile/download | |
15 | # Source1-md5: | |
16 | Source2: http://sourceforge.net/projects/nmon/files/Documentation.txt/download | |
17 | # Source2-md5: | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | ExclusiveArch: %{ix86} %{x8664} ppc ppc64 | |
21 | ||
22 | %description | |
23 | nmon is designed for performance specialists to use for monitoring and | |
24 | analyzing performance data. | |
25 | ||
26 | %prep | |
27 | %setup -q -c -a1 -a2 | |
28 | ||
29 | %build | |
30 | ||
31 | %install | |
32 | rm -rf $RPM_BUILD_ROOT | |
33 | %ifarch i386 | |
34 | %{?fc5:%{__install} -Dp -m0755 nmon_x86_fedora5 $RPM_BUILD_ROOT%{_bindir}/nmon} | |
35 | %{?el4:%{__install} -Dp -m0755 nmon_x86_rhel4 $RPM_BUILD_ROOT%{_bindir}/nmon} | |
36 | %{?el3:%{__install} -Dp -m0755 nmon_x86_rhel3 $RPM_BUILD_ROOT%{_bindir}/nmon} | |
37 | %{?el2:%{__install} -Dp -m0755 nmon_x86_rhel2 $RPM_BUILD_ROOT%{_bindir}/nmon} | |
38 | %{?rh9:%{__install} -Dp -m0755 nmon_x86_redhat9 $RPM_BUILD_ROOT%{_bindir}/nmon} | |
39 | %endif | |
40 | %ifarch x86_64 | |
41 | %{?fc6:%{__install} -Dp -m0755 nmon_x86_64_fedora6 $RPM_BUILD_ROOT%{_bindir}/nmon} | |
42 | %{?el4:%{__install} -Dp -m0755 nmon_x86_64_rhel4u4 $RPM_BUILD_ROOT%{_bindir}/nmon} | |
43 | %endif | |
44 | %ifarch ppc ppc64 | |
45 | %{?el4:%{__install} -Dp -m0755 nmon_power_rhel4 $RPM_BUILD_ROOT%{_bindir}/nmon} | |
46 | %{?el3:%{__install} -Dp -m0755 nmon_power_rhel3 $RPM_BUILD_ROOT%{_bindir}/nmon} | |
47 | %endif | |
48 | ||
49 | %clean | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
54 | %attr(755,root,root) %{_bindir}/nmon |