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

Last change on this file since 587 was 574, checked in by Silvan Scherrer, 10 years ago

NASM: wrong svn rev in spec file

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