OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 20-Jul-2003 17:28:41
Branch: HEAD Handle: 2003072016284100
Modified files:
openpkg-src/xmame xmame.spec xmamerc
Log:
try to finish packaging XMAME
Summary:
Revision Changes Path
1.41 +37 -6 openpkg-src/xmame/xmame.spec
1.2 +15 -30 openpkg-src/xmame/xmamerc
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/xmame/xmame.spec
============================================================================
$ cvs diff -u -r1.40 -r1.41 xmame.spec
--- openpkg-src/xmame/xmame.spec 20 Jul 2003 06:12:41 -0000 1.40
+++ openpkg-src/xmame/xmame.spec 20 Jul 2003 15:28:41 -0000 1.41
@@ -23,8 +23,6 @@
## SUCH DAMAGE.
##
-# FIXME: reasonable xmamerc not installed, hsdat7.zip not installed
-
# package information
Name: xmame
Summary: Multi Arcade Machine Emulator (MAME)
@@ -40,11 +38,17 @@
# list of sources
Source0: http://x.mame.net/download/xmame-%{version}.tar.bz2
Source1: http://www.mame.net/zips/hsdat7.zip
+Source2: http://fandemame.emu-france.com/files/history071a.zip
+Source3: http://cheat.retrogames.com/cheat.zip
+Source4: http://www.mame.net/roms/gridlee.zip
+Source5: http://www.mame.net/roms/polyplay.zip
+Source6: http://www.mame.net/roms/robby.zip
+Source7: xmamerc
# build information
Prefix: %{l_prefix}
BuildRoot: %{l_buildroot}
-BuildPreReq: OpenPKG, openpkg >= 20030708, X11, gcc, make
+BuildPreReq: OpenPKG, openpkg >= 20030708, X11, gcc, make, infozip
PreReq: OpenPKG, openpkg >= 20030708, X11
BuildPreReq: zlib
PreReq: zlib
@@ -53,13 +57,17 @@
%description
X-MAME is a port of the popular Multi Arcade Machine Emulator (MAME)
- to the X Window System. It is able to run over 1600 original arcade
+ to the X Window System. It is able to run over 4000 original arcade
games through their ROM sets.
%prep
%setup -q
+ %{l_prefix}/bin/unzip -x %{SOURCE hsdat7.zip}
+ %{l_prefix}/bin/unzip -x %{SOURCE history071a.zip}
+ %{l_prefix}/bin/unzip -x %{SOURCE cheat.zip}
%build
+ # configure and build package
os=""
cpu=""
case "%{l_target}" in
@@ -85,15 +93,38 @@
%install
rm -rf $RPM_BUILD_ROOT
+
+ # create installation hierarchy
%{l_shtool} mkdir -f -p -m 755 \
$RPM_BUILD_ROOT%{l_prefix}/bin \
$RPM_BUILD_ROOT%{l_prefix}/man/man6 \
- $RPM_BUILD_ROOT%{l_prefix}/etc/xmame
+ $RPM_BUILD_ROOT%{l_prefix}/etc/xmame \
+ $RPM_BUILD_ROOT%{l_prefix}/share/xmame \
+ $RPM_BUILD_ROOT%{l_prefix}/var/xmame
+
+ # install program and manual page
%{l_shtool} install -c -s -m 755 \
xmame.x11 $RPM_BUILD_ROOT%{l_prefix}/bin/xmame
%{l_shtool} install -c -m 644 \
doc/xmame.6 $RPM_BUILD_ROOT%{l_prefix}/man/man6/xmame.6
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
+
+ # install default configuration
+ %{l_shtool} install -c -m 644 \
+ %{SOURCE xmamerc} $RPM_BUILD_ROOT%{l_prefix}/etc/xmame/
+
+ # install .DAT files
+ %{l_shtool} install -c -m 644 \
+ *.dat $RPM_BUILD_ROOT%{l_prefix}/etc/xmame/
+
+ # install freely available ROMs
+ %{l_shtool} install -c -m 644 \
+ %{SOURCE gridlee.zip} %{SOURCE polyplay.zip} %{SOURCE robby.zip} \
+ $RPM_BUILD_ROOT%{l_prefix}/share/xmame/
+
+ # determine installation files
+ %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
+ %{l_files_std} \
+ '%attr(1777,%{l_musr},%{l_mgrp}) %{l_prefix}/var/xmame'
%files -f files
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/xmame/xmamerc
============================================================================
$ cvs diff -u -r1.1.1.1 -r1.2 xmamerc
--- openpkg-src/xmame/xmamerc 18 Sep 2001 09:48:30 -0000 1.1.1.1
+++ openpkg-src/xmame/xmamerc 20 Jul 2003 15:28:41 -0000 1.2
@@ -1,33 +1,18 @@
+##
+## xmamerc
+##
+
+rompath @l_prefix@/share/xmame
+spooldir @l_prefix@/var/xmame
+
+defaultgame gridlee
-rompath /sw/pkg/mame/lib:/e/games/data.mame
-spooldir /sw/var/mame
-defaultgame commando
-#displayname localhost:0.0
-#play_sound 0
-#audiodevice /dev/audio
-#audiodevice /dev/dsp
-audiodevice /dev/pcaudio
-samplefreq 22050
-#timerfreq 50
-mouse 1
-#joystick 0
-analogstick 0
-#x11joyname Joystick
-#swapjoyaxis 0
-#towns_pad_name /dev/pad00
-widthscale 2
-heightscale 2
-frameskip 1
mitshm 1
-xsync 0
-privatecmap 0
-#force_truecolor 0
-#videomode 0
-throttle 1
-antialias 0
-translucency 1
-flicker 0.0
-beam 1.0
-#mapkey 0x0020,0x0039
-#mapkey 0xffc5,0x0004
+xsync 1
+widthscale 1
+heightscale 1
+
+sound 1
+audiodevice /dev/dsp
+volume 0
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]