tags 566045 + patch
thanks

Hi Xavier,

I've prepared an NMU for magicor (versioned as 1.1-2.1) and
uploaded it to DELAYED/15. My NMU allows Python files to be
byte-compiled at install time, and makes magicor behave correctly
when python2.6 will be the default. I also adjusted some other
details to allow a cleaner migration.

Regards.
diff -Nru magicor-1.1/debian/changelog magicor-1.1/debian/changelog
--- magicor-1.1/debian/changelog	2010-03-02 16:07:52.000000000 +0100
+++ magicor-1.1/debian/changelog	2010-03-03 22:05:02.000000000 +0100
@@ -1,3 +1,15 @@
+magicor (1.1-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Allow byte-compilation of Python files (Closes: #566045):
+    - Build-depend on python-support.
+    - Invoke dh_pysupport in rules.
+  * Depend on ${python:Depends} instead of a specific Python version.
+  * Do not create usr/lib/python2.5/site-packages/magicor, let the build
+    process to install files into the correct location.
+
+ -- Luca Falavigna <[email protected]>  Wed, 03 Mar 2010 22:04:29 +0100
+
 magicor (1.1-2) unstable; urgency=low
 
   * Bump Standards-Version to 3.8.4
diff -Nru magicor-1.1/debian/control magicor-1.1/debian/control
--- magicor-1.1/debian/control	2010-03-02 15:48:04.000000000 +0100
+++ magicor-1.1/debian/control	2010-03-03 22:00:28.000000000 +0100
@@ -4,13 +4,13 @@
 Maintainer: Xavier Oswald <[email protected]>
 Uploaders: Frederic Wagner <[email protected]>
 Build-Depends: debhelper (>= 7), cdbs
-Build-Depends-Indep: python (>= 2.5)
+Build-Depends-Indep: python (>= 2.5), python-support
 Standards-Version: 3.8.4
 Homepage: http://magicor.sf.net/
 
 Package: magicor
 Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, python( > 2.5), 
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends},
  python-pygame, magicor-data, libsdl-image1.2, libsdl-mixer1.2,
  python-gtk2, libglade2-0
 Description: puzzle game in the spirit of solomon's key
@@ -20,7 +20,7 @@
 
 Package: magicor-data
 Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, python ( >= 2.5)
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
 Description: data files for the magicor puzzle game
  Magicor is a small puzzle game similar to the old NES classic
  solomon's key. You control tux the penguin and create ice blocks
diff -Nru magicor-1.1/debian/magicor.dirs magicor-1.1/debian/magicor.dirs
--- magicor-1.1/debian/magicor.dirs	2010-03-02 15:40:20.000000000 +0100
+++ magicor-1.1/debian/magicor.dirs	2010-03-03 21:59:17.000000000 +0100
@@ -1,3 +1,2 @@
 usr/games
-usr/lib/python2.5/site-packages/magicor
 etc
diff -Nru magicor-1.1/debian/rules magicor-1.1/debian/rules
--- magicor-1.1/debian/rules	2010-03-02 16:04:45.000000000 +0100
+++ magicor-1.1/debian/rules	2010-03-03 21:59:55.000000000 +0100
@@ -9,3 +9,6 @@
 DEB_MAKE_BUILD_TARGET = all
 DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(CURDIR)/debian/tmp/
 DEB_MAKE_MAKEFILE = Makefile.debian
+
+binary-install/magicor::
+	dh_pysupport -pmagicor

Reply via email to