tags 373387 patch done Here's an attempt at upgrading the package to the new Python policy.
Max.
Index: debian/control
===================================================================
--- debian/control (revision 588)
+++ debian/control (working copy)
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Guilherme de S. Pastore <[EMAIL PROTECTED]>
Uploaders: Al Stone <[EMAIL PROTECTED]>, David Kimdon <[EMAIL PROTECTED]>,
Troy Heber <[EMAIL PROTECTED]>, Peter Samuelson <[EMAIL PROTECTED]>
-Build-Depends: debhelper, libneon25-dev, apache2-threaded-dev,
+Build-Depends: debhelper (>= 5.0.37.1), libneon25-dev, apache2-threaded-dev,
libapr0-dev (>= 2.0.55-3), libdb4.3-dev, libtool, bison,
patch, python, python-dev, autotools-dev, autoconf, swig,
perl, dpatch, libperl-dev, ruby1.8, ruby1.8-dev, doxygen,
@@ -11,6 +11,7 @@
junit [!m68k !mips !mipsel !arm]
Build-Conflicts: libsvn0 (<< 1.3)
Standards-Version: 3.7.2
+XS-Python-Version: current
Package: subversion
Section: devel
@@ -104,7 +105,8 @@
Depends: subversion, ${shlibs:Depends}, ${python:Depends}
Conflicts: libsvn0 (<< 1.2.3dfsg1-1), libsvn0-dev (<< 1.2.3dfsg1-1),
python2.3-subversion, python2.4-subversion
Replaces: libsvn0 (<< 1.2.3dfsg1-1), libsvn0-dev (<< 1.2.3dfsg1-1),
python2.3-subversion, python2.4-subversion
-Provides: python2.3-subversion
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
Description: python modules for interfacing with Subversion (aka. svn)
Subversion is a version control system much like the Concurrent
Versions System (CVS). Version control systems allow many
Index: debian/python-subversion.prerm
===================================================================
--- debian/python-subversion.prerm (revision 0)
+++ debian/python-subversion.prerm (revision 0)
@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+
+PYTHONVER=`pyversions -d`
+rm -f /usr/lib/$PYTHONVER/site-packages/libsvn/*.py[co] \
+/usr/lib/$PYTHONVER/site-packages/svn/*.py[co]
Index: debian/python-subversion.postinst
===================================================================
--- debian/python-subversion.postinst (revision 0)
+++ debian/python-subversion.postinst (revision 0)
@@ -0,0 +1,10 @@
+#!/bin/sh
+set -e
+
+PYTHONVER=`pyversions -d`
+PYCOMPILECOMMAND="from compileall import compile_dir; \
+compile_dir('/usr/lib/$PYTHONVER/site-packages/libsvn', force=1, quiet=1); \
+compile_dir('/usr/lib/$PYTHONVER/site-packages/svn', force=1, quiet=1)"
+
+/usr/bin/$PYTHONVER -c "$PYCOMPILECOMMAND"
+/usr/bin/$PYTHONVER -O -c "$PYCOMPILECOMMAND"
signature.asc
Description: OpenPGP digital signature

