nasm/nasm.spec

267 lines
8.9 KiB
RPMSpec

#
# spec file for package nasm (Version 2.02)
#
# 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.02
Release: 3
Summary: Netwide Assembler (An x86 Assembler)
Source: nasm-%version.tar.bz2
Patch0: nasm-array_too_small.patch
Patch1: nasm-codecleanup.patch
Patch2: nasm-fix-crash.diff
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 <Jules@acris.co.uk>
Simon Tatham <anakin@pobox.com>
Nelson Rush <palisade@users.sourceforge.net>
Frank Kotler <fbkotler@users.sf.net>
Stephen Silver <nasm@argentum.freeserve.co.uk>
John Coffman <johninsd@users.sourceforge.net>
Yuri Zaporogets <yuriz@users.sourceforge.net>
H. Peter Anvin <hpa@zytor.com>
John Fine <johnfine@earthlink.net>
Kendall Bennet <KendallB@scitechsoft.com>
Gary Clark
Andrew Crabtree
Rafael R. Sevilla <dido@pacific.net.ph>
Jaime Tejedor GXmez, aka Metalbrain <metalbrain_coder@gmx.net>
James Seter <pharos@zsnes.com>
Edward J. Beroset <beroset@mindspring.com>
Stanislav Karchebny, aka berkus, madfire, daemonhunter <madfire@users.sourceforge.net>
Debbie Wiles, aka debs <debs@dwiles.demon.co.uk>
Trevor Woerner
Michael K. Ter Louw <mterlo1@uic.edu>
Martin Wawro
Alexei Frounze <alexfru@users.sourceforge.net>
Keith Kanios, aka SpooK <keith@kanios.net>
Chuck Crayne <ccrayne@users.sourceforge.net>
%prep
%setup -q
%patch
%patch1
%patch2
%package doc
License: LGPL v2.1 or later
Group: Development/Languages/Other
Summary: Documentation for Nasm
PreReq: %install_info_prereq
Provides: nasm:/usr/share/doc/packages/nasm/nasmdoc.pdf
%description doc
This package contains the documentation for Nasm.
Authors:
--------
Julian Hall <Jules@acris.co.uk>
Simon Tatham <anakin@pobox.com>
Nelson Rush <palisade@users.sourceforge.net>
Frank Kotler <fbkotler@users.sf.net>
Stephen Silver <nasm@argentum.freeserve.co.uk>
John Coffman <johninsd@users.sourceforge.net>
Yuri Zaporogets <yuriz@users.sourceforge.net>
H. Peter Anvin <hpa@zytor.com>
John Fine <johnfine@earthlink.net>
Kendall Bennet <KendallB@scitechsoft.com>
Gary Clark
Andrew Crabtree
Rafael R. Sevilla <dido@pacific.net.ph>
Jaime Tejedor GXmez, aka Metalbrain <metalbrain_coder@gmx.net>
James Seter <pharos@zsnes.com>
Edward J. Beroset <beroset@mindspring.com>
Stanislav Karchebny, aka berkus, madfire, daemonhunter <madfire@users.sourceforge.net>
Debbie Wiles, aka debs <debs@dwiles.demon.co.uk>
Trevor Woerner
Michael K. Ter Louw <mterlo1@uic.edu>
Martin Wawro
Alexei Frounze <alexfru@users.sourceforge.net>
Keith Kanios, aka SpooK <keith@kanios.net>
Chuck Crayne <ccrayne@users.sourceforge.net>
%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 doc
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%postun doc
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%files
%defattr(-,root,root)
/usr/bin/*
%doc %{_mandir}/man1/*.1.gz
%files doc
%defattr(-,root,root)
%doc %{_docdir}/nasm
%doc %{_infodir}/nasm*
%changelog
* Tue Apr 15 2008 coolo@suse.de
- fix crash in syslinux
* Mon Apr 07 2008 pth@suse.de
- Update to 2.02:
* Additional fixes for MMX operands with explicit "qword", as well as
(hopefully) SSE operands with "oword".
* Fix handling of truncated strings with DO.
* Fix segfaults due to memory overwrites when floating-point constants
were used.
* Fix segfaults due to missing include files.
* Add autogenerated instruction list back into the documentation.
* ELF: Fix segfault when generating stabs, and no symbols have been
defined.
* ELF: Experimental support for DWARF debugging information.
* New compile date and time standard macros.
* %%ifnum now returns true for negative numbers.
* Add support for the XSAVE instruction group.
* Fix issue with some warnings getting emitted way too many times.
* Autogenerated instruction list added to the documentation.
- Split off -doc subpackage
* Tue Jan 22 2008 pth@suse.de
- Update to 2.01 final.
* 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
* Tue Feb 11 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