nasm.spec 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ##
  2. ## nasm.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package information
  24. Name: nasm
  25. Summary: Netwide Assembler
  26. URL: http://nasm.sourceforge.net/
  27. Vendor: J. Hall & S. Tatham et al.
  28. Packager: OpenPKG Foundation e.V.
  29. Distribution: OpenPKG Community
  30. Class: PLUS
  31. Group: Compiler
  32. License: LGPL
  33. Version: 2.05.01
  34. Release: 20081031
  35. # list of sources
  36. Source0: http://switch.dl.sourceforge.net/nasm/nasm-%{version}.tar.bz2
  37. Patch0: nasm.patch
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20040130, gcc
  42. PreReq: OpenPKG, openpkg >= 20040130
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. NASM is an 80x86 assembler designed for portability and modularity.
  47. It supports a range of object file formats including Linux a.out
  48. and ELF, COFF, Microsoft 16-bit OBJ and Win32. It will also output
  49. plain binary files. Its syntax is designed to be simple and easy
  50. to understand, similar to Intel's but less complex. It supports
  51. Pentium, P6, MMX, 3DNow! and SSE opcodes, and has macro capability.
  52. It includes a disassembler as well.
  53. %track
  54. prog nasm = {
  55. version = %{version}
  56. url = http://prdownloads.sourceforge.net/nasm/
  57. regex = nasm-(\d+\.\d+)\.tar\.bz2
  58. }
  59. %prep
  60. %setup -q
  61. %patch -p0
  62. %build
  63. CC="%{l_cc}" \
  64. CFLAGS="%{l_cflags -O}" \
  65. ./configure \
  66. --prefix=%{l_prefix} \
  67. --mandir=%{l_prefix}/man
  68. %{l_make} %{l_mflags -O}
  69. %install
  70. rm -rf $RPM_BUILD_ROOT
  71. %{l_shtool} mkdir -f -p -m 755 \
  72. $RPM_BUILD_ROOT%{l_prefix}/bin \
  73. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  74. %{l_make} %{l_mflags} install \
  75. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  76. exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
  77. mandir=$RPM_BUILD_ROOT%{l_prefix}/man
  78. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  79. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  80. %files -f files
  81. %clean
  82. rm -rf $RPM_BUILD_ROOT