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
13 BuildRequires
: perl
, asciidoc
, xmlto
, ghostscript
, texinfo
, perl
-Font
-TTF
14 BuildRequires
: adobe
-source-sans
-pro
-fonts
, adobe
-source-code
-pro
-fonts
15 BuildRequires
: fontconfig
, xz
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n
)
19 Summary: Extensive documentation
for NASM
20 Group: Development
/Languages
21 BuildRequires
: ghostscript
, texinfo
22 Requires(post
): /sbin
/install-info
23 Requires(preun
): /sbin
/install-info
26 Summary: Tools
for the RDOFF binary format
, sometimes used with NASM.
27 Group: Development
/Tools
30 NASM is the Netwide Assembler
, a free portable assembler
for the Intel
31 80x86 microprocessor series
, using primarily the traditional Intel
32 instruction mnemonics and syntax.
35 Extensive documentation
for the Netwide Assembler
, NASM
, in HTML
,
36 info
, PostScript and text formats.
39 Tools
for the operating
-system independent RDOFF binary format
, which
40 is sometimes used with the Netwide Assembler
(NASM
). These tools
41 include linker
, library manager
, loader
, and information dump.
44 %setup -q
-n nasm
-%{nasm_version}
48 make %{?_smp_mflags} everything
51 rm -rf "$RPM_BUILD_ROOT"
52 mkdir -p "$RPM_BUILD_ROOT"
/%{_bindir}
53 mkdir -p "$RPM_BUILD_ROOT"
/%{_mandir}/man1
54 mkdir -p "$RPM_BUILD_ROOT"
/%{_infodir}
55 mkdir -p "$RPM_BUILD_ROOT"
/usr
/tempdoc
56 %makeinstall install_everything docdir
="$RPM_BUILD_ROOT"
/usr
/tempdoc
57 cp
-a $RPM_BUILD_ROOT
/usr
/tempdoc
/html \
58 $RPM_BUILD_ROOT
/usr
/tempdoc
/nasmdoc.
{txt
,pdf
} .
59 xz
-9ef nasmdoc.
{pdf
,txt
}
60 # remove unpackaged files from the buildroot
61 rm -rf $RPM_BUILD_ROOT
%{_prefix}/tempdoc
64 rm -rf "$RPM_BUILD_ROOT"
67 /sbin
/install-info
%{_infodir}/nasm.info.gz %{_infodir}/dir ||
:
71 /sbin
/install-info
--delete
%{_infodir}/nasm.info.gz %{_infodir}/dir ||
:
76 %doc AUTHORS CHANGES README TODO
79 %{_mandir}/man1
/nasm
.1*
80 %{_mandir}/man1
/ndisasm
.1*
81 %{_infodir}/nasm.info
*.gz
85 %doc html nasmdoc.txt.xz nasmdoc.pdf.xz
98 %{_mandir}/man1
/ldrdf
.1*
99 %{_mandir}/man1
/rdf2bin
.1*
100 %{_mandir}/man1
/rdf2com
.1*
101 %{_mandir}/man1
/rdf2ihx
.1*
102 %{_mandir}/man1
/rdf2ith
.1*
103 %{_mandir}/man1
/rdf2srec
.1*
104 %{_mandir}/man1
/rdfdump
.1*
105 %{_mandir}/man1
/rdflib
.1*
106 %{_mandir}/man1
/rdx
.1*