Hi avogadro maintainers and uploaders,

I've worked up a patch for bug 616742, which converts avogadro from
python-central to dh_python2.  I've tested this and it works for me locally.
Note that this does not fix the packaging to build for multiple versions of
Python, but seeing as Python 2.6 is currently the default for Wheezy, that
should be fine for now.

Please let me know what you think.

Cheers,
-Barry

=== modified file 'debian/changelog'
--- debian/changelog	2011-04-24 01:00:16 +0000
+++ debian/changelog	2011-04-25 18:22:45 +0000
@@ -1,3 +1,9 @@
+avogadro (1.0.2-2) unstable; urgency=low
+
+  * Convert to dh_python2. (Closes: #616742)
+
+ -- Barry Warsaw <ba...@python.org>  Mon, 25 Apr 2011 14:22:01 -0400
+
 avogadro (1.0.2-1) unstable; urgency=low
 
   * New upstream release.

=== modified file 'debian/control'
--- debian/control	2011-04-24 01:00:16 +0000
+++ debian/control	2011-04-25 22:48:57 +0000
@@ -5,13 +5,13 @@
 Uploaders: Jordan Mantha <laserj...@ubuntu.com>,
  Michael Banck <mba...@debian.org>,
  Daniel Leidert (dale) <daniel.leid...@wgdd.de>
-Build-Depends: cdbs (>= 0.4.50), debhelper (>= 5.0.38), cmake (>= 2.6.0),
+Build-Depends: cdbs (>= 0.4.90~), debhelper (>= 5.0.38), cmake (>= 2.6.0),
  patchutils, pkg-config, libboost-python-dev, libeigen2-dev (>= 2.0~beta6),
  libglew1.5-dev, libqt4-dev (>= 4.5.0), qt4-dev-tools, zlib1g-dev,
- libqt4-opengl-dev, libopenbabel-dev (>= 2.2.0), python-dev, python-central,
- python-numpy, python-sip-dev
+ libqt4-opengl-dev, libopenbabel-dev (>= 2.2.0), python-dev,
+ python-numpy, python-sip-dev, python (>= 2.6.6-3~)
 Standards-Version: 3.9.1
-XS-Python-Version: current
+X-Python-Version: >= 2.5
 Homepage: http://avogadro.sourceforge.net/
 Vcs-Browser: http://svn.debian.org/wsvn/debichem/
 Vcs-Svn: svn://svn.debian.org/svn/debichem/unstable/avogadro/
@@ -86,7 +86,6 @@
 Replaces: libavogadro0 (<< 0.9.8)
 Conflicts: libavogadro0 (<< 0.9.8)
 Provides: ${python:Provides}
-XB-Python-Version: ${python:Versions}
 Description: Molecular Graphics and Modelling System (Python module)
  Avogadro is a molecular graphics and modelling system targetted at small
  to medium molecules.  It can visualize properties like molecular orbitals or

=== modified file 'debian/python-avogadro.install'
--- debian/python-avogadro.install	2010-02-20 23:33:54 +0000
+++ debian/python-avogadro.install	2011-04-25 19:16:30 +0000
@@ -1,2 +1,2 @@
-usr/lib/python*/*-packages
+usr/lib/python2.6/dist-packages/Avogadro.so
 usr/share/libavogadro/engineScripts/wireframe.py 

=== modified file 'debian/rules'
--- debian/rules	2010-05-19 18:35:43 +0000
+++ debian/rules	2011-04-25 22:49:09 +0000
@@ -20,7 +20,7 @@
 DEB_DH_GENCONTROL_ARGS_python-avogadro = -- -V'pyavo:Depends=python$(PYVER)-numpy, python$(PYVER)-qt4, python$(PYVER)-sip'
 
 binary-install/python-avogadro::
-	dh_pycentral -ppython-avogadro
+	dh_python2 -ppython-avogadro --no-guessing-versions
 	dh_sip
 
 common-binary-post-install-arch:: list-missing

Reply via email to