alignb: disable warnings for use in a progbits section
[nasm.git] / nasm.spec.in
blob35067f21ae7df1fda0d12d764a87ef37de9417d2
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: automake
15 BuildRequires: asciidoc
16 BuildRequires: xmlto
17 BuildRequires: xz
18 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
20 %package doc
21 Summary: Detailed manual for the Netwide Assembler
22 BuildArch: noarch
23 BuildRequires: ghostscript
24 BuildRequires: fontconfig
25 BuildRequires: adobe-source-sans-pro-fonts
26 BuildRequires: adobe-source-code-pro-fonts
28 %package rdoff
29 Summary: Tools for the RDOFF binary format, sometimes used with NASM.
31 %description
32 NASM is the Netwide Assembler, a free portable assembler for the Intel
33 80x86 microprocessor series, using primarily the traditional Intel
34 instruction mnemonics and syntax.
36 %description doc
37 Extensive documentation for the Netwide Assembler (NASM) in HTML and
38 PDF formats.
40 %description rdoff
41 Tools for the operating-system independent RDOFF binary format, which
42 is sometimes used with the Netwide Assembler (NASM). These tools
43 include linker, library manager, loader, and information dump.
45 %prep
46 %setup -q -n nasm-%{nasm_version}
48 %build
49 sh autogen.sh
50 %configure --disable-pdf-compression --enable-sections
51 make %{?_smp_mflags} everything
52 xz -9ef doc/nasmdoc.pdf
54 %install
55 rm -rf "%{buildroot}"
56 mkdir -p "%{buildroot}"/%{_bindir}
57 mkdir -p "%{buildroot}"/%{_mandir}/man1
58 make DESTDIR="%{buildroot}" install install_rdf
60 %files
61 %doc AUTHORS
62 %{_bindir}/nasm
63 %{_bindir}/ndisasm
64 %{_mandir}/man1/nasm.1*
65 %{_mandir}/man1/ndisasm.1*
67 %files doc
68 %doc doc/html doc/nasmdoc.pdf.xz
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*
83 # This is the upstream spec file; the change log is in git
84 %changelog