| 1 | # -*- coding: utf-8 -*-
|
|---|
| 2 | Summary: A portable x86 assembler which uses Intel-like syntax
|
|---|
| 3 | Name: nasm
|
|---|
| 4 | Version: 2.10
|
|---|
| 5 | Release: 1%{?dist}
|
|---|
| 6 | License: BSD
|
|---|
| 7 | Group: Development/Languages
|
|---|
| 8 | URL: http://www.nasm.us
|
|---|
| 9 |
|
|---|
| 10 | Source0: nasm-%{version}.tar.xz
|
|---|
| 11 | Source1: nasm-%{version}-xdoc.tar.xz
|
|---|
| 12 |
|
|---|
| 13 | Patch0: nasm-os2.patch
|
|---|
| 14 |
|
|---|
| 15 | BuildRequires: perl
|
|---|
| 16 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|---|
| 17 |
|
|---|
| 18 | %package doc
|
|---|
| 19 | Summary: Documentation for NASM
|
|---|
| 20 | Group: Development/Languages
|
|---|
| 21 | #BuildRequires: ghostscript, texinfo
|
|---|
| 22 |
|
|---|
| 23 | %package rdoff
|
|---|
| 24 | Summary: Tools for the RDOFF binary format, sometimes used with NASM
|
|---|
| 25 | Group: Development/Tools
|
|---|
| 26 |
|
|---|
| 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.
|
|---|
| 31 |
|
|---|
| 32 | %description doc
|
|---|
| 33 | This package contains documentation for the Netwide Assembler (NASM),
|
|---|
| 34 | in HTML, info, PostScript, and text formats.
|
|---|
| 35 |
|
|---|
| 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.
|
|---|
| 40 |
|
|---|
| 41 | %prep
|
|---|
| 42 | %setup -q
|
|---|
| 43 | %patch0 -p1 -b .os2~
|
|---|
| 44 | tar xf %{SOURCE1} --strip-components 1
|
|---|
| 45 |
|
|---|
| 46 | %build
|
|---|
| 47 |
|
|---|
| 48 | export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
|
|---|
| 49 | export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 50 | export LIBS="-lurpo -lmmap"
|
|---|
| 51 | %configure \
|
|---|
| 52 | "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
|
|---|
| 53 |
|
|---|
| 54 | make %{?_smp_mflags}
|
|---|
| 55 | gzip -9f doc/nasmdoc.ps
|
|---|
| 56 | gzip -9f doc/nasmdoc.txt
|
|---|
| 57 |
|
|---|
| 58 | %install
|
|---|
| 59 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 60 | #mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|---|
| 61 | #mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
|
|---|
| 62 | make INSTALLROOT=$RPM_BUILD_ROOT install
|
|---|
| 63 | #install_rdf
|
|---|
| 64 | install -d $RPM_BUILD_ROOT/%{_infodir}
|
|---|
| 65 | install -t $RPM_BUILD_ROOT/%{_infodir} doc/info/*
|
|---|
| 66 |
|
|---|
| 67 | %clean
|
|---|
| 68 | rm -rf ${RPM_BUILD_ROOT}
|
|---|
| 69 |
|
|---|
| 70 | %files
|
|---|
| 71 | %defattr(-,root,root)
|
|---|
| 72 | %doc AUTHORS CHANGES README TODO
|
|---|
| 73 | %{_bindir}/nasm.exe
|
|---|
| 74 | %{_bindir}/ndisasm.exe
|
|---|
| 75 | %{_mandir}/*/*
|
|---|
| 76 | %{_infodir}/nasm.info*
|
|---|
| 77 |
|
|---|
| 78 | %files doc
|
|---|
| 79 | %defattr(-,root,root)
|
|---|
| 80 | %doc doc/html doc/nasmdoc.txt.gz doc/nasmdoc.ps.gz
|
|---|
| 81 |
|
|---|
| 82 | #%files rdoff
|
|---|
| 83 | #%defattr(-,root,root)
|
|---|
| 84 | #%{_bindir}/ldrdf
|
|---|
| 85 | #%{_bindir}/rdf2bin
|
|---|
| 86 | #%{_bindir}/rdf2ihx
|
|---|
| 87 | #%{_bindir}/rdf2com
|
|---|
| 88 | #%{_bindir}/rdfdump
|
|---|
| 89 | #%{_bindir}/rdflib
|
|---|
| 90 | #%{_bindir}/rdx
|
|---|
| 91 | #%{_bindir}/rdf2ith
|
|---|
| 92 | #%{_bindir}/rdf2srec
|
|---|
| 93 |
|
|---|
| 94 | %changelog
|
|---|