1# -*- coding: utf-8 -*-
2%define nasm_version @@NASM_VER@@
3Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
4Name: nasm
5Version: @@NASM_MANGLED_VER@@
6Release: 0%{?dist}
7License: BSD
8Source: http://www.nasm.us/pub/nasm/releasebuilds/%{nasm_version}/nasm-%{nasm_version}.tar.xz
9URL: http://www.nasm.us/
10BuildRoot: /tmp/rpm-build-nasm
11Prefix: %{_prefix}
12@@PERLBUILDREQS@@
13BuildRequires: autoconf
14BuildRequires: automake
15BuildRequires: asciidoc
16BuildRequires: xmlto
17BuildRequires: xz
18BuildRequires: perl
19BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20
21%package doc
22Summary: Detailed manual for the Netwide Assembler
23BuildArch: noarch
24BuildRequires: ghostscript
25BuildRequires: fontconfig
26BuildRequires: adobe-source-sans-pro-fonts
27BuildRequires: adobe-source-code-pro-fonts
28
29%package rdoff
30Summary: Tools for the RDOFF binary format, sometimes used with NASM.
31
32%description
33NASM is the Netwide Assembler, a free portable assembler for the Intel
3480x86 microprocessor series, using primarily the traditional Intel
35instruction mnemonics and syntax.
36
37%description doc
38Extensive documentation for the Netwide Assembler (NASM) in HTML and
39PDF formats.
40
41%description rdoff
42Tools for the operating-system independent RDOFF binary format, which
43is sometimes used with the Netwide Assembler (NASM).  These tools
44include linker, library manager, loader, and information dump.
45
46%prep
47%setup -q -n nasm-%{nasm_version}
48
49%build
50sh autogen.sh
51%configure --enable-sections
52make %{?_smp_mflags} everything
53
54%install
55rm -rf "%{buildroot}"
56mkdir -p "%{buildroot}"/%{_bindir}
57mkdir -p "%{buildroot}"/%{_mandir}/man1
58make DESTDIR="%{buildroot}" install install_rdf
59
60%files
61%doc AUTHORS
62%{_bindir}/nasm
63%{_bindir}/ndisasm
64%{_mandir}/man1/nasm.1*
65%{_mandir}/man1/ndisasm.1*
66
67%files doc
68%doc doc/html doc/nasmdoc.pdf.xz
69
70%files rdoff
71%{_bindir}/ldrdf
72%{_bindir}/rdf2bin
73%{_bindir}/rdf2com
74%{_bindir}/rdf2ihx
75%{_bindir}/rdf2ith
76%{_bindir}/rdf2srec
77%{_bindir}/rdfdump
78%{_bindir}/rdflib
79%{_bindir}/rdx
80%{_mandir}/man1/ldrdf.1*
81%{_mandir}/man1/rd*.1*
82
83# This is the upstream spec file; the change log is in git
84%changelog
85