| 1 | Summary: A portable x86 assembler which uses Intel-like syntax
|
|---|
| 2 | Name: nasm
|
|---|
| 3 | Version: 2.11.08
|
|---|
| 4 | Release: 2%{?dist}
|
|---|
| 5 | License: BSD
|
|---|
| 6 | Group: Development/Languages
|
|---|
| 7 | URL: http://www.nasm.us
|
|---|
| 8 | #define svn_url e:/trees/nasm/trunk
|
|---|
| 9 | %define svn_url http://svn.netlabs.org/repos/ports/nasm/trunk
|
|---|
| 10 | %define svn_rev 1237
|
|---|
| 11 |
|
|---|
| 12 | Source0: %{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip
|
|---|
| 13 | Source1: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}-xdoc.tar.bz2
|
|---|
| 14 |
|
|---|
| 15 | BuildRequires: perl
|
|---|
| 16 | BuildRequires: autoconf
|
|---|
| 17 | #Requires(post): /sbin/install-info
|
|---|
| 18 | #Requires(preun): /sbin/install-info
|
|---|
| 19 |
|
|---|
| 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 21 |
|
|---|
| 22 | %package rdoff
|
|---|
| 23 | Summary: Tools for the RDOFF binary format, sometimes used with NASM
|
|---|
| 24 | Group: Development/Tools
|
|---|
| 25 |
|
|---|
| 26 | %package doc
|
|---|
| 27 | Summary: Documentation for NASM
|
|---|
| 28 | BuildRequires: texinfo
|
|---|
| 29 | #BuildRequires: ghostscript, texinfo
|
|---|
| 30 | BuildArch: noarch
|
|---|
| 31 | # For arch to noarch conversion
|
|---|
| 32 | Obsoletes: %{name}-doc < %{version}-%{release}
|
|---|
| 33 |
|
|---|
| 34 | %description
|
|---|
| 35 | NASM is the Netwide Assembler, a free portable assembler for the Intel
|
|---|
| 36 | 80x86 microprocessor series, using primarily the traditional Intel
|
|---|
| 37 | instruction mnemonics and syntax.
|
|---|
| 38 |
|
|---|
| 39 | %description doc
|
|---|
| 40 | This package contains documentation for the Netwide Assembler (NASM),
|
|---|
| 41 | in HTML, info, PostScript, and text formats.
|
|---|
| 42 |
|
|---|
| 43 | %description rdoff
|
|---|
| 44 | Tools for the operating-system independent RDOFF binary format, which
|
|---|
| 45 | is sometimes used with the Netwide Assembler (NASM). These tools
|
|---|
| 46 | include linker, library manager, loader, and information dump.
|
|---|
| 47 |
|
|---|
| 48 | %debug_package
|
|---|
| 49 |
|
|---|
| 50 | %prep
|
|---|
| 51 | %if %{?svn_rev:%(sh -c 'if test -f "%{_sourcedir}/%{name}-%{version}-r%{svn_rev}.zip" ; then echo 1 ; else echo 0 ; fi')}%{?!svn_rev):0}
|
|---|
| 52 | %setup -q
|
|---|
| 53 | %else
|
|---|
| 54 | %setup -n "%{name}-%{version}" -Tc
|
|---|
| 55 | svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force
|
|---|
| 56 | rm -f "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip"
|
|---|
| 57 | (cd .. && zip -SrX9 "%{_sourcedir}/%{name}-%{version}%{?svn_rev:-r%{svn_rev}}.zip" "%{name}-%{version}")
|
|---|
| 58 | %endif
|
|---|
| 59 | tar xjf %{SOURCE1} --strip-components 1
|
|---|
| 60 |
|
|---|
| 61 | %build
|
|---|
| 62 | sh autogen.sh
|
|---|
| 63 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 64 | # as long as ghostscript is not there as rpm, take care that ps2pdf.cmd and gsos2
|
|---|
| 65 | # are found in the path
|
|---|
| 66 | export PS2PDF=ps2pdf.cmd
|
|---|
| 67 | %configure
|
|---|
| 68 | make everything %{?_smp_mflags}
|
|---|
| 69 | gzip -9f doc/nasmdoc.ps
|
|---|
| 70 | gzip -9f doc/nasmdoc.txt
|
|---|
| 71 |
|
|---|
| 72 | %install
|
|---|
| 73 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 74 | make INSTALLROOT=$RPM_BUILD_ROOT install install_rdf
|
|---|
| 75 | install -d $RPM_BUILD_ROOT/%{_infodir}
|
|---|
| 76 | install -t $RPM_BUILD_ROOT/%{_infodir} doc/info/*
|
|---|
| 77 |
|
|---|
| 78 | %clean
|
|---|
| 79 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 80 |
|
|---|
| 81 | #%post
|
|---|
| 82 | #if [ -e %{_infodir}/nasm.info.gz ]; then
|
|---|
| 83 | # /sbin/install-info %{_infodir}/nasm.info.gz %{_infodir}/dir || :
|
|---|
| 84 | #fi
|
|---|
| 85 |
|
|---|
| 86 | #%preun
|
|---|
| 87 | #if [ $1 = 0 -a -e %{_infodir}/nasm.info.gz ]; then
|
|---|
| 88 | # /sbin/install-info --delete %{_infodir}/nasm.info.gz %{_infodir}/dir || :
|
|---|
| 89 | #fi
|
|---|
| 90 |
|
|---|
| 91 | %files
|
|---|
| 92 | %doc AUTHORS CHANGES README TODO
|
|---|
| 93 | %{_bindir}/nasm.exe
|
|---|
| 94 | %{_bindir}/ndisasm.exe
|
|---|
| 95 | %{_mandir}/man1/nasm*
|
|---|
| 96 | %{_mandir}/man1/ndisasm*
|
|---|
| 97 | %{_infodir}/nasm.info*
|
|---|
| 98 |
|
|---|
| 99 | %files doc
|
|---|
| 100 | %doc doc/html doc/nasmdoc.txt.gz doc/nasmdoc.ps.gz doc/nasmdoc.pdf
|
|---|
| 101 |
|
|---|
| 102 | %files rdoff
|
|---|
| 103 | %{_bindir}/ldrdf.exe
|
|---|
| 104 | %{_bindir}/rdf2bin.exe
|
|---|
| 105 | %{_bindir}/rdf2ihx.exe
|
|---|
| 106 | %{_bindir}/rdf2com.exe
|
|---|
| 107 | %{_bindir}/rdfdump.exe
|
|---|
| 108 | %{_bindir}/rdflib.exe
|
|---|
| 109 | %{_bindir}/rdx.exe
|
|---|
| 110 | %{_bindir}/rdf2ith.exe
|
|---|
| 111 | %{_bindir}/rdf2srec.exe
|
|---|
| 112 | %{_mandir}/man1/rd*
|
|---|
| 113 | %{_mandir}/man1/ld*
|
|---|
| 114 |
|
|---|
| 115 |
|
|---|
| 116 | %changelog
|
|---|
| 117 | * Thu 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
|
|---|