1 | # Build without documentation per default if built as part of a module.
|
---|
2 | %if 0%{?_module_build}
|
---|
3 | %bcond_with documentation
|
---|
4 | %else
|
---|
5 | %bcond_without documentation
|
---|
6 | %endif
|
---|
7 |
|
---|
8 | Summary: A portable x86 assembler which uses Intel-like syntax
|
---|
9 | Name: nasm
|
---|
10 | Version: 2.13.03
|
---|
11 | Release: 1%{?dist}
|
---|
12 | License: BSD
|
---|
13 | Group: Development/Languages
|
---|
14 | URL: http://www.nasm.us
|
---|
15 | Vendor: bww bitwise works GmbH
|
---|
16 | %scm_source github https://github.com/bitwiseworks/%{name}-os2 %{version}-os2
|
---|
17 |
|
---|
18 | Source1: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}-xdoc.tar.bz2
|
---|
19 |
|
---|
20 | BuildRequires: perl
|
---|
21 | BuildRequires: autoconf
|
---|
22 | #BuildRequires: asciidoc
|
---|
23 | #BuildRequires: xmlto
|
---|
24 | BuildRequires: gcc
|
---|
25 | BuildRequires: make
|
---|
26 |
|
---|
27 | %if %{with documentation}
|
---|
28 | %package doc
|
---|
29 | Summary: Documentation for NASM
|
---|
30 | BuildRequires: perl(Font::TTF::Font)
|
---|
31 | BuildRequires: perl(Sort::Versions)
|
---|
32 | BuildRequires: perl(File::Spec)
|
---|
33 | BuildRequires: adobe-source-sans-pro-fonts
|
---|
34 | BuildRequires: adobe-source-code-pro-fonts
|
---|
35 | BuildRequires: ghostscript
|
---|
36 | BuildArch: noarch
|
---|
37 | # For arch to noarch conversion
|
---|
38 | Obsoletes: %{name}-doc < %{version}-%{release}
|
---|
39 | %endif
|
---|
40 |
|
---|
41 | %package rdoff
|
---|
42 | Summary: Tools for the RDOFF binary format, sometimes used with NASM
|
---|
43 | Group: Development/Tools
|
---|
44 |
|
---|
45 | %description
|
---|
46 | NASM is the Netwide Assembler, a free portable assembler for the Intel
|
---|
47 | 80x86 microprocessor series, using primarily the traditional Intel
|
---|
48 | instruction mnemonics and syntax.
|
---|
49 |
|
---|
50 | %if %{with documentation}
|
---|
51 | %description doc
|
---|
52 | This package contains documentation for the Netwide Assembler (NASM),
|
---|
53 | in HTML, info, PostScript, and text formats.
|
---|
54 | %endif
|
---|
55 |
|
---|
56 | %description rdoff
|
---|
57 | Tools for the operating-system independent RDOFF binary format, which
|
---|
58 | is sometimes used with the Netwide Assembler (NASM). These tools
|
---|
59 | include linker, library manager, loader, and information dump.
|
---|
60 |
|
---|
61 | %debug_package
|
---|
62 |
|
---|
63 | %prep
|
---|
64 | %scm_setup
|
---|
65 | tar xjf %{SOURCE1} --strip-components 1
|
---|
66 |
|
---|
67 | %build
|
---|
68 | autoreconf
|
---|
69 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
---|
70 | export LIBS="-lcx"
|
---|
71 | %configure
|
---|
72 | %if %{with documentation}
|
---|
73 | make everything %{?_smp_mflags}
|
---|
74 | gzip -9f doc/nasmdoc.ps
|
---|
75 | gzip -9f doc/nasmdoc.txt
|
---|
76 | %else
|
---|
77 | make all %{?_smp_mflags}
|
---|
78 | %endif
|
---|
79 |
|
---|
80 | %install
|
---|
81 | make INSTALLROOT=$RPM_BUILD_ROOT install install_rdf
|
---|
82 |
|
---|
83 | %clean
|
---|
84 | rm -rf ${RPM_BUILD_ROOT}
|
---|
85 |
|
---|
86 |
|
---|
87 | %files
|
---|
88 | %doc AUTHORS CHANGES README TODO
|
---|
89 | %{_bindir}/nasm.exe
|
---|
90 | %{_bindir}/ndisasm.exe
|
---|
91 | %{_mandir}/man1/nasm*
|
---|
92 | %{_mandir}/man1/ndisasm*
|
---|
93 |
|
---|
94 | %if %{with documentation}
|
---|
95 | %files doc
|
---|
96 | %doc doc/html doc/nasmdoc.txt.gz doc/nasmdoc.ps.gz doc/nasmdoc.pdf
|
---|
97 | %endif
|
---|
98 |
|
---|
99 | %files rdoff
|
---|
100 | %{_bindir}/ldrdf.exe
|
---|
101 | %{_bindir}/rdf2bin.exe
|
---|
102 | %{_bindir}/rdf2ihx.exe
|
---|
103 | %{_bindir}/rdf2com.exe
|
---|
104 | %{_bindir}/rdfdump.exe
|
---|
105 | %{_bindir}/rdflib.exe
|
---|
106 | %{_bindir}/rdx.exe
|
---|
107 | %{_bindir}/rdf2ith.exe
|
---|
108 | %{_bindir}/rdf2srec.exe
|
---|
109 | %{_mandir}/man1/rd*
|
---|
110 | %{_mandir}/man1/ld*
|
---|
111 |
|
---|
112 |
|
---|
113 | %changelog
|
---|
114 | * Wed Feb 21 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.13.03-1
|
---|
115 | - updated to vendor version 2.13.03
|
---|
116 |
|
---|
117 | * Tue Dec 29 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.11.8-2
|
---|
118 | - added enhancement from http://sourceforge.net/p/nasm/mailman/message/34609638/
|
---|
119 | this is needed for vbox port, see vbox ticket #31 for further reference
|
---|
120 | - changed debug creation to latest rpm macros
|
---|
121 |
|
---|
122 | * Thu Apr 30 2015 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.11.8-1
|
---|
123 | - update to 2.11.8
|
---|