Changes of Revision 7
[-] | Changed | nasm.spec |
x 1
2 -# -*- coding: utf-8 -*- 3 -%define nasm_version 2.02 4 -Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax 5 -Name: nasm 6 -Version: 2.02.00 7 -Release: 1 8 -License: LGPL 9 -Group: Development/Languages 10 -Source: ftp://download.sourceforge.net/pub/sourceforge/nasm/nasm-%{nasm_version}.tar.bz2 11 -URL: http://nasm.sourceforge.net/ 12 -BuildRoot: /tmp/rpm-build-nasm 13 -Prefix: %{_prefix} 14 -BuildPrereq: perl 15 -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 16 -Requires(post): /sbin/install-info 17 -Requires(preun): /sbin/install-info 18 -BuildRequires: ghostscript-library 19 - 20 -%package doc 21 -Summary: Extensive documentation for NASM 22 -Group: Development/Languages 23 -Prereq: /sbin/install-info 24 - 25 -%package rdoff 26 -Summary: Tools for the RDOFF binary format, sometimes used with NASM. 27 -Group: Development/Tools 28 +# 29 +# spec file for package nasm (Version 2.01) 30 +# 31 +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. 32 +# This file and all modifications and additions to the pristine 33 +# package are under the same license as the package itself. 34 +# 35 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 36 +# 37 + 38 +# norootforbuild 39 + 40 +Name: nasm 41 +BuildRequires: ghostscript_any 42 +Url: http://nasm.sourceforge.net/ 43 +License: LGPL v2.1 or later 44 +Group: Development/Languages/Other 45 +AutoReqProv: on 46 +Version: 2.01 47 +Release: 1 48 +Summary: Netwide Assembler (An x86 Assembler) 49 +Source: nasm-%version.tar.bz2 50 +Patch0: nasm-array_too_small.patch 51 +Patch1: nasm-codecleanup.patch 52 +PreReq: %install_info_prereq 53 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 54 55 %description 56 -NASM is the Netwide Assembler, a free portable assembler for the Intel 57 -80x86 microprocessor series, using primarily the traditional Intel 58 -instruction mnemonics and syntax. 59 - 60 -%description doc 61 -Extensive documentation for the Netwide Assembler, NASM, in HTML, 62 -info, PostScript and text formats. 63 - 64 -%description rdoff 65 -Tools for the operating-system independent RDOFF binary format, which 66 -is sometimes used with the Netwide Assembler (NASM). These tools 67 -include linker, library manager, loader, and information dump. 68 +NASM is a prototype general-purpose x86 assembler. It can currently 69 +output several binary formats, including ELF, a.out, Win32, and OS/2. 70 + 71 +Read the licence agreement in /usr/share/doc/packages/nasm/Licence. 72 + 73 + 74 + 75 +Authors: 76 +-------- 77 + Julian Hall <Jules@acris.co.uk> 78 + Simon Tatham <anakin@pobox.com> 79 + Nelson Rush <palisade@users.sourceforge.net> 80 + Frank Kotler <fbkotler@users.sf.net> 81 + Stephen Silver <nasm@argentum.freeserve.co.uk> 82 + John Coffman <johninsd@users.sourceforge.net> 83 + Yuri Zaporogets <yuriz@users.sourceforge.net> 84 + H. Peter Anvin <hpa@zytor.com> 85 + John Fine <johnfine@earthlink.net> 86 + Kendall Bennet <KendallB@scitechsoft.com> 87 + Gary Clark 88 + Andrew Crabtree 89 + Rafael R. Sevilla <dido@pacific.net.ph> 90 + Jaime Tejedor GXmez, aka Metalbrain <metalbrain_coder@gmx.net> 91 + James Seter <pharos@zsnes.com> 92 + Edward J. Beroset <beroset@mindspring.com> 93 + Stanislav Karchebny, aka berkus, madfire, daemonhunter <madfire@users.sourceforge.net> 94 + Debbie Wiles, aka debs <debs@dwiles.demon.co.uk> 95 + Trevor Woerner 96 + Michael K. Ter Louw <mterlo1@uic.edu> 97 + Martin Wawro 98 + Alexei Frounze <alexfru@users.sourceforge.net> 99 + Keith Kanios, aka SpooK <keith@kanios.net> 100 + Chuck Crayne <ccrayne@users.sourceforge.net> 101 102 %prep 103 -%setup -q -n nasm-%{nasm_version} 104 +%setup -q 105 +%patch 106 +%patch1 107 108 %build 109 -%configure 110 -make %{?_smp_mflags} everything 111 +export CFLAGS="$RPM_OPT_FLAGS" 112 +./configure --prefix=/usr --infodir=%{_infodir} --mandir=%{_mandir} 113 +make all doc 114 115 %install 116 -rm -rf "$RPM_BUILD_ROOT" 117 -mkdir -p "$RPM_BUILD_ROOT"/%{_bindir} 118 -mkdir -p "$RPM_BUILD_ROOT"/%{_mandir}/man1 119 -mkdir -p "$RPM_BUILD_ROOT"/%{_infodir} 120 -mkdir -p "$RPM_BUILD_ROOT"/usr/tempdoc 121 -%makeinstall install_everything docdir="$RPM_BUILD_ROOT"/usr/tempdoc 122 -cp -a $RPM_BUILD_ROOT/usr/tempdoc/html \ 123 - $RPM_BUILD_ROOT/usr/tempdoc/nasmdoc.{ps,txt,pdf} . 124 -gzip -9f nasmdoc.{ps,txt} 125 -# remove unpackaged files from the buildroot 126 -rm -rf $RPM_BUILD_ROOT%{_prefix}/tempdoc 127 +install -d -m 755 $RPM_BUILD_ROOT/usr/bin 128 +install -d -m 755 $RPM_BUILD_ROOT/%{_mandir}/man1 129 +install -d -m 755 $RPM_BUILD_ROOT/%{_docdir}/nasm 130 +install -d -m 755 $RPM_BUILD_ROOT/%{_docdir}/nasm/rdoff 131 +install -d -m 755 $RPM_BUILD_ROOT/%{_infodir} 132 +make INSTALLROOT=$RPM_BUILD_ROOT install_everything docdir=%{_docdir}/nasm 133 +make INSTALLROOT=$RPM_BUILD_ROOT install_doc docdir=%{_docdir}/nasm 134 +install -m 644 AUTHORS CHANGES ChangeLog COPYING INSTALL TODO README \ 135 + $RPM_BUILD_ROOT/%{_docdir}/nasm 136 +install -m 644 rdoff/README rdoff/doc/* \ 137 + $RPM_BUILD_ROOT/%{_docdir}/nasm/rdoff 138 +rm -f $RPM_BUILD_ROOT/%_docdir/nasm/*.ps 139 140 %clean 141 -rm -rf "$RPM_BUILD_ROOT" 142 +[ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; 143 144 %post 145 -/sbin/install-info %{_infodir}/nasm.info.gz %{_infodir}/dir || : 146 +%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz 147 148 -%preun 149 -if [ $1 = 0 ]; then 150 - /sbin/install-info --delete %{_infodir}/nasm.info.gz %{_infodir}/dir || : 151 -fi 152 +%postun 153 +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz 154 155 %files 156 %defattr(-,root,root) 157 -%doc AUTHORS CHANGES README TODO 158 -%{_bindir}/nasm 159 -%{_bindir}/ndisasm 160 -%{_mandir}/man1/nasm.1* 161 -%{_mandir}/man1/ndisasm.1* 162 -%{_infodir}/nasm.info*.gz 163 - 164 -%files doc 165 -%defattr(-,root,root) 166 -%doc html nasmdoc.txt.gz nasmdoc.pdf nasmdoc.ps.gz 167 - 168 -%files rdoff 169 -%defattr(-,root,root) 170 -%{_bindir}/ldrdf 171 -%{_bindir}/rdf2bin 172 -%{_bindir}/rdf2com 173 -%{_bindir}/rdf2ihx 174 -%{_bindir}/rdfdump 175 -%{_bindir}/rdflib 176 -%{_bindir}/rdx 177 -%{_mandir}/man1/ldrdf.1* 178 -%{_mandir}/man1/rdf2bin.1* 179 -%{_mandir}/man1/rdf2com.1* 180 -%{_mandir}/man1/rdfdump.1* 181 -%{_mandir}/man1/rdflib.1* 182 -%{_mandir}/man1/rdx.1* 183 +/usr/bin/* 184 +%doc %{_docdir}/nasm 185 +%doc %{_mandir}/man1/*.1.gz 186 +%doc %{_infodir}/nasm* 187 + 188 +%changelog 189 +* Tue Jan 22 2008 pth@suse.de 190 +- Update to 2.01 final. 191 +* Thu Jan 10 2008 pth@suse.de 192 +- Update to 2.01rc2: 193 + 2.01 194 + ---- 195 + * Fix the handling of MMX registers with explicit "qword" tags on 196 + memory (broken in 2.00 due to 64-bit changes.) 197 + * Fix the PREFETCH instructions. 198 + * Fix the documentation. 199 + * Fix debugging info when using "-f elf" (backwards alias for "-f 200 + elf32"). 201 |