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