mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-27 08:10:07 +08:00
20d9c86eb1
This is a fix for a4f6ca5a33
- We should not use sole CPPFLAGS when compiling,
but rather merge it into ALL_CFLAGS
- nasm.spec.in should use DESTDIR since
INSTALLROOT now renamed to it
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
84 lines
2.1 KiB
RPMSpec
84 lines
2.1 KiB
RPMSpec
# -*- coding: utf-8 -*-
|
|
%define nasm_version @@NASM_VER@@
|
|
Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
|
|
Name: nasm
|
|
Version: @@NASM_MANGLED_VER@@
|
|
Release: 0%{?dist}
|
|
License: BSD
|
|
Source: http://www.nasm.us/pub/nasm/releasebuilds/%{nasm_version}/nasm-%{nasm_version}.tar.xz
|
|
URL: http://www.nasm.us/
|
|
BuildRoot: /tmp/rpm-build-nasm
|
|
Prefix: %{_prefix}
|
|
@@PERLBUILDREQS@@
|
|
BuildRequires: autoconf
|
|
BuildRequires: asciidoc
|
|
BuildRequires: xmlto
|
|
BuildRequires: xz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
%package doc
|
|
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
|
|
|
|
%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
|
|
Extensive documentation for the Netwide Assembler (NASM) in HTML and
|
|
PDF formats.
|
|
|
|
%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
|
|
%setup -q -n nasm-%{nasm_version}
|
|
|
|
%build
|
|
autoreconf
|
|
%configure --disable-pdf-compression --enable-sections
|
|
make %{?_smp_mflags} everything
|
|
xz -9ef doc/nasmdoc.pdf
|
|
|
|
%install
|
|
rm -rf "%{buildroot}"
|
|
mkdir -p "%{buildroot}"/%{_bindir}
|
|
mkdir -p "%{buildroot}"/%{_mandir}/man1
|
|
make DESTDIR="%{buildroot}" install install_rdf
|
|
|
|
%files
|
|
%doc AUTHORS CHANGES README TODO
|
|
%{_bindir}/nasm
|
|
%{_bindir}/ndisasm
|
|
%{_mandir}/man1/nasm.1*
|
|
%{_mandir}/man1/ndisasm.1*
|
|
|
|
%files doc
|
|
%doc doc/html doc/nasmdoc.pdf.xz
|
|
|
|
%files rdoff
|
|
%{_bindir}/ldrdf
|
|
%{_bindir}/rdf2bin
|
|
%{_bindir}/rdf2com
|
|
%{_bindir}/rdf2ihx
|
|
%{_bindir}/rdf2ith
|
|
%{_bindir}/rdf2srec
|
|
%{_bindir}/rdfdump
|
|
%{_bindir}/rdflib
|
|
%{_bindir}/rdx
|
|
%{_mandir}/man1/ldrdf.1*
|
|
%{_mandir}/man1/rd*.1*
|
|
|
|
# This is the upstream spec file; the change log is in git
|
|
%changelog
|