2007-10-20 01:44:56 +08:00
|
|
|
# -*- coding: utf-8 -*-
|
2007-09-23 07:35:11 +08:00
|
|
|
%define nasm_version @@NASM_VER@@
|
2002-05-01 04:58:18 +08:00
|
|
|
Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
|
|
|
|
Name: nasm
|
2007-09-23 07:35:11 +08:00
|
|
|
Version: @@NASM_MANGLED_VER@@
|
2017-04-24 09:33:53 +08:00
|
|
|
Release: 0%{?dist}
|
2009-07-07 02:14:38 +08:00
|
|
|
License: BSD
|
2012-02-27 00:19:56 +08:00
|
|
|
Source: http://www.nasm.us/pub/nasm/releasebuilds/%{nasm_version}/nasm-%{nasm_version}.tar.xz
|
2009-05-27 07:06:57 +08:00
|
|
|
URL: http://www.nasm.us/
|
2002-05-01 04:58:18 +08:00
|
|
|
BuildRoot: /tmp/rpm-build-nasm
|
2007-09-23 07:35:11 +08:00
|
|
|
Prefix: %{_prefix}
|
2017-04-24 09:33:53 +08:00
|
|
|
@@PERLBUILDREQS@@
|
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: asciidoc
|
|
|
|
BuildRequires: xmlto
|
|
|
|
BuildRequires: xz
|
2007-10-20 01:44:56 +08:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
2002-05-01 04:58:18 +08:00
|
|
|
|
|
|
|
%package doc
|
2017-04-24 12:15:05 +08:00
|
|
|
Summary: Detailed manual for the Netwide Assembler
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: ghostscript
|
|
|
|
BuildRequires: fontconfig
|
|
|
|
BuildRequires: adobe-source-sans-pro-fonts
|
|
|
|
BuildRequires: adobe-source-code-pro-fonts
|
2002-05-01 04:58:18 +08:00
|
|
|
|
|
|
|
%package rdoff
|
|
|
|
Summary: Tools for the RDOFF binary format, sometimes used with NASM.
|
|
|
|
|
|
|
|
%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
|
2017-04-14 12:54:42 +08:00
|
|
|
Extensive documentation for the Netwide Assembler (NASM) in HTML and
|
|
|
|
PDF formats.
|
2002-05-01 04:58:18 +08:00
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%prep
|
2007-10-20 01:44:56 +08:00
|
|
|
%setup -q -n nasm-%{nasm_version}
|
2002-05-01 04:58:18 +08:00
|
|
|
|
|
|
|
%build
|
2017-04-24 09:33:53 +08:00
|
|
|
autoreconf
|
2017-04-24 12:19:09 +08:00
|
|
|
%configure --disable-pdf-compression --enable-sections
|
2007-09-23 07:44:56 +08:00
|
|
|
make %{?_smp_mflags} everything
|
2017-04-24 09:33:53 +08:00
|
|
|
xz -9ef doc/nasmdoc.pdf
|
2002-05-01 04:58:18 +08:00
|
|
|
|
|
|
|
%install
|
2017-04-24 12:15:05 +08:00
|
|
|
rm -rf "%{buildroot}"
|
|
|
|
mkdir -p "%{buildroot}"/%{_bindir}
|
|
|
|
mkdir -p "%{buildroot}"/%{_mandir}/man1
|
2017-07-06 06:36:06 +08:00
|
|
|
make DESTDIR="%{buildroot}" install install_rdf
|
2002-05-01 04:58:18 +08:00
|
|
|
|
|
|
|
%files
|
2007-10-20 01:44:56 +08:00
|
|
|
%doc AUTHORS CHANGES README TODO
|
|
|
|
%{_bindir}/nasm
|
|
|
|
%{_bindir}/ndisasm
|
2007-12-27 02:18:01 +08:00
|
|
|
%{_mandir}/man1/nasm.1*
|
|
|
|
%{_mandir}/man1/ndisasm.1*
|
2002-05-01 04:58:18 +08:00
|
|
|
|
2003-08-30 05:03:44 +08:00
|
|
|
%files doc
|
2017-04-24 09:33:53 +08:00
|
|
|
%doc doc/html doc/nasmdoc.pdf.xz
|
2003-08-30 05:03:44 +08:00
|
|
|
|
2002-05-01 04:58:18 +08:00
|
|
|
%files rdoff
|
2007-10-20 01:44:56 +08:00
|
|
|
%{_bindir}/ldrdf
|
|
|
|
%{_bindir}/rdf2bin
|
|
|
|
%{_bindir}/rdf2com
|
|
|
|
%{_bindir}/rdf2ihx
|
2009-07-04 12:12:05 +08:00
|
|
|
%{_bindir}/rdf2ith
|
|
|
|
%{_bindir}/rdf2srec
|
2007-10-20 01:44:56 +08:00
|
|
|
%{_bindir}/rdfdump
|
|
|
|
%{_bindir}/rdflib
|
|
|
|
%{_bindir}/rdx
|
2007-12-27 02:18:01 +08:00
|
|
|
%{_mandir}/man1/ldrdf.1*
|
2017-04-24 09:33:53 +08:00
|
|
|
%{_mandir}/man1/rd*.1*
|
|
|
|
|
|
|
|
# This is the upstream spec file; the change log is in git
|
|
|
|
%changelog
|