Hello,
Attached is the patch I just uploaded to Ubuntu converting lybniz from
pycentral to dh_python2.
I tried to limit my changes to what's strictly needed to get it working.
I compared the resulting binary packages and made sure it installs and
starts fine.
Cheers
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
=== modified file 'debian/changelog'
--- debian/changelog 2008-03-21 20:36:36 +0000
+++ debian/changelog 2012-01-02 09:13:22 +0000
@@ -1,3 +1,19 @@
+lybniz (1.3.2-2ubuntu1) precise; urgency=low
+
+ * Convert from pycentral to dh_python2
+ - debian/pycompat: Removed (no longer needed)
+ - debian/rules
+ + Drop DEB_PYTHON_SYSTEM (no longer needed)
+ + Set DEB_PYTHON2_MODULE_PACKAGES to lybniz
+ - debian/control
+ + Drop XS-Python-Version and set X-Python-Version instead
+ + Change build-dep on python-all-dev to python instead (arch: all)
+ + Bbump dependency on python and cdbs for dh_python2
+ + Drop XB-Python-Version from binary package
+ + Drop ${shlibs:Depends} from binary package's depends
+
+ -- Stéphane Graber <stgra...@ubuntu.com> Mon, 02 Jan 2012 10:08:56 +0100
+
lybniz (1.3.2-2) unstable; urgency=low
* Change Build-Depends: python-central (>= 0.6.0). (Closes: #472015)
=== modified file 'debian/control'
--- debian/control 2008-03-21 20:36:36 +0000
+++ debian/control 2012-01-02 09:04:45 +0000
@@ -3,9 +3,8 @@
Priority: optional
Maintainer: Varun Hiremath <va...@debian.org>
Uploaders: Torsten Werner <twer...@debian.org>
-XS-Python-Version: >= 2.3
-Build-Depends: debhelper (>= 5), cdbs (>= 0.4.43), python-all-dev (>= 2.3.5-11),
- python-central (>= 0.6.0), quilt
+X-Python-Version: >= 2.3
+Build-Depends: debhelper (>= 5), cdbs (>= 0.4.90~), python (>= 2.6.6-3~), quilt
Standards-Version: 3.7.3
Homepage: http://lybniz2.sourceforge.net/
Vcs-Svn: https://bollin.googlecode.com/svn/lybniz/
@@ -13,8 +12,7 @@
Package: lybniz
Architecture: all
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-gtk2, python-gnome2
-XB-Python-Version: ${python:Versions}
+Depends: ${misc:Depends}, ${python:Depends}, python-gtk2, python-gnome2
Description: mathematical function graph plotter
Lybniz is a simple desktop graph plotter. It can currently plot three
functions and allows you to navigate the plot. Functions are entered
=== removed file 'debian/pycompat'
--- debian/pycompat 2006-12-10 20:59:34 +0000
+++ debian/pycompat 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
-2
=== modified file 'debian/rules'
--- debian/rules 2008-03-21 20:36:36 +0000
+++ debian/rules 2012-01-02 09:03:53 +0000
@@ -1,5 +1,5 @@
#!/usr/bin/make -f
-DEB_PYTHON_SYSTEM=pycentral
+DEB_PYTHON2_MODULE_PACKAGES=lybniz
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/python-distutils.mk