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