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