Name:       nasm
Version:    2.16.01
Release:    1%{?dist}
Summary:    nasm - A portable x86 assembler which uses Intel-like syntax
Group:      Applications/System
License:    BSD
URL:        https://www.nasm.us
%undefine   _disable_source_fetch
Source0:    https://www.nasm.us/pub/nasm/releasebuilds/%{version}/nasm-%{version}.tar.bz2
Packager: 	%packager
BuildRequires: autoconf
BuildRequires: asciidoc
BuildRequires: xmlto
Provides: nasm = %{version}
%define debug_package %nil

%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.

%prep

%setup -q -n nasm-%{version}

%build
./autogen.sh
./configure --prefix=%{_prefix} --bindir=%{_bindir}
make %{?_smp_mflags}

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%license LICENSE
%doc AUTHORS CHANGES
%{_bindir}/nasm
%{_bindir}/ndisasm
%{_mandir}/man1/nasm.1.gz
%{_mandir}/man1/ndisasm.1.gz