summaryrefslogtreecommitdiff
path: root/nasm.spec.in
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-05-04 05:14:03 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-05-04 05:14:03 +0000
commit87242df32dd2bfad17d88570cee3509d0c3cc88d (patch)
tree9b0cbe835dd8127e9ae86b63db109a84e27aa2e6 /nasm.spec.in
parent53ea605b4d3f387bc92ed0200e23e192ab9562f1 (diff)
downloadnasm-87242df32dd2bfad17d88570cee3509d0c3cc88d.tar.gz
nasm-87242df32dd2bfad17d88570cee3509d0c3cc88d.tar.bz2
nasm-87242df32dd2bfad17d88570cee3509d0c3cc88d.zip
Update nasm.spec; preprocess it to use the version number from the
"version" file.
Diffstat (limited to 'nasm.spec.in')
-rw-r--r--nasm.spec.in90
1 files changed, 90 insertions, 0 deletions
diff --git a/nasm.spec.in b/nasm.spec.in
new file mode 100644
index 0000000..b6652e1
--- /dev/null
+++ b/nasm.spec.in
@@ -0,0 +1,90 @@
+Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
+Name: nasm
+Version: @@VERSION@@
+Release: 1
+Copyright: LGPL
+Group: Development/Languages
+Source: ftp://download.sourceforge.net/pub/sourceforge/nasm/nasm-%{version}.tar.bz2
+URL: http://nasm.2y.net/
+BuildRoot: /tmp/rpm-build-nasm
+Prefix: /usr
+Patch0: nasm-0.98.25alt-nasmopt.diff
+BuildPrereq: perl
+
+%package doc
+Summary: Extensive documentation for NASM
+Group: Development/Languages
+Prereq: /sbin/install-info
+
+%package rdoff
+Summary: Tools for the RDOFF binary format, sometimes used with NASM.
+Group: Development/Tools
+
+%description
+NASM is the Netwide Assembler, a free portable assembler for the Intel
+80x86 microprocessor series, using primarily the traditional Intel
+instruction mnemonics and syntax.
+
+%description doc
+Extensive documentation for the Netwide Assembler, NASM, in HTML,
+info, PostScript and text formats.
+
+%description rdoff
+Tools for the operating-system independent RDOFF binary format, which
+is sometimes used with the Netwide Assembler (NASM). These tools
+include linker, library manager, loader, and information dump.
+
+%prep
+%setup
+%patch0 -p1
+
+%build
+CFLAGS="$RPM_OPT_FLAGS" LDFLAGS=-s ./configure --prefix=/usr
+make everything
+
+%install
+rm -rf "$RPM_BUILD_ROOT"
+mkdir -p "$RPM_BUILD_ROOT"
+mkdir -p "$RPM_BUILD_ROOT"/usr/bin
+mkdir -p "$RPM_BUILD_ROOT"/usr/man/man1
+mkdir -p "$RPM_BUILD_ROOT"/usr/info
+DOC="$RPM_BUILD_ROOT"/usr/doc/nasm-%{version}
+mkdir -p "$DOC"
+mkdir -p "$DOC"/rdoff
+rm -f "$RPM_BUILD_ROOT"/usr/info/nasm.*
+make INSTALLROOT="$RPM_BUILD_ROOT" docdir=/usr/doc/nasm-%{version} install_everything
+gzip -9 "$RPM_BUILD_ROOT"/usr/info/nasm.*
+gzip -9 "$DOC"/*.txt "$DOC"/*.ps
+cp AUTHORS CHANGES COPYING README TODO doc/*.doc "$DOC"
+cp rdoff/README "$DOC"/rdoff
+cp rdoff/doc/* "$DOC"/rdoff
+
+%clean
+rm -rf "$RPM_BUILD_ROOT"
+
+%post doc
+/sbin/install-info "$RPM_INSTALL_PREFIX"/info/nasm.info.gz "$RPM_INSTALL_PREFIX"/info/dir
+
+%preun doc
+if [ $1 = 0 ]; then
+ /sbin/install-info --delete "$RPM_INSTALL_PREFIX"/info/nasm.info.gz "$RPM_INSTALL_PREFIX"/info/dir
+fi
+
+%files
+%attr(-,root,root) /usr/bin/nasm
+%attr(-,root,root) /usr/bin/ndisasm
+%attr(-,root,root) %doc /usr/man/man1/nasm.1*
+%attr(-,root,root) %doc /usr/man/man1/ndisasm.1*
+
+%files doc
+%attr(-,root,root) %doc /usr/info/nasm.info*.gz
+%attr(-,root,root) %doc /usr/doc/nasm-%{version}/*
+
+%files rdoff
+%attr(-,root,root) /usr/bin/ldrdf
+%attr(-,root,root) /usr/bin/rdf2bin
+%attr(-,root,root) /usr/bin/rdf2com
+%attr(-,root,root) /usr/bin/rdfdump
+%attr(-,root,root) /usr/bin/rdflib
+%attr(-,root,root) /usr/bin/rdx
+%attr(-,root,root) %doc /usr/doc/nasm-%{version}/rdoff/*