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: ftp
://download.sourceforge.net
/pub
/sourceforge
/nasm
/nasm
-%{nasm_version}.tar.bz2
10 URL: http
://nasm.sourceforge.net
/
11 BuildRoot: /tmp
/rpm
-build
-nasm
14 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n
)
15 Requires(post
): /sbin
/install-info
16 Requires(preun
): /sbin
/install-info
19 Summary: Extensive documentation
for NASM
20 Group: Development
/Languages
21 Prereq
: /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
78 %{_infodir}/nasm.info
*.gz
82 %doc html nasmdoc.txt.gz nasmdoc.pdf nasmdoc.ps.gz