# # spec file for package nasm (Version 2.01rc2) # # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. # This file and all modifications and additions to the pristine # package are under the same license as the package itself. # # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild Name: nasm BuildRequires: ghostscript_any Url: http://nasm.sourceforge.net/ License: LGPL v2.1 or later Group: Development/Languages/Other AutoReqProv: on Version: 2.01rc2 Release: 1 Summary: Netwide Assembler (An x86 Assembler) Source: nasm-%version.tar.bz2 Patch0: nasm-array_too_small.patch Patch1: nasm-codecleanup.patch PreReq: %install_info_prereq BuildRoot: %{_tmppath}/%{name}-%{version}-build %description NASM is a prototype general-purpose x86 assembler. It can currently output several binary formats, including ELF, a.out, Win32, and OS/2. Read the licence agreement in /usr/share/doc/packages/nasm/Licence. Authors: -------- Julian Hall Simon Tatham Nelson Rush Frank Kotler Stephen Silver John Coffman Yuri Zaporogets H. Peter Anvin John Fine Kendall Bennet Gary Clark Andrew Crabtree Rafael R. Sevilla Jaime Tejedor GXmez, aka Metalbrain James Seter Edward J. Beroset Stanislav Karchebny, aka berkus, madfire, daemonhunter Debbie Wiles, aka debs Trevor Woerner Michael K. Ter Louw Martin Wawro Alexei Frounze Keith Kanios, aka SpooK Chuck Crayne %prep %setup -q %patch %patch1 %build export CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --infodir=%{_infodir} --mandir=%{_mandir} make all doc %install install -d -m 755 $RPM_BUILD_ROOT/usr/bin install -d -m 755 $RPM_BUILD_ROOT/%{_mandir}/man1 install -d -m 755 $RPM_BUILD_ROOT/%{_docdir}/nasm install -d -m 755 $RPM_BUILD_ROOT/%{_docdir}/nasm/rdoff install -d -m 755 $RPM_BUILD_ROOT/%{_infodir} make INSTALLROOT=$RPM_BUILD_ROOT install_everything docdir=%{_docdir}/nasm make INSTALLROOT=$RPM_BUILD_ROOT install_doc docdir=%{_docdir}/nasm install -m 644 AUTHORS CHANGES ChangeLog COPYING INSTALL TODO README \ $RPM_BUILD_ROOT/%{_docdir}/nasm install -m 644 rdoff/README rdoff/doc/* \ $RPM_BUILD_ROOT/%{_docdir}/nasm/rdoff rm -f $RPM_BUILD_ROOT/%_docdir/nasm/*.ps %clean [ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; %post %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %postun %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %files %defattr(-,root,root) /usr/bin/* %doc %{_docdir}/nasm %doc %{_mandir}/man1/*.1.gz %doc %{_infodir}/nasm* %changelog * Thu Jan 10 2008 - pth@suse.de - Update to 2.01rc2: 2.01 ---- * Fix the handling of MMX registers with explicit "qword" tags on memory (broken in 2.00 due to 64-bit changes.) * Fix the PREFETCH instructions. * Fix the documentation. * Fix debugging info when using "-f elf" (backwards alias for "-f elf32"). * Man pages for rdoff tools (from the Debian project.) 2.00 ---- * Added c99 data-type compliance. * Added general x86-64 support. * Added win64 (x86-64 COFF) output format. * Added __BITS__ standard macro. * Renamed the elf output format to elf32 for clarity. * Added elf64 and macho (MacOS X) output formats. * Added Numeric constants in DQ directive. * Added oword, do and reso pseudo operands. * Allow underscores in numbers. * Added 8-, 16- and 128-bit floating-point formats. * Added binary, octal and hexadecimal floating-point. * Correct the generation of floating-point constants. * Added Floating-point option control. * Added Infinity and NaN floating point support. * Added ELF Symbol Visibility support. * Added Setting OSABI value in ELF header directive. * Added Generate Makefile Dependencies option. * Added Unlimited Optimization Passes option. * Added %%IFN and %%ELIFN support. * Added Logical Negation Operator. * Enhanced Stack Relative Preprocessor Directives. * Enhanced ELF Debug Formats. * Enhanced Send Errors to a File option. * Added SSSE3, SSE4.1, SSE4.2, SSE5 support. * Added a large number of additional instructions. * Significant performance improvements. - Fix array sized to low. - Fix pointer->int cast. * Fri Jan 26 2007 - ro@suse.de - replace ghostscript-mini by ghostscript_any in BuildReq (#119914) * Wed Jan 25 2006 - mls@suse.de - converted neededforbuild to BuildRequires * Thu Sep 22 2005 - uli@suse.de - update -> 0.98.39 (includes secfix and no longer builds with -ansi, among other things) * Tue Dec 21 2004 - sf@suse.de - use vsnprintf to avoid buffer overflow (#49336) * Wed Feb 25 2004 - stepan@suse.de - update to 0.98.38 - use -fno-strict-aliasing - add rdx tools * Sat Jan 10 2004 - adrian@suse.de - add %%defattr * Thu Apr 24 2003 - ro@suse.de - fix install_info --delete call and move from preun to postun * Mon Feb 10 2003 - mmj@suse.de - Use %%install_info macro [#23442] - Use BuildRoot: * Wed Nov 20 2002 - ro@suse.de - use ghostscript-mini-packages * Wed Sep 18 2002 - uli@suse.de - update -> 0.98.35 (adds -X option to specify error reporting format, drops use of tmpnam() in rdoff) * Tue Sep 17 2002 - ro@suse.de - removed bogus self-provides * Sun Aug 18 2002 - ro@suse.de - fixed neededforbuild * Sun Aug 18 2002 - ro@suse.de - added ghostscript-x11-packages to neededforbuild (for gs) * Wed Jul 31 2002 - uli@suse.de - update -> 0.98.34 (need SSE2 support) - use RPM_OPT_FLAGS * Thu May 03 2001 - uli@suse.de - schwab fixed the fixed fix, and now it works! No, really, it works! * Wed May 02 2001 - uli@suse.de - ditched the fix, it breaks zsnes 1.20 and God knows what else... * Fri Apr 27 2001 - uli@suse.de - added a new and improved fix by H.J. Lu... * Thu Apr 26 2001 - uli@suse.de - some versions of ld don't eat the ELF binaries created by nasm 0.98, added fix by H.J. Lu * Thu Nov 09 2000 - uli@suse.de - added missing docs * Fri Jun 02 2000 - kukuk@suse.de - Use doc macro * Thu Mar 02 2000 - kukuk@suse.de - Use _mandir macro * Mon Sep 13 1999 - bs@suse.de - ran old prepare_spec on spec file to switch to new prepare_spec. * Fri Jun 04 1999 - uli@suse.de - update -> 0.98 * Thu Dec 17 1998 - uli@suse.de - new package, version 0.97