ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/mon/cxmon.spec.in
Revision: 1.5
Committed: 2007-01-14T14:03:42Z (17 years, 3 months ago) by cebix
Branch: MAIN
Changes since 1.4: +1 -1 lines
Log Message:
prepare for 3.2

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://cxmon.cebix.net/
13 BuildRoot: %{_tmppath}/%{name}-root
14 Prefix: %{_prefix}
15
16 %description
17 cxmon is an interactive command-driven file manipulation tool that is
18 inspired by the "Amiga Monitor" by Timo Rossi. It has commands and features
19 similar to a machine code monitor/debugger, but it lacks any functions for
20 running/tracing code. There are, however, built-in PowerPC, 680x0, 80x86,
21 x86-64, 6502 and Z80 disassemblers and special support for disassembling
22 MacOS code.
23
24 %prep
25 %setup -q
26
27 %build
28 CFLAGS=${RPM_OPT_FLAGS} CXXFLAGS=${RPM_OPT_FLAGS} ./configure --prefix=%{_prefix} --mandir=%{_mandir}
29 if [ -x /usr/bin/getconf ] ; then
30 NCPU=$(/usr/bin/getconf _NPROCESSORS_ONLN)
31 if [ $NCPU -eq 0 ] ; then
32 NCPU=1
33 fi
34 else
35 NCPU=1
36 fi
37 PARL=$[ $NCPU + 1 ]
38 make -j $PARL
39
40 %install
41 rm -rf ${RPM_BUILD_ROOT}
42 make DESTDIR=${RPM_BUILD_ROOT} install-strip
43
44 %clean
45 rm -rf ${RPM_BUILD_ROOT}
46
47 %files
48 %defattr(-,root,root)
49 %doc AUTHORS ChangeLog COPYING README
50 %{_bindir}/*
51 %{_mandir}/man1/*