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