Package: python-gd
Version: 0.52debian-1.2
Severity: normal
Tags: patch

Hi Ben,

Attached is the diff for my python-gd 0.52debian-1.3 NMU.

Given your offer for python-gd I suggest you join the python-modules team
and inject it in the common SVN repository. That way other people can take
care of it and you can also keep an eye on it if you want.

Cheers,
-- 
Raphaël Hertzog

Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/
diff -u python-gd-0.52debian/debian/changelog 
python-gd-0.52debian/debian/changelog
--- python-gd-0.52debian/debian/changelog
+++ python-gd-0.52debian/debian/changelog
@@ -1,3 +1,11 @@
+python-gd (0.52debian-1.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Update for the new python policy. Closes: #373537
+  * Switch to debhelper 5.
+
+ -- Raphael Hertzog <[EMAIL PROTECTED]>  Sun, 25 Jun 2006 17:46:33 +0200
+
 python-gd (0.52debian-1.2) unstable; urgency=high
 
   * Non-maintainer upload.
diff -u python-gd-0.52debian/debian/control python-gd-0.52debian/debian/control
--- python-gd-0.52debian/debian/control
+++ python-gd-0.52debian/debian/control
@@ -2,12 +2,14 @@
 Section: python
 Priority: extra
 Maintainer: Ben Pfaff <[EMAIL PROTECTED]>
-Build-Depends: debhelper (>= 4.1.67), autoconf, python-dev, python2.3-dev, 
libgd2-noxpm-dev, libjpeg62-dev, libpng12-dev, zlib1g-dev, libfreetype6-dev
+Build-Depends: debhelper (>= 5.0.37.2), autoconf, python-all-dev (>= 
2.3.5-11), libgd2-noxpm-dev, libjpeg62-dev, libpng12-dev, zlib1g-dev, 
libfreetype6-dev, python-support (>= 0.3)
 Standards-Version: 3.6.1
 
 Package: python-gd
 Architecture: any
 Depends: ${python:Depends}, ${shlibs:Depends}
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
 Suggests: ttf-bitstream-vera | ttf-freefont
 Description: Python module wrapper for libgd
  Provides PNG, JPEG, and XPM creation and manipulation routines
diff -u python-gd-0.52debian/debian/rules python-gd-0.52debian/debian/rules
--- python-gd-0.52debian/debian/rules
+++ python-gd-0.52debian/debian/rules
@@ -5,12 +5,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# This is the debhelper compatability version to use.
-export DH_COMPAT=3
-
-# Destination
-export PYTHONDIR=debian/python-gd/usr/lib/python2.3/site-packages/
-export PYTHON=/usr/bin/python2.3
+PYVERS=$(shell pyversions -r)
 
 configure: configure-stamp
 configure-stamp:
@@ -21,7 +16,10 @@
 build-stamp:
        dh_testdir
 
-       $(PYTHON) Setup.py build
+       set -e; \
+       for PYTHON in $(PYVERS); do \
+               $$PYTHON Setup.py build; \
+       done
        touch build-stamp
 
 clean:
@@ -38,7 +36,10 @@
        dh_clean -k
        dh_installdirs
 
-       $(PYTHON) ./Setup.py install --prefix=debian/python-gd/usr
+       set -e; \
+       for PYTHON in $(PYVERS); do \
+           $$PYTHON ./Setup.py install --prefix=debian/python-gd/usr ; \
+       done
        -find debian -name '*.py[co]' | xargs rm -f
 
 binary-indep: build install
@@ -54,6 +55,7 @@
        dh_strip
        dh_compress -X.py -X.ttf
        dh_fixperms
+       dh_pysupport
        dh_python
        dh_installdeb
        dh_shlibdeps gdmodule.so
only in patch2:
unchanged:
--- python-gd-0.52debian.orig/debian/compat
+++ python-gd-0.52debian/debian/compat
@@ -0,0 +1 @@
+5
only in patch2:
unchanged:
--- python-gd-0.52debian.orig/debian/pycompat
+++ python-gd-0.52debian/debian/pycompat
@@ -0,0 +1 @@
+2

Reply via email to