Search
j0ke.net Open Build Service
>
Projects
>
devel
>
nasm
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 7
[-]
[+]
Changed
nasm.spec
@@ -1,100 +1,202 @@ -# -*- coding: utf-8 -*- -%define nasm_version 2.02 -Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax -Name: nasm -Version: 2.02.00 -Release: 1 -License: LGPL -Group: Development/Languages -Source: ftp://download.sourceforge.net/pub/sourceforge/nasm/nasm-%{nasm_version}.tar.bz2 -URL: http://nasm.sourceforge.net/ -BuildRoot: /tmp/rpm-build-nasm -Prefix: %{_prefix} -BuildPrereq: perl -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -Requires(post): /sbin/install-info -Requires(preun): /sbin/install-info -BuildRequires: ghostscript-library - -%package doc -Summary: Extensive documentation for NASM -Group: Development/Languages -Prereq: /sbin/install-info - -%package rdoff -Summary: Tools for the RDOFF binary format, sometimes used with NASM. -Group: Development/Tools +# +# spec file for package nasm (Version 2.01) +# +# 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.01 +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 the Netwide Assembler, a free portable assembler for the Intel -80x86 microprocessor series, using primarily the traditional Intel -instruction mnemonics and syntax. - -%description doc -Extensive documentation for the Netwide Assembler, NASM, in HTML, -info, PostScript and text formats. - -%description rdoff -Tools for the operating-system independent RDOFF binary format, which -is sometimes used with the Netwide Assembler (NASM). These tools -include linker, library manager, loader, and information dump. +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 -n nasm-%{nasm_version} +%setup -q +%patch +%patch1 %build -%configure -make %{?_smp_mflags} everything +export CFLAGS="$RPM_OPT_FLAGS" +./configure --prefix=/usr --infodir=%{_infodir} --mandir=%{_mandir} +make all doc %install -rm -rf "$RPM_BUILD_ROOT" -mkdir -p "$RPM_BUILD_ROOT"/%{_bindir} -mkdir -p "$RPM_BUILD_ROOT"/%{_mandir}/man1 -mkdir -p "$RPM_BUILD_ROOT"/%{_infodir} -mkdir -p "$RPM_BUILD_ROOT"/usr/tempdoc -%makeinstall install_everything docdir="$RPM_BUILD_ROOT"/usr/tempdoc -cp -a $RPM_BUILD_ROOT/usr/tempdoc/html \ - $RPM_BUILD_ROOT/usr/tempdoc/nasmdoc.{ps,txt,pdf} . -gzip -9f nasmdoc.{ps,txt} -# remove unpackaged files from the buildroot -rm -rf $RPM_BUILD_ROOT%{_prefix}/tempdoc +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 -rm -rf "$RPM_BUILD_ROOT" +[ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; %post -/sbin/install-info %{_infodir}/nasm.info.gz %{_infodir}/dir || : +%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz -%preun -if [ $1 = 0 ]; then - /sbin/install-info --delete %{_infodir}/nasm.info.gz %{_infodir}/dir || : -fi +%postun +%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %files %defattr(-,root,root) -%doc AUTHORS CHANGES README TODO -%{_bindir}/nasm -%{_bindir}/ndisasm -%{_mandir}/man1/nasm.1* -%{_mandir}/man1/ndisasm.1* -%{_infodir}/nasm.info*.gz - -%files doc -%defattr(-,root,root) -%doc html nasmdoc.txt.gz nasmdoc.pdf nasmdoc.ps.gz - -%files rdoff -%defattr(-,root,root) -%{_bindir}/ldrdf -%{_bindir}/rdf2bin -%{_bindir}/rdf2com -%{_bindir}/rdf2ihx -%{_bindir}/rdfdump -%{_bindir}/rdflib -%{_bindir}/rdx -%{_mandir}/man1/ldrdf.1* -%{_mandir}/man1/rdf2bin.1* -%{_mandir}/man1/rdf2com.1* -%{_mandir}/man1/rdfdump.1* -%{_mandir}/man1/rdflib.1* -%{_mandir}/man1/rdx.1* +/usr/bin/* +%doc %{_docdir}/nasm +%doc %{_mandir}/man1/*.1.gz +%doc %{_infodir}/nasm* + +%changelog +* 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").