nasm/nasm.spec.in

64 lines
1.6 KiB
RPMSpec
Raw Normal View History

# -*- coding: utf-8 -*-
%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
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/
2002-04-30 20:58:18 +00:00
BuildRoot: /tmp/rpm-build-nasm
Prefix: %{_prefix}
@@PERLBUILDREQS@@
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: asciidoc
BuildRequires: xmlto
BuildRequires: xz
BuildRequires: perl
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2002-04-30 20:58:18 +00:00
%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
2002-04-30 20:58:18 +00:00
%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.
2002-04-30 20:58:18 +00:00
%prep
%setup -q -n nasm-%{nasm_version}
2002-04-30 20:58:18 +00:00
%build
sh autogen.sh
%configure --enable-gc $([ -z "%{_lto_cflags}" ] || echo --enable-lto)
make %{?_smp_mflags} everything
2002-04-30 20:58:18 +00:00
%install
rm -rf "%{buildroot}"
mkdir -p "%{buildroot}"/%{_bindir}
mkdir -p "%{buildroot}"/%{_mandir}/man1
make DESTDIR="%{buildroot}" install
2002-04-30 20:58:18 +00:00
%files
%doc AUTHORS
%{_bindir}/nasm
%{_bindir}/ndisasm
%{_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
%doc doc/html doc/nasmdoc.pdf.xz
2003-08-29 21:03:44 +00:00
# This is the upstream spec file; the change log is in git
%changelog