Hi,

The attached patch is used in Ubuntu to do the transition,
it was written by the submitter of this bug report. Feel
free to use it. Note that it also removes the shlibs file,
but that refers to a version of the package that predates
the PTS, and is certainly older than sarge.

Thanks,

James

diff -Nru alogg-1.3.3.orig/debian/control alogg-1.3.3/debian/control
--- alogg-1.3.3.orig/debian/control	2007-11-18 14:13:09.000000000 +0000
+++ alogg-1.3.3/debian/control	2007-11-18 14:15:00.000000000 +0000
@@ -9,7 +9,7 @@
 Package: libalogg-dev
 Section: libdevel
 Architecture: any
-Depends: libalogg (= ${Source-Version}), libvorbis-dev
+Depends: libalogg1 (= ${Source-Version}), libvorbis-dev
 Description: an Ogg/Vorbis library for Allegro - development files
  alogg is a library which makes it easier to use Ogg/Vorbis 
  streams with Allegro. It offers facilities to decode, stream,
@@ -17,10 +17,12 @@
  and integrates those facilities with Allegro's datafile
  and sample loading routines. 
 
-Package: libalogg
+Package: libalogg1
 Section: libs
 Architecture: any
 Depends: ${shlibs:Depends}
+Conflicts: libalogg
+Replaces: libalogg
 Description: an Ogg/Vorbis Library for Allegro - shared libraries
  alogg is a library which makes it easier to use Ogg/Vorbis 
  streams with Allegro. It offers facilities to decode, stream,
diff -Nru alogg-1.3.3.orig/debian/libalogg1.install alogg-1.3.3/debian/libalogg1.install
--- alogg-1.3.3.orig/debian/libalogg1.install	1970-01-01 01:00:00.000000000 +0100
+++ alogg-1.3.3/debian/libalogg1.install	2007-11-18 14:13:38.000000000 +0000
@@ -0,0 +1 @@
+usr/lib/libalogg.so.*
diff -Nru alogg-1.3.3.orig/debian/libalogg1.postinst alogg-1.3.3/debian/libalogg1.postinst
--- alogg-1.3.3.orig/debian/libalogg1.postinst	1970-01-01 01:00:00.000000000 +0100
+++ alogg-1.3.3/debian/libalogg1.postinst	2007-11-18 14:13:38.000000000 +0000
@@ -0,0 +1,51 @@
+#! /bin/sh
+# postinst script for alogg
+#
+# see: dh_installdeb(1)
+
+set -e
+
+# summary of how this script can be called:
+#        * <postinst> `configure' <most-recently-configured-version>
+#        * <old-postinst> `abort-upgrade' <new version>
+#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
+#          <new-version>
+#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
+#          <failed-install-package> <version> `removing'
+#          <conflicting-package> <version>
+# for details, see http://www.debian.org/doc/debian-policy/ or
+# the debian-policy package
+#
+# quoting from the policy:
+#     Any necessary prompting should almost always be confined to the
+#     post-installation script, and should be protected with a conditional
+#     so that unnecessary prompting doesn't happen if a package's
+#     installation fails and the `postinst' is called with `abort-upgrade',
+#     `abort-remove' or `abort-deconfigure'.
+
+case "$1" in
+    configure)
+    ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+
+    ;;
+
+    *)
+        echo "postinst 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
+
+
+
+
+
+
diff -Nru alogg-1.3.3.orig/debian/libalogg.install alogg-1.3.3/debian/libalogg.install
--- alogg-1.3.3.orig/debian/libalogg.install	2007-11-18 14:13:09.000000000 +0000
+++ alogg-1.3.3/debian/libalogg.install	1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-usr/lib/libalogg.so.*
diff -Nru alogg-1.3.3.orig/debian/libalogg.postinst alogg-1.3.3/debian/libalogg.postinst
--- alogg-1.3.3.orig/debian/libalogg.postinst	2007-11-18 14:13:09.000000000 +0000
+++ alogg-1.3.3/debian/libalogg.postinst	1970-01-01 01:00:00.000000000 +0100
@@ -1,51 +0,0 @@
-#! /bin/sh
-# postinst script for alogg
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-#
-# quoting from the policy:
-#     Any necessary prompting should almost always be confined to the
-#     post-installation script, and should be protected with a conditional
-#     so that unnecessary prompting doesn't happen if a package's
-#     installation fails and the `postinst' is called with `abort-upgrade',
-#     `abort-remove' or `abort-deconfigure'.
-
-case "$1" in
-    configure)
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-
-    ;;
-
-    *)
-        echo "postinst 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
-
-
-
-
-
-
diff -Nru alogg-1.3.3.orig/debian/libalogg.shlibs alogg-1.3.3/debian/libalogg.shlibs
--- alogg-1.3.3.orig/debian/libalogg.shlibs	2007-11-18 14:13:09.000000000 +0000
+++ alogg-1.3.3/debian/libalogg.shlibs	1970-01-01 01:00:00.000000000 +0100
@@ -1 +0,0 @@
-libalogg 1 libalogg (>= 1.3.0-1)

Reply via email to