1 Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
5 Copyright: Freely Distributable
6 Group: Development/Languages
7 Source: ftp://ftp.us.kernel.org/pub/software/devel/nasm/source/nasm-%{version}.tar.gz
8 URL: http://www.cryogen.com/Nasm/
9 BuildRoot: /tmp/rpm-build-nasm
13 Summary: Extensive documentation for NASM
14 Group: Development/Languages
15 Prereq: /sbin/install-info
18 Summary: Tools for the RDOFF binary format, sometimes used with NASM.
19 Group: Development/Tools
22 NASM is the Netwide Assembler, a free portable assembler for the Intel
23 80x86 microprocessor series, using primarily the traditional Intel
24 instruction mnemonics and syntax.
27 Extensive documentation for the Netwide Assembler, NASM, in HTML,
28 info, PostScript and text formats.
31 Tools for the operating-system independent RDOFF binary format, which
32 is sometimes used with the Netwide Assembler (NASM). These tools
33 include linker, library manager, loader, and information dump.
39 CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s ./configure --prefix=/usr
43 mkdir -p "$RPM_BUILD_ROOT"
44 mkdir -p "$RPM_BUILD_ROOT"/usr/bin
45 mkdir -p "$RPM_BUILD_ROOT"/usr/man/man1
46 mkdir -p "$RPM_BUILD_ROOT"/usr/info
47 DOC="$RPM_BUILD_ROOT"/usr/doc/nasm-%{version}
51 rm -f "$RPM_BUILD_ROOT"/usr/info/nasm.*
52 make INSTALLROOT="$RPM_BUILD_ROOT" docdir=/usr/doc/nasm-%{version} install_everything
53 gzip -9 "$RPM_BUILD_ROOT"/usr/info/nasm.*
54 gzip -9 "$DOC"/*.txt "$DOC"/*.ps
55 cp Changes Licence MODIFIED Readme Wishlist *.doc changed.asm "$DOC"
56 cp rdoff/README rdoff/Changes "$DOC"/rdoff
59 rm -rf "$RPM_BUILD_ROOT"
62 /sbin/install-info "$RPM_INSTALL_PREFIX"/info/nasm.info.gz "$RPM_INSTALL_PREFIX"/info/dir
66 /sbin/install-info --delete "$RPM_INSTALL_PREFIX"/info/nasm.info.gz "$RPM_INSTALL_PREFIX"/info/dir
70 %attr(-,root,root) /usr/bin/nasm
71 %attr(-,root,root) /usr/bin/ndisasm
72 %attr(-,root,root) %doc /usr/man/man1/nasm.1
73 %attr(-,root,root) %doc /usr/man/man1/ndisasm.1
74 %attr(-,root,root) %doc /usr/doc/nasm-%{version}/Licence
77 %attr(-,root,root) %doc /usr/info/nasm.info*.gz
78 %attr(-,root,root) %doc /usr/doc/nasm-%{version}/*
81 %attr(-,root,root) /usr/bin/ldrdf
82 %attr(-,root,root) /usr/bin/rdf2bin
83 %attr(-,root,root) /usr/bin/rdf2com
84 %attr(-,root,root) /usr/bin/rdfdump
85 %attr(-,root,root) /usr/bin/rdflib
86 %attr(-,root,root) /usr/bin/rdx
87 %attr(-,root,root) %doc /usr/doc/nasm-%{version}/rdoff/*