source: spec/trunk/SPECS/nasm.spec@ 1504

Last change on this file since 1504 was 1344, checked in by Silvan Scherrer, 8 years ago

spec: nasm: Release version 2.13.03-1.

File size: 3.1 KB
Line 
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
8Summary: A portable x86 assembler which uses Intel-like syntax
9Name: nasm
10Version: 2.13.03
11Release: 1%{?dist}
12License: BSD
13Group: Development/Languages
14URL: http://www.nasm.us
15Vendor: bww bitwise works GmbH
16%scm_source github https://github.com/bitwiseworks/%{name}-os2 %{version}-os2
17
18Source1: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}-xdoc.tar.bz2
19
20BuildRequires: perl
21BuildRequires: autoconf
22#BuildRequires: asciidoc
23#BuildRequires: xmlto
24BuildRequires: gcc
25BuildRequires: make
26
27%if %{with documentation}
28%package doc
29Summary: Documentation for NASM
30BuildRequires: perl(Font::TTF::Font)
31BuildRequires: perl(Sort::Versions)
32BuildRequires: perl(File::Spec)
33BuildRequires: adobe-source-sans-pro-fonts
34BuildRequires: adobe-source-code-pro-fonts
35BuildRequires: ghostscript
36BuildArch: noarch
37# For arch to noarch conversion
38Obsoletes: %{name}-doc < %{version}-%{release}
39%endif
40
41%package rdoff
42Summary: Tools for the RDOFF binary format, sometimes used with NASM
43Group: Development/Tools
44
45%description
46NASM is the Netwide Assembler, a free portable assembler for the Intel
4780x86 microprocessor series, using primarily the traditional Intel
48instruction mnemonics and syntax.
49
50%if %{with documentation}
51%description doc
52This package contains documentation for the Netwide Assembler (NASM),
53in HTML, info, PostScript, and text formats.
54%endif
55
56%description rdoff
57Tools for the operating-system independent RDOFF binary format, which
58is sometimes used with the Netwide Assembler (NASM). These tools
59include linker, library manager, loader, and information dump.
60
61%debug_package
62
63%prep
64%scm_setup
65tar xjf %{SOURCE1} --strip-components 1
66
67%build
68autoreconf
69export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
70export LIBS="-lcx"
71%configure
72%if %{with documentation}
73make everything %{?_smp_mflags}
74gzip -9f doc/nasmdoc.ps
75gzip -9f doc/nasmdoc.txt
76%else
77make all %{?_smp_mflags}
78%endif
79
80%install
81make INSTALLROOT=$RPM_BUILD_ROOT install install_rdf
82
83%clean
84rm -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
Note: See TracBrowser for help on using the repository browser.