nasm.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. ##
  2. ## nasm.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2020 OpenPKG Project <http://openpkg.org/>
  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://www.nasm.us/
  27. Vendor: J. Hall & S. Tatham et al.
  28. Packager: OpenPKG Project
  29. Distribution: OpenPKG Community
  30. Class: PLUS
  31. Group: Compiler
  32. License: LGPL
  33. Version: 2.15.05
  34. Release: 20200830
  35. # list of sources
  36. Source0: http://www.nasm.us/pub/nasm/releasebuilds/%{version}/nasm-%{version}.tar.xz
  37. # build information
  38. BuildPreReq: OpenPKG, openpkg >= 20160101, gcc
  39. PreReq: OpenPKG, openpkg >= 20160101
  40. %description
  41. NASM is an 80x86 assembler designed for portability and modularity.
  42. It supports a range of object file formats including Linux a.out
  43. and ELF, COFF, Microsoft 16-bit OBJ and Win32. It will also output
  44. plain binary files. Its syntax is designed to be simple and easy
  45. to understand, similar to Intel's but less complex. It supports
  46. Pentium, P6, MMX, 3DNow! and SSE opcodes, and has macro capability.
  47. It includes a disassembler as well.
  48. %track
  49. prog nasm = {
  50. version = %{version}
  51. url = http://www.nasm.us/
  52. regex = releasebuilds/(\d+\.\d+\.\d+)
  53. }
  54. %prep
  55. %setup -q
  56. %build
  57. CC="%{l_cc}" \
  58. CFLAGS="%{l_cflags -O}" \
  59. ./configure \
  60. --prefix=%{l_prefix} \
  61. --mandir=%{l_prefix}/man \
  62. --disable-werror
  63. %{l_make} %{l_mflags -O}
  64. %install
  65. %{l_shtool} mkdir -f -p -m 755 \
  66. $RPM_BUILD_ROOT%{l_prefix}/bin \
  67. $RPM_BUILD_ROOT%{l_prefix}/man/man1
  68. %{l_make} %{l_mflags} install \
  69. prefix=$RPM_BUILD_ROOT%{l_prefix} \
  70. exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
  71. mandir=$RPM_BUILD_ROOT%{l_prefix}/man
  72. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  73. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  74. %files -f files
  75. %clean