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
|
|
|
#
|
2016-03-01 09:42:59 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX 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
|
2016-07-08 13:34:00 +02:00
|
|
|
Version: 2.12.02
|
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
|
2015-02-22 21:58:53 +01:00
|
|
|
Url: http://www.nasm.us/
|
|
|
|
Source: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/nasm-%{version}.tar.xz
|
2016-03-01 09:42:59 +01:00
|
|
|
BuildRequires: asciidoc
|
2015-02-24 09:52:18 +01:00
|
|
|
BuildRequires: fdupes
|
2016-03-01 09:42:59 +01:00
|
|
|
BuildRequires: groff
|
2012-09-08 13:24:11 +02:00
|
|
|
BuildRequires: makeinfo
|
2016-03-01 09:42:59 +01:00
|
|
|
BuildRequires: xmlto
|
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
|
|
|
|
2015-02-22 21:58:53 +01:00
|
|
|
Read the licence agreement in %{_docdir}/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
|
2016-03-01 09:42:59 +01:00
|
|
|
Requires(post): info
|
2015-02-22 21:58:53 +01:00
|
|
|
Requires(preun): info
|
|
|
|
Provides: nasm:%{_docdir}/nasm/nasmdoc.pdf
|
2015-02-24 09:52:18 +01:00
|
|
|
BuildArch: noarch
|
2008-04-09 00:34:29 +02:00
|
|
|
|
|
|
|
%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
|
2015-02-22 21:58:53 +01:00
|
|
|
make %{?_smp_mflags} all
|
2016-03-01 09:42:59 +01:00
|
|
|
make %{?_smp_mflags} -C doc html info nasmdoc.ps nasmdoc.txt
|
2007-01-16 00:26:27 +01:00
|
|
|
|
|
|
|
%install
|
2015-02-22 21:58:53 +01:00
|
|
|
install -d -m 755 %{buildroot}%{_prefix}/bin
|
|
|
|
install -d -m 755 %{buildroot}/%{_mandir}/man1
|
|
|
|
install -d -m 755 %{buildroot}/%{_docdir}/nasm
|
|
|
|
install -d -m 755 %{buildroot}/%{_docdir}/nasm/rdoff
|
|
|
|
install -d -m 755 %{buildroot}/%{_docdir}/nasm/html
|
|
|
|
install -d -m 755 %{buildroot}/%{_infodir}
|
|
|
|
make INSTALLROOT=%{buildroot} install
|
|
|
|
make INSTALLROOT=%{buildroot} rdf_install
|
2011-01-10 10:45:32 +01:00
|
|
|
install -m 644 AUTHORS CHANGES ChangeLog LICENSE TODO README doc/*.txt \
|
2015-02-22 21:58:53 +01:00
|
|
|
%{buildroot}/%{_docdir}/nasm
|
2007-01-16 00:26:27 +01:00
|
|
|
install -m 644 rdoff/README rdoff/doc/* \
|
2015-02-22 21:58:53 +01:00
|
|
|
%{buildroot}/%{_docdir}/nasm/rdoff
|
|
|
|
install -m 644 doc/html/* %{buildroot}%{_docdir}/nasm/html
|
|
|
|
install -m 644 ndisasm.1 nasm.1 rdoff/*.1 %{buildroot}%{_mandir}/man1
|
|
|
|
install -m 644 doc/info/* %{buildroot}%{_infodir}
|
2016-03-01 09:42:59 +01:00
|
|
|
%fdupes -s %{buildroot}%
|
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
|
|
|
|
|
2016-03-01 09:42:59 +01:00
|
|
|
%preun doc
|
2007-01-16 00:26:27 +01:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2016-03-01 09:42:59 +01:00
|
|
|
%{_bindir}/ldrdf
|
|
|
|
%{_bindir}/nasm
|
|
|
|
%{_bindir}/ndisasm
|
|
|
|
%{_bindir}/rdf2bin
|
|
|
|
%{_bindir}/rdf2com
|
|
|
|
%{_bindir}/rdf2ihx
|
|
|
|
%{_bindir}/rdf2ith
|
|
|
|
%{_bindir}/rdf2srec
|
|
|
|
%{_bindir}/rdfdump
|
|
|
|
%{_bindir}/rdflib
|
|
|
|
%{_bindir}/rdx
|
|
|
|
%{_mandir}/man1/ldrdf.1%{ext_man}
|
|
|
|
%{_mandir}/man1/nasm.1%{ext_man}
|
|
|
|
%{_mandir}/man1/ndisasm.1%{ext_man}
|
|
|
|
%{_mandir}/man1/rdf2bin.1%{ext_man}
|
|
|
|
%{_mandir}/man1/rdf2com.1%{ext_man}
|
|
|
|
%{_mandir}/man1/rdf2ihx.1%{ext_man}
|
|
|
|
%{_mandir}/man1/rdf2ith.1%{ext_man}
|
|
|
|
%{_mandir}/man1/rdf2srec.1%{ext_man}
|
|
|
|
%{_mandir}/man1/rdfdump.1%{ext_man}
|
|
|
|
%{_mandir}/man1/rdflib.1%{ext_man}
|
|
|
|
%{_mandir}/man1/rdx.1%{ext_man}
|
2008-04-09 00:34:29 +02:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc %{_docdir}/nasm
|
2016-03-01 09:42:59 +01:00
|
|
|
%{_infodir}/nasm*
|
2007-01-16 00:26:27 +01:00
|
|
|
|
2008-01-12 03:03:07 +01:00
|
|
|
%changelog
|