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