2c880c
# Build without documentation per default if built as part of a module.
2c880c
%if 0%{?_module_build}
2c880c
%bcond_with documentation
2c880c
%else
2c880c
# XXX adobe fonts no longer supported, so building with documentation is now suppressed.
2c880c
%bcond_with documentation
2c880c
%endif
2c880c
2c880c
Summary: A portable x86 assembler which uses Intel-like syntax
2c880c
Name: nasm
3a3bf1
Version: 2.15.03
3a3bf1
Release: 3%{?dist}
2c880c
License: BSD
2c880c
URL: http://www.nasm.us
3a3bf1
Source0: https://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}.tar.xz
3a3bf1
Source1: https://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}-xdoc.tar.xz
2c880c
2c880c
BuildRequires: perl(Env)
2c880c
BuildRequires: autoconf
3a3bf1
BuildRequires: automake
2c880c
BuildRequires: asciidoc
2c880c
BuildRequires: xmlto
2c880c
BuildRequires: gcc
2c880c
BuildRequires: make
2c880c
2c880c
%if %{with documentation}
2c880c
%package doc
2c880c
Summary: Documentation for NASM
2c880c
BuildRequires: perl(Font::TTF::Font)
2c880c
BuildRequires: perl(Sort::Versions)
2c880c
BuildRequires: perl(File::Spec)
3a3bf1
BuildRequires: perl(sort)
2c880c
BuildRequires: adobe-source-sans-pro-fonts
2c880c
BuildRequires: adobe-source-code-pro-fonts
2c880c
BuildRequires: ghostscript
2c880c
BuildArch: noarch
2c880c
# For arch to noarch conversion
2c880c
Obsoletes: %{name}-doc < %{version}-%{release}
2c880c
%endif
2c880c
2c880c
%package rdoff
2c880c
Summary: Tools for the RDOFF binary format, sometimes used with NASM
2c880c
2c880c
%description
2c880c
NASM is the Netwide Assembler, a free portable assembler for the Intel
2c880c
80x86 microprocessor series, using primarily the traditional Intel
2c880c
instruction mnemonics and syntax.
2c880c
2c880c
%if %{with documentation}
2c880c
%description doc
2c880c
This package contains documentation for the Netwide Assembler (NASM),
2c880c
in HTML, PDF, PostScript, and text formats.
2c880c
%endif
2c880c
2c880c
%description rdoff
2c880c
Tools for the operating-system independent RDOFF binary format, which
2c880c
is sometimes used with the Netwide Assembler (NASM). These tools
2c880c
include linker, library manager, loader, and information dump.
2c880c
2c880c
%prep
3a3bf1
%autosetup
2c880c
3a3bf1
tar xJf %{SOURCE1} --strip-components 1
2c880c
2c880c
%build
2c880c
%configure
2c880c
%if %{with documentation}
2c880c
make everything %{?_smp_mflags}
2c880c
gzip -9f doc/nasmdoc.{ps,txt}
2c880c
%else
2c880c
make all %{?_smp_mflags}
2c880c
%endif
2c880c
2c880c
%install
3a3bf1
%make_install install_rdf
2c880c
2c880c
%files
3a3bf1
%license LICENSE
3a3bf1
%doc AUTHORS CHANGES README.md
2c880c
%{_bindir}/nasm
2c880c
%{_bindir}/ndisasm
2c880c
%{_mandir}/man1/nasm*
2c880c
%{_mandir}/man1/ndisasm*
2c880c
2c880c
%if %{with documentation}
2c880c
%files doc
2c880c
%doc doc/html doc/nasmdoc.txt.gz doc/nasmdoc.ps.gz doc/nasmdoc.pdf
2c880c
%endif
2c880c
2c880c
%files rdoff
2c880c
%{_bindir}/ldrdf
2c880c
%{_bindir}/rdf2bin
2c880c
%{_bindir}/rdf2ihx
2c880c
%{_bindir}/rdf2com
2c880c
%{_bindir}/rdfdump
2c880c
%{_bindir}/rdflib
2c880c
%{_bindir}/rdx
2c880c
%{_bindir}/rdf2ith
2c880c
%{_bindir}/rdf2srec
2c880c
%{_mandir}/man1/rd*
2c880c
%{_mandir}/man1/ld*
2c880c
2c880c
%changelog
3a3bf1
* Wed Nov 11 2020 Martin Cermak <mcermak@redhat.com> - 2.15.03-3
3a3bf1
- NVR bump and rebuild for CI gating purposes.
3a3bf1
3a3bf1
* Fri Oct 30 2020 Nick Clifton <nickc@redhat.com> - 2.15.03-2
3a3bf1
- Remove gatimg.yaml as no gating tests are needed.
3a3bf1
3a3bf1
* Thu Oct 29 2020 Nick Clifton <nickc@redhat.com> - 2.15.03-1
3a3bf1
- Rebase to 2.15.  (#1889815)
3a3bf1
3a3bf1
* Tue Jul 31 2018 Michael Simacek <msimacek@redhat.com> - 2.13.03-2
2c880c
- Suppress documentation building as the required fonts are no longer available.  #1610010
2c880c
2c880c
* Thu Feb 08 2018 Michael Simacek <msimacek@redhat.com> - 2.13.03-1
2c880c
- Update to upstream version 2.13.03
2c880c
2c880c
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.13.02-3
2c880c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2c880c
2c880c
* Thu Jan 11 2018 Michael Simacek <msimacek@redhat.com> - 2.13.02-2
2c880c
- Add missing BR ghostscript
2c880c
2c880c
* Tue Jan 02 2018 Michael Simacek <msimacek@redhat.com> - 2.13.02-1
2c880c
- Update to upstream version 2.13.02
2c880c
- Resolves: CVE-2017-17810, CVE-2017-17811, CVE-2017-17812, CVE-2017-17813,
2c880c
  CVE-2017-17814, CVE-2017-17815, CVE-2017-17816, CVE-2017-17817,
2c880c
  CVE-2017-17818, CVE-2017-17819, CVE-2017-17820
2c880c
2c880c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.13.01-4
2c880c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
2c880c
2c880c
* Wed Jul 26 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.13.01-3
2c880c
- Fix use-after-free and heap buffer overflow vulnerabilities
2c880c
- Resolves: CVE-2017-10686, CVE-2017-11111
2c880c
2c880c
* Tue Jul 04 2017 Nils Philippsen <nils@redhat.com> - 2.13.01-2
2c880c
- don't build documentation during modular build
2c880c
- fix bogus changelog date
2c880c
2c880c
* Mon May 22 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.13.01-1
2c880c
- Update to upstream version 2.13.01
2c880c
2c880c
* Tue May  2 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.13-1
2c880c
- Update to upstream version 2.13
2c880c
2c880c
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.12.02-2
2c880c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2c880c
2c880c
* Tue Jul 12 2016 Roman Vais <rvais@redhat.com> - 2.12.02-1
2c880c
- Update to upstream version 2.12.02
2c880c
2c880c
* Tue Mar 22 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.12.01-1
2c880c
- Update to upstream version 2.12.01
2c880c
2c880c
* Thu Mar  3 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.12-2
2c880c
- Fix build failure on ppc64
2c880c
2c880c
* Mon Feb 29 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.12-1
2c880c
- Update to upstream version 2.12
2c880c
2c880c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.11.08-3
2c880c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2c880c
2c880c
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11.08-2
2c880c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2c880c
2c880c
* Mon Feb 23 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.11.08-1
2c880c
- Update to upstream version 2.11.08
2c880c
2c880c
* Tue Oct 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.11.06-1
2c880c
- Update to upstream version 2.11.06
2c880c
2c880c
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11.05-3
2c880c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
2c880c
2c880c
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.11.05-2
2c880c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2c880c
2c880c
* Fri May 23 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.11.05-1
2c880c
- Update to upstream version 2.11.05
2c880c
2c880c
* Mon May 12 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.11.04-1
2c880c
- Update to upstream version 2.11.04
2c880c
2c880c
* Mon May 12 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.11.03-1
2c880c
- Update to upstream version 2.11.03
2c880c
2c880c
* Fri Mar  7 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.11.02-1
2c880c
- Update to upstream version 2.11.02
2c880c
2c880c
* Thu Jan  2 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.11-1
2c880c
- Update to upstream version 2.11
2c880c
2c880c
* Thu Sep 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.10.09-1
2c880c
- Update to upstream version 2.10.09
2c880c
2c880c
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10.07-6
2c880c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2c880c
2c880c
* Mon Jul  1 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.10.07-5
2c880c
- Backport upsteam manpage fixes
2c880c
2c880c
* Mon Apr  8 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.10.07-4
2c880c
- Add missing BR: perl(Env)
2c880c
- Move rdf manpages to rdf subpackage
2c880c
2c880c
* Thu Mar  7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.10.07-3
2c880c
- Properly obsolete arch-specific doc subpackage
2c880c
2c880c
* Thu Mar  7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.10.07-2
2c880c
- Update to current packaging guidelines
2c880c
- Resolves: rhbz#919008 (doc subpackage should be noarch)
2c880c
2c880c
* Wed Jan 30 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.10.07-1
2c880c
- Update to upstream version 2.10.07
2c880c
2c880c
* Mon Aug  6 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.10.03-1
2c880c
- Update to upstream version 2.10.03
2c880c
2c880c
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.10-2
2c880c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2c880c
2c880c
* Thu Mar 15 2012 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 2.10-1
2c880c
- update to 2.10 (#797858)
2c880c
2c880c
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.09.08-2
2c880c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2c880c
2c880c
* Tue Apr 26 2011 Vojtech Vitek (V-Teq) <vvitek@redhat.com> - 2.09.08-1
2c880c
- update to 2.09.08
2c880c
  Resolves: #685125 
2c880c
2c880c
* Mon Mar 14 2011 Adam Tkac <atkac redhat com> - 2.09.07-1
2c880c
- update to 2.09.07
2c880c
2c880c
* Mon Feb 21 2011 Adam Tkac <atkac redhat com> - 2.09.05-1
2c880c
- update to 2.09.05
2c880c
2c880c
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.09.04-2
2c880c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2c880c
2c880c
* Tue Nov 23 2010 Adam Tkac <atkac redhat com> - 2.09.04-1
2c880c
- update to 2.09.04
2c880c
2c880c
* Thu Nov 11 2010 Adam Tkac <atkac redhat com> - 2.09.03-2
2c880c
- fix URL (#652012)
2c880c
2c880c
* Tue Nov 02 2010 Adam Tkac <atkac redhat com> - 2.09.03-1
2c880c
- update to 2.09.03
2c880c
2c880c
* Wed Sep 29 2010 jkeating - 2.09.02-2
2c880c
- Rebuilt for gcc bug 634757
2c880c
2c880c
* Mon Sep 20 2010 Adam Tkac <atkac redhat com> - 2.09.02-1
2c880c
- update to 2.09.02
2c880c
2c880c
* Mon Sep 13 2010 Adam Tkac <atkac redhat com> - 2.09.01-1
2c880c
- update to 2.09.01
2c880c
2c880c
* Thu Sep 02 2010 Adam Tkac <atkac redhat com> - 2.09-1
2c880c
- update to 2.09
2c880c
2c880c
* Fri Aug 13 2010 Adam Tkac <atkac redhat com> - 2.08.02-1
2c880c
- update to 2.08.02
2c880c
2c880c
* Wed Jul 14 2010 Todd Zullinger <tmz@gaggle.net> - 2.08.01-2
2c880c
- Fix license tag, nasm is under 2 clause BSD since 2.07
2c880c
2c880c
* Tue Mar 23 2010 Adam Tkac <atkac redhat com> - 2.08.01-1
2c880c
- update to 2.08.01
2c880c
2c880c
* Thu Aug 20 2009 Zdenek Prikryl <zprikryl@redhat.com> - 2.07-3
2c880c
- Don't complain if installing with --excludedocs (#515944)
2c880c
2c880c
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.07-2
2c880c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2c880c
2c880c
* Tue Jul 21 2009 Adam Tkac <atkac redhat com> - 2.07-1
2c880c
- update to 2.07
2c880c
2c880c
* Fri Jul 10 2009 Zdenek Prikryl <zprikryl@redhat.com> - 2.06-1
2c880c
- updated to 2.06
2c880c
2c880c
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.05.01-2
2c880c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2c880c
2c880c
* Wed Nov 12 2008 Zdenek Prikryl <zprikryl@redhat.com> - 2.05.01-1
2c880c
- updated to 2.05.01
2c880c
2c880c
* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.03.01-2
2c880c
- fix license tag
2c880c
2c880c
* Thu Jun 19 2008 Petr Machata <pmachata@redhat.com> - 2.03.01-1
2c880c
- rebase to a new stable upstream version 2.03.01
2c880c
2c880c
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.01-2
2c880c
- Autorebuild for GCC 4.3
2c880c
2c880c
* Tue Jan 29 2008 Petr Machata <pmachata@redhat.com> - 2.01-1
2c880c
- rebase to a new stable upstream version 2.01
2c880c
2c880c
* Wed Feb  7 2007 Petr Machata <pmachata@redhat.com> - 0.98.39-5
2c880c
- tidy up the specfile per rpmlint comments
2c880c
- use utf-8 and fix national characters in contributor's names
2c880c
- port bogus elf patch to new nasm version and turn it on again
2c880c
2c880c
* Thu Jan 25 2007 Petr Machata <pmachata@redhat.com> - 0.98.39-4
2c880c
- Ville Skyttä: patch for non-failing %%post, %%preun
2c880c
- Resolves: #223714
2c880c
2c880c
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.98.39-3.2.2
2c880c
- rebuild
2c880c
2c880c
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.98.39-3.2.1
2c880c
- bump again for double-long bug on ppc(64)
2c880c
2c880c
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.98.39-3.2
2c880c
- rebuilt for new gcc4.1 snapshot and glibc changes
2c880c
2c880c
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
2c880c
- rebuilt
2c880c
2c880c
* Mon Apr  4 2005 Jeremy Katz <katzj@redhat.com> - 0.98.39-3
2c880c
- pdf docs are duplication of html, txt and postscript
2c880c
2c880c
* Fri Apr 01 2005 Jindrich Novy <jnovy@redhat.com> 0.98.39-2
2c880c
- fix yet another vsprintf buffer overflow (#152963)
2c880c
2c880c
* Thu Mar 31 2005 Jindrich Novy <jnovy@redhat.com> 0.98.39-1
2c880c
- update to 0.98.39
2c880c
- add BuildRequires ghostscript, texinfo to doc subpackage (#110584)
2c880c
- generate also PDF documentation for nasm (#88431)
2c880c
- new release fixes CAN-2004-1287 (#143052)
2c880c
2c880c
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
2c880c
- rebuilt
2c880c
2c880c
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
2c880c
- rebuilt
2c880c
2c880c
* Fri Sep 26 2003 Florian La Roche <Florian.LaRoche@redhat.de>
2c880c
- update to 0.98.38 and specfile cleanup
2c880c
2c880c
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
2c880c
- rebuilt
2c880c
2c880c
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
2c880c
- rebuilt
2c880c
2c880c
* Tue Dec 17 2002 Phil Knirsch <pknirsch@redhat.com> 0.98.35-2
2c880c
- Removed ExclusiveArch tag.
2c880c
- Fixed typo in homepage URL.
2c880c
2c880c
* Wed Dec 11 2002 Thomas Woerner <twoerner@redhat.com> 0.98.35-1
2c880c
- new version 0.98.35
2c880c
- nasm has new homepage (#77323)
2c880c
2c880c
* Fri Nov 29 2002 Tim Powers <timp@redhat.com> 0.98.34-2
2c880c
- fix %%doc list
2c880c
- remove unpackaged files from the buildroot
2c880c
2c880c
* Mon Sep 16 2002 Jeremy Katz <katzj@redhat.com> 0.98.34-1hammer
2c880c
- add x86_64 to ExclusiveArch list
2c880c
2c880c
* Tue Jul 23 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.98.34-1
2c880c
- 0.98.34
2c880c
2c880c
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
2c880c
- automated rebuild
2c880c
2c880c
* Sun May 26 2002 Tim Powers <timp@redhat.com>
2c880c
- automated rebuild
2c880c
2c880c
* Tue May 21 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.98.32-1
2c880c
- 0.98.32
2c880c
- Various doc files have changed names/been removed/added
2c880c
- New download location (after the license change, it's at sourceforge)
2c880c
- The new version is LGPL
2c880c
- Only build on x86 (#65255)
2c880c
2c880c
* Tue Feb 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 0.98.22-2
2c880c
- Rebuild
2c880c
2c880c
* Mon Jan 21 2002 Bernhard Rosenkraenzer <bero@redhat.com>
2c880c
- Update to 0.98.22 to fix bogus code generation in SDL
2c880c
- Fix spec file, handle RPM_OPT_FLAGS
2c880c
2c880c
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
2c880c
- automated rebuild
2c880c
2c880c
* Tue Aug  7 2001 Trond Eivind Glomsrød <teg@redhat.com>
2c880c
- Updated patch from H.J. Lu for bogus elf generation (#45986,
2c880c
  verified by reporter) 
2c880c
2c880c
* Thu Apr 26 2001 Trond Eivind Glomsrød <teg@redhat.com>
2c880c
- Updated patch for bogus elf generation from hjl@gnu.org
2c880c
2c880c
* Tue Feb 13 2001 Trond Eivind Glomsrød <teg@redhat.com>
2c880c
- Add patch from H.J. Lu to avoid creating bogus elf objects (#27489)
2c880c
2c880c
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
2c880c
- automatic rebuild
2c880c
2c880c
* Tue Jun 13 2000 Trond Eivind Glomsrød <teg@redhat.com>
2c880c
- rewrote almost everything. The old specfile was bad, bad, bad.
2c880c
  Really Bad.
2c880c
2c880c
* Tue Apr 04 2000 Erik Troan <ewt@redhat.com>
2c880c
- moved to distribution (syslinux needs it)
2c880c
- gzipped man pages
2c880c
2c880c
* Thu Dec 02 1999 Preston Brown <pbrown@redhat.com>
2c880c
- adopted from one of the best .spec files I have seen in a long time. :)