Changeset 570 for spec/trunk/SPECS/nasm.spec
- Timestamp:
- May 5, 2015, 3:33:15 PM (11 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/nasm.spec (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/nasm.spec
r305 r570 1 # -*- coding: utf-8 -*-2 1 Summary: A portable x86 assembler which uses Intel-like syntax 3 2 Name: nasm 4 Version: 2.1 03 Version: 2.11.08 5 4 Release: 1%{?dist} 6 5 License: BSD 7 6 Group: Development/Languages 8 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 1048 9 11 10 Source0: nasm-%{version}.tar.xz 11 Source1: nasm-%{version}-xdoc.tar.xz 12 13 Patch0: nasm-os2.patch 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 14 15 15 BuildRequires: perl 16 BuildRequires: autoconf 17 #Requires(post): /sbin/install-info 18 #Requires(preun): /sbin/install-info 19 16 20 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 17 18 %package doc19 Summary: Documentation for NASM20 Group: Development/Languages21 #BuildRequires: ghostscript, texinfo22 21 23 22 %package rdoff 24 23 Summary: Tools for the RDOFF binary format, sometimes used with NASM 25 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} 26 33 27 34 %description … … 39 46 include linker, library manager, loader, and information dump. 40 47 48 %package debug 49 Summary: HLL debug data for exception handling support 50 51 %description debug 52 %{summary}. 53 41 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} 42 56 %setup -q 43 %patch0 -p1 -b .os2~ 44 tar xf %{SOURCE1} --strip-components 1 57 %else 58 %setup -n "%{name}-%{version}" -Tc 59 svn export %{?svn_rev:-r %{svn_rev}} %{svn_url} . --force 60 rm -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 63 tar xjf %{SOURCE1} --strip-components 1 45 64 46 65 %build 47 48 export CONFIG_SHELL="/@unixroot/usr/bin/sh.exe" 66 sh autogen.sh 49 67 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}68 # as long as ghostscript is not there as rpm, take care that ps2pdf.cmd and gsos2 69 # are found in the path 70 export PS2PDF=ps2pdf.cmd 71 %configure 72 make everything %{?_smp_mflags} 55 73 gzip -9f doc/nasmdoc.ps 56 74 gzip -9f doc/nasmdoc.txt … … 58 76 %install 59 77 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 78 make INSTALLROOT=$RPM_BUILD_ROOT install install_rdf 64 79 install -d $RPM_BUILD_ROOT/%{_infodir} 65 80 install -t $RPM_BUILD_ROOT/%{_infodir} doc/info/* … … 68 83 rm -rf ${RPM_BUILD_ROOT} 69 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 70 95 %files 71 %defattr(-,root,root)72 96 %doc AUTHORS CHANGES README TODO 73 97 %{_bindir}/nasm.exe 74 98 %{_bindir}/ndisasm.exe 75 %{_mandir}/*/* 99 %{_mandir}/man1/nasm* 100 %{_mandir}/man1/ndisasm* 76 101 %{_infodir}/nasm.info* 77 102 78 103 %files doc 79 %defattr(-,root,root) 80 %doc doc/html doc/nasmdoc.txt.gz doc/nasmdoc.ps.gz 104 %doc doc/html doc/nasmdoc.txt.gz doc/nasmdoc.ps.gz doc/nasmdoc.pdf 81 105 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 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 93 121 94 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 TracChangeset
for help on using the changeset viewer.
