2007-01-16 00:26:27 +01:00
|
|
|
#
|
2012-09-08 13:24:11 +02:00
|
|
|
# spec file for package nasm
|
2007-01-16 00:26:27 +01:00
|
|
|
#
|
2013-04-16 11:32:57 +02:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:26:27 +01:00
|
|
|
#
|
2008-09-13 05:56:32 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-26 17:44:59 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:26:27 +01:00
|
|
|
#
|
|
|
|
|
2008-04-09 00:34:29 +02:00
|
|
|
|
2007-01-26 17:44:59 +01:00
|
|
|
Name: nasm
|
2008-01-12 03:03:07 +01:00
|
|
|
Url: http://nasm.sourceforge.net/
|
2013-07-26 11:02:14 +02:00
|
|
|
Version: 2.10.09
|
2012-09-08 13:24:11 +02:00
|
|
|
Release: 0
|
2007-01-26 17:44:59 +01:00
|
|
|
Summary: Netwide Assembler (An x86 Assembler)
|
2012-09-08 13:24:11 +02:00
|
|
|
License: BSD-2-Clause
|
|
|
|
Group: Development/Languages/Other
|
2013-04-16 11:32:57 +02:00
|
|
|
Source: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/nasm-%{version}.tar.bz2
|
2012-09-08 13:24:11 +02:00
|
|
|
BuildRequires: makeinfo
|
2007-01-26 17:44:59 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:26:27 +01:00
|
|
|
|
|
|
|
%description
|
2007-01-26 17:44:59 +01:00
|
|
|
NASM is a prototype general-purpose x86 assembler. It can currently
|
|
|
|
output several binary formats, including ELF, a.out, Win32, and OS/2.
|
2007-01-16 00:26:27 +01:00
|
|
|
|
2007-01-26 17:44:59 +01:00
|
|
|
Read the licence agreement in /usr/share/doc/packages/nasm/Licence.
|
2007-01-16 00:26:27 +01:00
|
|
|
|
|
|
|
%prep
|
2009-01-15 00:41:50 +01:00
|
|
|
%setup -q
|
2007-01-16 00:26:27 +01:00
|
|
|
|
2008-04-09 00:34:29 +02:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for Nasm
|
2012-09-08 13:24:11 +02:00
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: Development/Languages/Other
|
2008-04-09 00:34:29 +02:00
|
|
|
PreReq: %install_info_prereq
|
|
|
|
Provides: nasm:/usr/share/doc/packages/nasm/nasmdoc.pdf
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package contains the documentation for Nasm.
|
|
|
|
|
2007-01-16 00:26:27 +01:00
|
|
|
%build
|
2010-09-10 15:00:11 +02:00
|
|
|
touch -r ./ver.c ./ver.c.stamp
|
2011-03-22 17:44:08 +01:00
|
|
|
TS=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
|
|
|
sed -i "s/__DATE__/\"$TS\"/g" ver.c
|
2010-09-10 15:00:11 +02:00
|
|
|
touch -r ./ver.c.stamp ./ver.c
|
|
|
|
%configure
|
2011-01-10 10:45:32 +01:00
|
|
|
make all
|
2012-09-08 13:24:11 +02:00
|
|
|
|
2011-01-10 10:45:32 +01:00
|
|
|
cd doc
|
|
|
|
make html info nasmdoc.ps nasmdoc.txt
|
2007-01-16 00:26:27 +01:00
|
|
|
|
|
|
|
%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
|
2011-01-10 10:45:32 +01:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/%{_docdir}/nasm/html
|
2007-01-16 00:26:27 +01:00
|
|
|
install -d -m 755 $RPM_BUILD_ROOT/%{_infodir}
|
2011-01-10 10:45:32 +01:00
|
|
|
make INSTALLROOT=$RPM_BUILD_ROOT install
|
|
|
|
make INSTALLROOT=$RPM_BUILD_ROOT rdf_install
|
|
|
|
install -m 644 AUTHORS CHANGES ChangeLog LICENSE TODO README doc/*.txt \
|
2007-01-16 00:26:27 +01:00
|
|
|
$RPM_BUILD_ROOT/%{_docdir}/nasm
|
|
|
|
install -m 644 rdoff/README rdoff/doc/* \
|
|
|
|
$RPM_BUILD_ROOT/%{_docdir}/nasm/rdoff
|
2011-01-10 10:45:32 +01:00
|
|
|
install -m 644 doc/html/* $RPM_BUILD_ROOT%{_docdir}/nasm/html
|
|
|
|
install -m 644 ndisasm.1 nasm.1 rdoff/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
|
|
|
|
install -m 644 doc/info/* $RPM_BUILD_ROOT%{_infodir}
|
2007-01-16 00:26:27 +01:00
|
|
|
|
2008-04-09 00:34:29 +02:00
|
|
|
%post doc
|
2007-01-16 00:26:27 +01:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
2008-04-09 00:34:29 +02:00
|
|
|
%postun doc
|
2007-01-16 00:26:27 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
/usr/bin/*
|
2008-01-12 03:03:07 +01:00
|
|
|
%doc %{_mandir}/man1/*.1.gz
|
2008-04-09 00:34:29 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_docdir}/nasm
|
2007-01-16 00:26:27 +01:00
|
|
|
%doc %{_infodir}/nasm*
|
|
|
|
|
2008-01-12 03:03:07 +01:00
|
|
|
%changelog
|