doc: update license and contact information
[nasm/sigaren-mirror.git] / nasm.spec.in
blob1b7052105b34b7767f6127406bf1863b83a940f1
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: 1
7 License: BSD
8 Group: Development/Languages
9 Source: http://www.nasm.us/pub/nasm/releasebuilds/%{nasm_version}/nasm-%{nasm_version}.tar.bz2
10 URL: http://www.nasm.us/
11 BuildRoot: /tmp/rpm-build-nasm
12 Prefix: %{_prefix}
13 BuildPrereq: perl
14 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15 Requires(post): /sbin/install-info
16 Requires(preun): /sbin/install-info
18 %package doc
19 Summary: Extensive documentation for NASM
20 Group: Development/Languages
21 Prereq: /sbin/install-info
23 %package rdoff
24 Summary: Tools for the RDOFF binary format, sometimes used with NASM.
25 Group: Development/Tools
27 %description
28 NASM is the Netwide Assembler, a free portable assembler for the Intel
29 80x86 microprocessor series, using primarily the traditional Intel
30 instruction mnemonics and syntax.
32 %description doc
33 Extensive documentation for the Netwide Assembler, NASM, in HTML,
34 info, PostScript and text formats.
36 %description rdoff
37 Tools for the operating-system independent RDOFF binary format, which
38 is sometimes used with the Netwide Assembler (NASM). These tools
39 include linker, library manager, loader, and information dump.
41 %prep
42 %setup -q -n nasm-%{nasm_version}
44 %build
45 %configure
46 make %{?_smp_mflags} everything
48 %install
49 rm -rf "$RPM_BUILD_ROOT"
50 mkdir -p "$RPM_BUILD_ROOT"/%{_bindir}
51 mkdir -p "$RPM_BUILD_ROOT"/%{_mandir}/man1
52 mkdir -p "$RPM_BUILD_ROOT"/%{_infodir}
53 mkdir -p "$RPM_BUILD_ROOT"/usr/tempdoc
54 %makeinstall install_everything docdir="$RPM_BUILD_ROOT"/usr/tempdoc
55 cp -a $RPM_BUILD_ROOT/usr/tempdoc/html \
56 $RPM_BUILD_ROOT/usr/tempdoc/nasmdoc.{ps,txt,pdf} .
57 gzip -9f nasmdoc.{ps,txt}
58 # remove unpackaged files from the buildroot
59 rm -rf $RPM_BUILD_ROOT%{_prefix}/tempdoc
61 %clean
62 rm -rf "$RPM_BUILD_ROOT"
64 %post
65 /sbin/install-info %{_infodir}/nasm.info.gz %{_infodir}/dir || :
67 %preun
68 if [ $1 = 0 ]; then
69 /sbin/install-info --delete %{_infodir}/nasm.info.gz %{_infodir}/dir || :
72 %files
73 %defattr(-,root,root)
74 %doc AUTHORS CHANGES README TODO
75 %{_bindir}/nasm
76 %{_bindir}/ndisasm
77 %{_mandir}/man1/nasm.1*
78 %{_mandir}/man1/ndisasm.1*
79 %{_infodir}/nasm.info*.gz
81 %files doc
82 %defattr(-,root,root)
83 %doc html nasmdoc.txt.gz nasmdoc.pdf nasmdoc.ps.gz
85 %files rdoff
86 %defattr(-,root,root)
87 %{_bindir}/ldrdf
88 %{_bindir}/rdf2bin
89 %{_bindir}/rdf2com
90 %{_bindir}/rdf2ihx
91 %{_bindir}/rdf2ith
92 %{_bindir}/rdf2srec
93 %{_bindir}/rdfdump
94 %{_bindir}/rdflib
95 %{_bindir}/rdx
96 %{_mandir}/man1/ldrdf.1*
97 %{_mandir}/man1/rdf2bin.1*
98 %{_mandir}/man1/rdf2com.1*
99 %{_mandir}/man1/rdf2ihx.1*
100 %{_mandir}/man1/rdf2ith.1*
101 %{_mandir}/man1/rdf2srec.1*
102 %{_mandir}/man1/rdfdump.1*
103 %{_mandir}/man1/rdflib.1*
104 %{_mandir}/man1/rdx.1*