[SCM] packaging for the mame arcade game emulator branch, master, updated. 06e8432f02100d9a7d3ef417abc7781f7cfd81db

Cesare Falco cesare.falco at gmail.com
Sun Mar 11 22:28:19 UTC 2012


The following commit has been merged in the master branch:
commit 20d983d38d204ecd46069943dfeaea8436d3146b
Author: Cesare Falco <cesare.falco at gmail.com>
Date:   Sat Mar 10 14:57:45 2012 +0100

    Further fix for improved backward compatibility in Ubuntu

diff --git a/debian/control b/debian/control
index 58b4038..3788fc1 100644
--- a/debian/control
+++ b/debian/control
@@ -8,12 +8,12 @@ Uploaders: Félix Arreola Rodríguez <fgatuno.123 at gmail.com>,
            Ludovic Lechapt <ludomatic at gmail.com>,
            Jordi Mallach <jordi at debian.org>
 Build-Depends: debhelper (>= 8),
-               libexpat1-dev,
+               libexpat1-dev (>= 2.0.1),
                libflac-dev,
                libgconf2-dev,
                libgtk2.0-dev,
                libjpeg8-dev,
-               libsdl1.2-dev,
+               libsdl1.2-dev (>= 1.2.11),
                libsdl-ttf2.0-dev,
                zlib1g-dev
 Standards-Version: 3.9.2
@@ -22,13 +22,14 @@ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-games/mame.git
 Homepage: http://mamedev.org/
 XS-Autobuild: yes
 
+
 Package: mame
 Architecture: any
 Depends: ${shlibs:Depends}, ${misc:Depends}
 Suggests: mame-tools, gnome-video-arcade
-Provides: xmame-common, xmame-sdl, xmame-svga, xmame-x
-Replaces: xmame-common (<< 0.140), xmame-sdl (<< 0.140), xmame-svga (<< 0.140), xmame-x (<< 0.140)
-Breaks: xmame-common (<< 0.140), xmame-sdl (<< 0.140), xmame-svga (<< 0.140), xmame-x (<< 0.140), sdlmame (<< 0.143)
+Provides: sdlmame, xmame-common, xmame-sdl, xmame-svga, xmame-x
+Replaces: sdlmame (<< 0.137), xmame-common (<< 0.140), xmame-sdl (<< 0.140), xmame-svga (<< 0.140), xmame-x (<< 0.140)
+Breaks: sdlmame (<< 0.137), xmame-common (<< 0.140), xmame-sdl (<< 0.140), xmame-svga (<< 0.140), xmame-x (<< 0.140)
 Description: Multiple Arcade Machine Emulator (MAME)
  MAME is a hardware emulator: it faithfully reproduces the behavior of many
  arcade machines (it is not a simulation). This program is not a game but can
@@ -38,6 +39,7 @@ Description: Multiple Arcade Machine Emulator (MAME)
  .
  This package provides the MAME binary and configuration files.
 
+
 Package: xmame-sdl
 Section: non-free/metapackages
 Priority: extra
@@ -47,6 +49,7 @@ Description: Transitional package for xmame-sdl
  This is a transitional package for xmame-sdl, and can be safely removed
  after the installation is complete.
 
+
 Package: xmame-svga
 Section: non-free/metapackages
 Priority: extra
@@ -56,6 +59,7 @@ Description: Transitional package for xmame-svga
  This is a transitional package for xmame-svga, and can be safely removed
  after the installation is complete.
 
+
 Package: xmame-x
 Section: non-free/metapackages
 Priority: extra
@@ -65,6 +69,7 @@ Description: Transitional package for xmame-x
  This is a transitional package for xmame-x, and can be safely removed
  after the installation is complete.
 
+
 Package: sdlmame
 Section: non-free/metapackages
 Priority: extra
diff --git a/debian/mame.preinst b/debian/mame.preinst
index 520a1ab..4435219 100644
--- a/debian/mame.preinst
+++ b/debian/mame.preinst
@@ -1,21 +1,62 @@
-#!/bin/sh
+#! /bin/sh
+
+# preinst script for mame
+# (c) Copyright 2012 Cesare Falco
+#
+# Licensed under the GNU General Public License, version 2.  See the file
+# /usr/share/common-licenses/GPL-2 or <http://www.gnu.org/copyleft/gpl.txt>.
 
 set -e
 
+# summary of how this script can be called:
+#        * <new-preinst> `install'
+#        * <new-preinst> `install' <old-version>
+#        * <new-preinst> `upgrade' <old-version>
+#        * <old-preinst> `abort-upgrade' <new-version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+
 INI="/etc/mame/mame.ini"
 OLDMD5="7af600a8acb389a87ecff54b5bf53771 faf5639e834d50ef8067bf014aa43d96"
 
-# Avoid a dpkg prompt if mame.ini is what 0.141-2 generated in postinst
-if [ "$1" = "upgrade" -a -f "$INI" ]; then
-    if dpkg --compare-versions "$2" le "0.141-2"; then
-        curmd5="$(md5sum $INI | cut -d' ' -f 1)"
-        for md5sum in $OLDMD5; do
-            if [ "$curmd5" = "$md5sum" ]; then
-                rm -f $INI
-                break
+case "$1" in
+    install)
+    ;;
+
+    upgrade)
+        # Sweep out wrong directories /usr/share/*/mame-base/
+        if dpkg --compare-versions "$2" lt "0.138u1"; then
+            rm -rf /usr/share/games/mame-base/
+            rm -rf /usr/share/doc/mame-base/
+        fi
+        # Avoid a dpkg prompt if mame.ini is what 0.141-2 generated in postinst
+        if dpkg --compare-versions "$2" le "0.141-2"; then
+            if [ -a -f "$INI" ]; then
+                curmd5="$(md5sum $INI | cut -d' ' -f 1)"
+                for md5sum in $OLDMD5; do
+                    if [ "$curmd5" = "$md5sum" ]; then
+                        rm -f $INI
+                        break
+                    fi
+                done
             fi
-        done
-    fi
-fi
+        fi
+    ;;
+
+    abort-upgrade)
+    ;;
+
+    *)
+        echo "preinst called with unknown argument \`$1'" >&2
+        exit 1
+    ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
 
 #DEBHELPER#
+
+exit 0
+
+

-- 
packaging for the mame arcade game emulator



More information about the Pkg-games-commits mailing list