nasm.spec: sync with Fedora spec file, auto-generate Perl depends
[nasm.git] / nasm.spec.in
blob1d1e6d7d123826414a7668eb3dc6a4d61479c086
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 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
12 Prefix: %{_prefix}
13 @@PERLBUILDREQS@@
14 BuildRequires: autoconf
15 BuildRequires: asciidoc
16 BuildRequires: xmlto
17 BuildRequires: ghostscript
18 BuildRequires: fontconfig
19 BuildRequires: adobe-source-sans-pro-fonts
20 BuildRequires: adobe-source-code-pro-fonts
21 BuildRequires: xz
22 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
24 %package doc
25 Summary: Extensive documentation for NASM
26 Group: Development/Languages
28 %package rdoff
29 Summary: Tools for the RDOFF binary format, sometimes used with NASM.
30 Group: Development/Tools
32 %description
33 NASM is the Netwide Assembler, a free portable assembler for the Intel
34 80x86 microprocessor series, using primarily the traditional Intel
35 instruction mnemonics and syntax.
37 %description doc
38 Extensive documentation for the Netwide Assembler (NASM) in HTML and
39 PDF formats.
41 %description rdoff
42 Tools for the operating-system independent RDOFF binary format, which
43 is sometimes used with the Netwide Assembler (NASM). These tools
44 include linker, library manager, loader, and information dump.
46 %prep
47 %setup -q -n nasm-%{nasm_version}
49 %build
50 autoreconf
51 %configure --disable-pdf-compression --enable-lto
52 make %{?_smp_mflags} everything
53 xz -9ef doc/nasmdoc.pdf
55 %install
56 rm -rf "$RPM_BUILD_ROOT"
57 mkdir -p "$RPM_BUILD_ROOT"/%{_bindir}
58 mkdir -p "$RPM_BUILD_ROOT"/%{_mandir}/man1
59 make INSTALLROOT="$RPM_BUILD_ROOT" install install_rdf
61 %files
62 %doc AUTHORS CHANGES README TODO
63 %{_bindir}/nasm
64 %{_bindir}/ndisasm
65 %{_mandir}/man1/nasm.1*
66 %{_mandir}/man1/ndisasm.1*
68 %files doc
69 %doc doc/html doc/nasmdoc.pdf.xz
71 %files rdoff
72 %{_bindir}/ldrdf
73 %{_bindir}/rdf2bin
74 %{_bindir}/rdf2com
75 %{_bindir}/rdf2ihx
76 %{_bindir}/rdf2ith
77 %{_bindir}/rdf2srec
78 %{_bindir}/rdfdump
79 %{_bindir}/rdflib
80 %{_bindir}/rdx
81 %{_mandir}/man1/ldrdf.1*
82 %{_mandir}/man1/rd*.1*
84 # This is the upstream spec file; the change log is in git
85 %changelog