diff -Nru /tmp/07N113vDXb/python-pam-0.4.2/debian/changelog /tmp/9S96w1SgWs/python-pam-0.4.2/debian/changelog
--- /tmp/07N113vDXb/python-pam-0.4.2/debian/changelog	2006-04-09 19:38:36.000000000 +0200
+++ /tmp/9S96w1SgWs/python-pam-0.4.2/debian/changelog	2006-06-13 00:45:49.000000000 +0200
@@ -1,3 +1,10 @@
+python-pam (0.4.2-10.3) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Switch to the new Python policy.
+
+ -- Raphael Hertzog <hertzog@debian.org>  Tue, 13 Jun 2006 00:45:21 +0200
+
 python-pam (0.4.2-10.2) unstable; urgency=low
 
   * Non-maintainer upload.
diff -Nru /tmp/07N113vDXb/python-pam-0.4.2/debian/control /tmp/9S96w1SgWs/python-pam-0.4.2/debian/control
--- /tmp/07N113vDXb/python-pam-0.4.2/debian/control	2006-04-09 19:39:01.000000000 +0200
+++ /tmp/9S96w1SgWs/python-pam-0.4.2/debian/control	2006-06-13 00:55:19.000000000 +0200
@@ -1,28 +1,16 @@
 Source: python-pam
 Section: python
 Priority: optional
-Build-Depends: debhelper (>> 4.1.67), python2.3-dev, python2.4-dev, python, libpam0g-dev
+Build-Depends: debhelper (>= 5.0.37.1), python-all-dev, python (>= 2.3.5-7), libpam0g-dev
 Maintainer: Dima Barsky <dima@debian.org>
+XS-Python-Version: all
 Standards-Version: 3.6.0
 
 Package: python-pam
-Architecture: all
-Depends: ${python:Depends}
-Description: A Python interface to the PAM library
- This is a dummy package which depends on the python-pam module for the
- default version of Python.
-
-Package: python2.3-pam
-Architecture: any
-Depends: python2.3, ${shlibs:Depends}
-Description: A Python interface to the PAM library
- This module makes the PAM (Pluggable Authentication Modules) functions
- available in Python. With this module you can write Python applications
- that implement authentication services using PAM.
-
-Package: python2.4-pam
 Architecture: any
-Depends: python2.4, ${shlibs:Depends}
+Depends: ${python:Depends}
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
 Description: A Python interface to the PAM library
  This module makes the PAM (Pluggable Authentication Modules) functions
  available in Python. With this module you can write Python applications
diff -Nru /tmp/07N113vDXb/python-pam-0.4.2/debian/rules /tmp/9S96w1SgWs/python-pam-0.4.2/debian/rules
--- /tmp/07N113vDXb/python-pam-0.4.2/debian/rules	2006-04-09 19:39:12.000000000 +0200
+++ /tmp/9S96w1SgWs/python-pam-0.4.2/debian/rules	2006-06-13 00:58:18.000000000 +0200
@@ -3,27 +3,22 @@
 #export DH_VERBOSE=1
 
 # This is the debhelper compatibility version to use.
-export DH_COMPAT=4
+export DH_COMPAT=5
 
-versions=$(subst -dev,,\
-           $(subst python,,\
-             $(filter python%-dev,\
-               $(shell sed -n '/^Build-Depends/s/,//gp' debian/control))))
-
-DEFAULT=2.3
+PYVERS=$(shell pyversions -r debian/control)
 
 build: build-stamp
 build-stamp:
 	dh_testdir
-	for version in $(versions); \
-		do python$$version setup.py build; \
+	for python in $(PYVERS); \
+		do $$python setup.py build; \
 	done
 	touch build-stamp
 
 clean:
 	dh_testdir
-	for version in $(versions); \
-		do python$$version setup.py clean; \
+	for python in $(PYVERS); \
+		do $$python setup.py clean; \
 	done
 	rm -rf build-stamp build
 	dh_clean
@@ -34,23 +29,12 @@
 	dh_clean -k
 	dh_installdirs
 
-	for version in $(versions); \
-		do python$$version setup.py install --prefix=debian/python$$version-pam/usr; \
+	for python in $(PYVERS); \
+		do $$python setup.py install --root=debian/python-pam; \
 	done
 
 # Build architecture-independent files here.
 binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs -i AUTHORS README
-	dh_installchangelogs -i ChangeLog
-	dh_compress -i
-	dh_fixperms -i
-	dh_python -i
-	dh_installdeb -i
-	dh_gencontrol -i
-	dh_md5sums -i
-	dh_builddeb -i
 
 # Build architecture-dependent files here.
 binary-arch: build install
@@ -62,6 +46,8 @@
 	dh_strip -a
 	dh_compress -a
 	dh_fixperms -a
+	#dh_pycentral is not needed as we don't have .py files (only a .so)
+	#dh_pycentral -a
 	dh_python -a
 	dh_installdeb -a
 	dh_shlibdeps -a
