nasm/nasm.spec
OBS User autobuild d2934a9256 Accepting request 33688 from devel:tools:compiler
Copy from devel:tools:compiler/nasm based on submit request 33688 from user oertel

OBS-URL: https://build.opensuse.org/request/show/33688
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nasm?expand=0&rev=12
2010-03-01 14:57:46 +00:00

150 lines
4.9 KiB
RPMSpec

#
# spec file for package nasm (Version 2.07)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: nasm
BuildRequires: ghostscript_any
Url: http://nasm.sourceforge.net/
License: BSD 2-clause
Group: Development/Languages/Other
AutoReqProv: on
Version: 2.07
Release: 1
Summary: Netwide Assembler (An x86 Assembler)
Source: nasm-%version.tar.bz2
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
%package doc
License: LGPLv2.1+
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 %{?jobs:-j%jobs} 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 LICENSE 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
rm -f %buildroot%{_docdir}/nasm/INSTALL
%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