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

Last change on this file since 321 was 305, checked in by Yuri Dario, 14 years ago

spec: added nasm build.

File size: 2.2 KB
Line 
1# -*- coding: utf-8 -*-
2Summary: A portable x86 assembler which uses Intel-like syntax
3Name: nasm
4Version: 2.10
5Release: 1%{?dist}
6License: BSD
7Group: Development/Languages
8URL: http://www.nasm.us
9
10Source0: nasm-%{version}.tar.xz
11Source1: nasm-%{version}-xdoc.tar.xz
12
13Patch0: nasm-os2.patch
14
15BuildRequires: perl
16BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17
18%package doc
19Summary: Documentation for NASM
20Group: Development/Languages
21#BuildRequires: ghostscript, texinfo
22
23%package rdoff
24Summary: Tools for the RDOFF binary format, sometimes used with NASM
25Group: Development/Tools
26
27%description
28NASM is the Netwide Assembler, a free portable assembler for the Intel
2980x86 microprocessor series, using primarily the traditional Intel
30instruction mnemonics and syntax.
31
32%description doc
33This package contains documentation for the Netwide Assembler (NASM),
34in HTML, info, PostScript, and text formats.
35
36%description rdoff
37Tools for the operating-system independent RDOFF binary format, which
38is sometimes used with the Netwide Assembler (NASM). These tools
39include linker, library manager, loader, and information dump.
40
41%prep
42%setup -q
43%patch0 -p1 -b .os2~
44tar xf %{SOURCE1} --strip-components 1
45
46%build
47
48export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe"
49export LDFLAGS="-Zbin-files -Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
50export LIBS="-lurpo -lmmap"
51%configure \
52 "--cache-file=%{_topdir}/cache/%{name}-%{_target_cpu}.cache"
53
54make %{?_smp_mflags}
55gzip -9f doc/nasmdoc.ps
56gzip -9f doc/nasmdoc.txt
57
58%install
59rm -rf $RPM_BUILD_ROOT
60#mkdir -p $RPM_BUILD_ROOT%{_bindir}
61#mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
62make INSTALLROOT=$RPM_BUILD_ROOT install
63#install_rdf
64install -d $RPM_BUILD_ROOT/%{_infodir}
65install -t $RPM_BUILD_ROOT/%{_infodir} doc/info/*
66
67%clean
68rm -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
Note: See TracBrowser for help on using the repository browser.