ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/mon/mon.spec.in
Revision: 1.2
Committed: 2000-10-05T18:00:31Z (23 years, 9 months ago) by cebix
Branch: MAIN
Changes since 1.1: +2 -0 lines
Log Message:
added requirement for SDL package

File Contents

# Content
1 %define name @PACKAGE@
2 %define version @VERSION@
3 %define release 1
4
5 Summary: Command-line file manipulation tool and disassembler
6 Name: %{name}
7 Version: %{version}
8 Release: %{release}
9 Copyright: GPL
10 Group: Utilities/File
11 Source: %{name}-%{version}.tar.gz
12 URL: http://www.uni-mainz.de/~bauec002/
13 BuildRoot: %{_tmppath}/%{name}-root
14 Prefix: %{_prefix}
15
16 Requires: SDL >= 1.1.4
17
18 %description
19 "mon" is an interactive command-driven file manipulation tool that is
20 inspired by the "Amiga Monitor" by Timo Rossi <trossi@jyu.fi>. It has
21 commands and features similar to a machine code monitor/debugger, but it
22 lacks any functions for running/tracing code. There are, however, built-in
23 PowerPC, 680x0, 80x86, 6502 and 8080 disassemblers.
24
25 %prep
26 %setup -q
27
28 %build
29 ./configure --prefix=%{_prefix}
30 if [ -x /usr/bin/getconf ] ; then
31 NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN)
32 if [ $NCPU -eq 0 ] ; then
33 NCPU=1
34 fi
35 else
36 NCPU=1
37 fi
38 PARL=$[ $NCPU + 1 ]
39 make -j $PARL
40
41 %install
42 rm -rf ${RPM_BUILD_ROOT}
43 make prefix=%{_prefix} DESTDIR=${RPM_BUILD_ROOT} install
44
45 %clean
46 rm -rf ${RPM_BUILD_ROOT}
47
48 %files
49 %defattr(-,root,root)
50 %doc AUTHORS ChangeLog COPYING README
51 %{_bindir}/*
52 %{_mandir}/man1/*
53
54 %changelog