phash: Tell the user when the graph is OK
[nasm/autotest.git] / nasm.spec.in
blob46eb9fcf0790e6255154f43a2a6f544f06031f1a
1 # $Id$
2 Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
3 Name: nasm
4 Version: @@VERSION@@
5 Release: 1
6 License: LGPL
7 Group: Development/Languages
8 Source: ftp://download.sourceforge.net/pub/sourceforge/nasm/nasm-%{version}.tar.bz2
9 URL: http://nasm.sourceforge.net/
10 BuildRoot: /tmp/rpm-build-nasm
11 Prefix: /usr
12 BuildPrereq: perl
14 %package doc
15 Summary: Extensive documentation for NASM
16 Group: Development/Languages
17 Prereq: /sbin/install-info
19 %package rdoff
20 Summary: Tools for the RDOFF binary format, sometimes used with NASM.
21 Group: Development/Tools
23 %description
24 NASM is the Netwide Assembler, a free portable assembler for the Intel
25 80x86 microprocessor series, using primarily the traditional Intel
26 instruction mnemonics and syntax.
28 %description doc
29 Extensive documentation for the Netwide Assembler, NASM, in HTML,
30 info, PostScript and text formats.
32 %description rdoff
33 Tools for the operating-system independent RDOFF binary format, which
34 is sometimes used with the Netwide Assembler (NASM). These tools
35 include linker, library manager, loader, and information dump.
37 %prep
38 %setup
40 %build
41 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s ./configure --prefix=/usr
42 make everything
44 %install
45 rm -rf "$RPM_BUILD_ROOT"
46 mkdir -p "$RPM_BUILD_ROOT"
47 mkdir -p "$RPM_BUILD_ROOT"/usr/bin
48 mkdir -p "$RPM_BUILD_ROOT"/usr/man/man1
49 mkdir -p "$RPM_BUILD_ROOT"/%{_infodir}
50 DOC="$RPM_BUILD_ROOT"/usr/doc/nasm-%{version}
51 mkdir -p "$DOC"
52 mkdir -p "$DOC"/rdoff
53 rm -f "$RPM_BUILD_ROOT"/usr/info/nasm.*
54 make INSTALLROOT="$RPM_BUILD_ROOT" \
55 docdir=/usr/doc/nasm-%{version} \
56 infodir=%{_infodir} \
57 install_everything
58 gzip -9 "$RPM_BUILD_ROOT"/%{_infodir}/nasm.*
59 gzip -9 "$DOC"/*.txt "$DOC"/*.ps
60 cp AUTHORS CHANGES COPYING README TODO doc/*.doc "$DOC"
61 cp rdoff/README "$DOC"/rdoff
62 cp rdoff/doc/* "$DOC"/rdoff
64 %clean
65 rm -rf "$RPM_BUILD_ROOT"
67 %post doc
68 /sbin/install-info %{_infodir}/nasm.info.gz %{_infodir}/dir
70 %preun doc
71 if [ $1 = 0 ]; then
72 /sbin/install-info --delete %{_infodir}/nasm.info.gz %{_infodir}/dir
75 %files
76 %attr(-,root,root) /usr/bin/nasm
77 %attr(-,root,root) /usr/bin/ndisasm
78 %attr(-,root,root) %doc /usr/man/man1/nasm.1*
79 %attr(-,root,root) %doc /usr/man/man1/ndisasm.1*
81 %files doc
82 %attr(-,root,root) %doc %{_infodir}/nasm.info*.gz
83 %attr(-,root,root) %doc /usr/doc/nasm-%{version}/*
85 %files rdoff
86 %attr(-,root,root) /usr/bin/ldrdf
87 %attr(-,root,root) /usr/bin/rdf2bin
88 %attr(-,root,root) /usr/bin/rdf2com
89 %attr(-,root,root) /usr/bin/rdf2ihx
90 %attr(-,root,root) /usr/bin/rdfdump
91 %attr(-,root,root) /usr/bin/rdflib
92 %attr(-,root,root) /usr/bin/rdx
93 %attr(-,root,root) %doc /usr/doc/nasm-%{version}/rdoff/*