rdflib.c: fix(?) one more unsafe use of fread()
[nasm.git] / nasm.spec.in
blob9ca198ea71b41f6d7fe82f5c21022790082dd4cf
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
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 BuildRequires: perl, asciidoc, xmlto, ghostscript, perl-Font-TTF
14 BuildRequires: adobe-source-sans-pro-fonts, adobe-source-code-pro-fonts
15 BuildRequires: fontconfig, xz
16 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
18 %package doc
19 Summary: Extensive documentation for NASM
20 Group: Development/Languages
22 %package rdoff
23 Summary: Tools for the RDOFF binary format, sometimes used with NASM.
24 Group: Development/Tools
26 %description
27 NASM is the Netwide Assembler, a free portable assembler for the Intel
28 80x86 microprocessor series, using primarily the traditional Intel
29 instruction mnemonics and syntax.
31 %description doc
32 Extensive documentation for the Netwide Assembler (NASM) in HTML and
33 PDF formats.
35 %description rdoff
36 Tools for the operating-system independent RDOFF binary format, which
37 is sometimes used with the Netwide Assembler (NASM). These tools
38 include linker, library manager, loader, and information dump.
40 %prep
41 %setup -q -n nasm-%{nasm_version}
43 %build
44 %configure --disable-pdf-compression
45 make %{?_smp_mflags} everything
47 %install
48 rm -rf "$RPM_BUILD_ROOT"
49 mkdir -p "$RPM_BUILD_ROOT"/%{_bindir}
50 mkdir -p "$RPM_BUILD_ROOT"/%{_mandir}/man1
51 mkdir -p "$RPM_BUILD_ROOT"/usr/tempdoc
52 %makeinstall install_everything docdir="$RPM_BUILD_ROOT"/usr/tempdoc
53 cp -a $RPM_BUILD_ROOT/usr/tempdoc/html \
54 $RPM_BUILD_ROOT/usr/tempdoc/nasmdoc.pdf .
55 xz -9ef nasmdoc.pdf
56 # remove unpackaged files from the buildroot
57 rm -rf $RPM_BUILD_ROOT%{_prefix}/tempdoc
59 %clean
60 rm -rf "$RPM_BUILD_ROOT"
62 %files
63 %defattr(-,root,root)
64 %doc AUTHORS CHANGES README TODO
65 %{_bindir}/nasm
66 %{_bindir}/ndisasm
67 %{_mandir}/man1/nasm.1*
68 %{_mandir}/man1/ndisasm.1*
70 %files doc
71 %defattr(-,root,root)
72 %doc html nasmdoc.pdf.xz
74 %files rdoff
75 %defattr(-,root,root)
76 %{_bindir}/ldrdf
77 %{_bindir}/rdf2bin
78 %{_bindir}/rdf2com
79 %{_bindir}/rdf2ihx
80 %{_bindir}/rdf2ith
81 %{_bindir}/rdf2srec
82 %{_bindir}/rdfdump
83 %{_bindir}/rdflib
84 %{_bindir}/rdx
85 %{_mandir}/man1/ldrdf.1*
86 %{_mandir}/man1/rdf2bin.1*
87 %{_mandir}/man1/rdf2com.1*
88 %{_mandir}/man1/rdf2ihx.1*
89 %{_mandir}/man1/rdf2ith.1*
90 %{_mandir}/man1/rdf2srec.1*
91 %{_mandir}/man1/rdfdump.1*
92 %{_mandir}/man1/rdflib.1*
93 %{_mandir}/man1/rdx.1*