nasm/nasm.spec

135 lines
4.1 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nasm (Version 0.98.39)
#
# Copyright (c) 2005 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://www.suse.de/feedback/
#
# norootforbuild
Name: nasm
BuildRequires: ghostscript-mini
URL: http://nasm.sourceforge.net/
License: LGPL
Group: Development/Languages/Other
Autoreqprov: on
Version: 0.98.39
Release: 1
Summary: Netwide Assembler (an x86 assembler)
Source: nasm-%version.tar.bz2
PreReq: %install_info_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
NASM is a prototype general-purpose x86 assembler. It will currently
output several binary formats, including among others ELF, a.out, Win32
and OS/2.
Please read the licence agreement in
/usr/share/doc/packages/nasm/Licence.
Authors:
--------
Julian Hall <jules@earthcorp.com>
%prep
%setup
%build
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \
./configure --prefix=/usr --infodir=%{_infodir} --mandir=%{_mandir}
make all doc
%install
[ "$RPM_BUILD_ROOT" != "/" -a -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT;
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/nasm.1.gz
%doc %{_mandir}/man1/ndisasm.1.gz
%doc %{_infodir}/nasm*
%changelog -n nasm
* 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