1 # -*- coding: utf-8 -*-
2 %define nasm_version @@NASM_VER@@
3 Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
5 Version: @@NASM_MANGLED_VER@@
8 Group: Development/Languages
9 Source: http://www.nasm.us/pub/nasm/releasebuilds/%{nasm_version}/nasm-%{nasm_version}.tar.xz
10 URL: http://www.nasm.us/
11 BuildRoot: /tmp/rpm-build-nasm
14 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17 Summary: Extensive documentation for NASM
18 Group: Development/Languages
19 BuildRequires: ghostscript, texinfo
20 Requires(post): /sbin/install-info
21 Requires(preun): /sbin/install-info
24 Summary: Tools for the RDOFF binary format, sometimes used with NASM.
25 Group: Development/Tools
28 NASM is the Netwide Assembler, a free portable assembler for the Intel
29 80x86 microprocessor series, using primarily the traditional Intel
30 instruction mnemonics and syntax.
33 Extensive documentation for the Netwide Assembler, NASM, in HTML,
34 info, PostScript and text formats.
37 Tools for the operating-system independent RDOFF binary format, which
38 is sometimes used with the Netwide Assembler (NASM). These tools
39 include linker, library manager, loader, and information dump.
42 %setup -q -n nasm-%{nasm_version}
46 make %{?_smp_mflags} everything
49 rm -rf "$RPM_BUILD_ROOT"
50 mkdir -p "$RPM_BUILD_ROOT"/%{_bindir}
51 mkdir -p "$RPM_BUILD_ROOT"/%{_mandir}/man1
52 mkdir -p "$RPM_BUILD_ROOT"/%{_infodir}
53 mkdir -p "$RPM_BUILD_ROOT"/usr/tempdoc
54 %makeinstall install_everything docdir="$RPM_BUILD_ROOT"/usr/tempdoc
55 cp -a $RPM_BUILD_ROOT/usr/tempdoc/html \
56 $RPM_BUILD_ROOT/usr/tempdoc/nasmdoc.{ps,txt,pdf} .
57 gzip -9f nasmdoc.{ps,txt}
58 # remove unpackaged files from the buildroot
59 rm -rf $RPM_BUILD_ROOT%{_prefix}/tempdoc
62 rm -rf "$RPM_BUILD_ROOT"
65 /sbin/install-info %{_infodir}/nasm.info.gz %{_infodir}/dir || :
69 /sbin/install-info --delete %{_infodir}/nasm.info.gz %{_infodir}/dir || :
74 %doc AUTHORS CHANGES README TODO
77 %{_mandir}/man1/nasm.1*
78 %{_mandir}/man1/ndisasm.1*
79 %{_infodir}/nasm.info*.gz
83 %doc html nasmdoc.txt.gz nasmdoc.pdf nasmdoc.ps.gz
96 %{_mandir}/man1/ldrdf.1*
97 %{_mandir}/man1/rdf2bin.1*
98 %{_mandir}/man1/rdf2com.1*
99 %{_mandir}/man1/rdf2ihx.1*
100 %{_mandir}/man1/rdf2ith.1*
101 %{_mandir}/man1/rdf2srec.1*
102 %{_mandir}/man1/rdfdump.1*
103 %{_mandir}/man1/rdflib.1*
104 %{_mandir}/man1/rdx.1*