xmame.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ##
  2. ## xmame.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: xmame
  26. Summary: Multi Arcade Machine Emulator (MAME)
  27. URL: http://www.mame.net/
  28. Vendor: Nicola Salmoria
  29. Packager: The OpenPKG Project
  30. Distribution: OpenPKG [EXP]
  31. Group: Games
  32. License: GPL
  33. Version: 0.54.1
  34. Release: 2
  35. # list of sources
  36. Source0: http://x.mame.net/download/xmame-%{version}.tar.bz2
  37. Source1: http://www.mame.net/zips/hsdat7.zip
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 0.9-33, gcc, make
  42. PreReq: OpenPKG, openpkg >= 0.9-33
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. X-MAME is a port of the popular Multi Arcade Machine Emulator (MAME)
  47. to the X Window System. It is able to run over 1600 original arcade
  48. games through their ROM sets.
  49. %prep
  50. %setup -q
  51. %build
  52. os=""
  53. cpu=""
  54. case "%{l_target}" in
  55. *-freebsd* ) os="freebsd"; cpu="i386"; x11="X11R6" ;;
  56. *-linux* ) os="linux"; cpu="i386"; x11="X11R6" ;;
  57. *-solaris* ) os="solaris"; cpu="risc"; x11="openwin" ;;
  58. esac
  59. %{l_make} %{l_mflags -O} \
  60. -f makefile.unix \
  61. CC="%{l_cc}" \
  62. CFLAGS="-pipe -O2 -funroll-loops -fstrength-reduce -fomit-frame-pointer -ffast-math" \
  63. PREFIX="%{l_prefix}" \
  64. XMAMEROOT="%{l_prefix}/etc/xmame" \
  65. ARCH="$os" \
  66. MY_CPU="$cpu" \
  67. X11INC="-I/usr/$x11/include" \
  68. X11LIB="-L/usr/$x11/lib"
  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/man6 \
  74. $RPM_BUILD_ROOT%{l_prefix}/etc/xmame
  75. %{l_shtool} install -c -s -m 755 \
  76. xmame.x11 $RPM_BUILD_ROOT%{l_prefix}/bin/xmame
  77. %{l_shtool} install -c -m 644 \
  78. doc/xmame.6 $RPM_BUILD_ROOT%{l_prefix}/man/man6/xmame.6
  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