nasm.spec.in 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # -*- coding: utf-8 -*-
  2. %define nasm_version @@NASM_VER@@
  3. Summary: The Netwide Assembler, a portable x86 assembler with Intel-like syntax
  4. Name: nasm
  5. Version: @@NASM_MANGLED_VER@@
  6. Release: 0%{?dist}
  7. License: BSD
  8. Source: http://www.nasm.us/pub/nasm/releasebuilds/%{nasm_version}/nasm-%{nasm_version}.tar.xz
  9. URL: http://www.nasm.us/
  10. BuildRoot: /tmp/rpm-build-nasm
  11. Prefix: %{_prefix}
  12. @@PERLBUILDREQS@@
  13. BuildRequires: autoconf
  14. BuildRequires: asciidoc
  15. BuildRequires: xmlto
  16. BuildRequires: xz
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  18. %package doc
  19. Summary: Detailed manual for the Netwide Assembler
  20. BuildArch: noarch
  21. BuildRequires: ghostscript
  22. BuildRequires: fontconfig
  23. BuildRequires: adobe-source-sans-pro-fonts
  24. BuildRequires: adobe-source-code-pro-fonts
  25. %package rdoff
  26. Summary: Tools for the RDOFF binary format, sometimes used with NASM.
  27. %description
  28. NASM is the Netwide Assembler, a free portable assembler for the Intel
  29. 80x86 microprocessor series, using primarily the traditional Intel
  30. instruction mnemonics and syntax.
  31. %description doc
  32. Extensive documentation for the Netwide Assembler (NASM) in HTML and
  33. PDF formats.
  34. %description rdoff
  35. Tools for the operating-system independent RDOFF binary format, which
  36. is sometimes used with the Netwide Assembler (NASM). These tools
  37. include linker, library manager, loader, and information dump.
  38. %prep
  39. %setup -q -n nasm-%{nasm_version}
  40. %build
  41. autoreconf
  42. %configure --disable-pdf-compression --enable-sections
  43. make %{?_smp_mflags} everything
  44. xz -9ef doc/nasmdoc.pdf
  45. %install
  46. rm -rf "%{buildroot}"
  47. mkdir -p "%{buildroot}"/%{_bindir}
  48. mkdir -p "%{buildroot}"/%{_mandir}/man1
  49. make DESTDIR="%{buildroot}" install install_rdf
  50. %files
  51. %doc AUTHORS CHANGES README TODO
  52. %{_bindir}/nasm
  53. %{_bindir}/ndisasm
  54. %{_mandir}/man1/nasm.1*
  55. %{_mandir}/man1/ndisasm.1*
  56. %files doc
  57. %doc doc/html doc/nasmdoc.pdf.xz
  58. %files rdoff
  59. %{_bindir}/ldrdf
  60. %{_bindir}/rdf2bin
  61. %{_bindir}/rdf2com
  62. %{_bindir}/rdf2ihx
  63. %{_bindir}/rdf2ith
  64. %{_bindir}/rdf2srec
  65. %{_bindir}/rdfdump
  66. %{_bindir}/rdflib
  67. %{_bindir}/rdx
  68. %{_mandir}/man1/ldrdf.1*
  69. %{_mandir}/man1/rd*.1*
  70. # This is the upstream spec file; the change log is in git
  71. %changelog