Hello,
Attached is a patch I just uploaded to Ubuntu converting opendict from
pycentral to dh_python2.
I tried to limit my changes to what was strictly needed to get it working.
I compared the resulting binary package and made sure it installs and
starts fine.
Cheers
--
Stéphane Graber
Ubuntu developer
http://www.ubuntu.com
=== modified file 'debian/changelog'
--- debian/changelog 2011-11-24 06:21:33 +0000
+++ debian/changelog 2012-01-02 10:09:55 +0000
@@ -1,3 +1,16 @@
+opendict (0.6.3-3.1ubuntu1) precise; urgency=low
+
+ * Convert from pycentral to dh_python2
+ - debian/pycompat: Removed (no longer needed)
+ - debian/rules: Replace dh_pycenral by dh_python2
+ - debian/control
+ + Drop XS-Python-Version
+ + Drop python-central from build-depends
+ + Replace build-depends on python-all-dev to python >= 2.6.6-3~
+ + Drop XB-Python-Version from binary package
+
+ -- Stéphane Graber <stgra...@ubuntu.com> Mon, 02 Jan 2012 11:07:38 +0100
+
opendict (0.6.3-3.1) unstable; urgency=low
* Non-maintainer upload.
=== modified file 'debian/control'
--- debian/control 2011-11-24 06:21:33 +0000
+++ debian/control 2012-01-02 10:02:37 +0000
@@ -2,16 +2,14 @@
Section: text
Priority: optional
Maintainer: KÄstutis BiliÅ«nas <ke...@kaunas.init.lt>
-XS-Python-Version: all
Build-Depends: debhelper (>> 6.0.0), quilt (>= 0.40)
-Build-Depends-Indep: python-all-dev (>= 2.3.5-11), python-central (>= 0.5)
+Build-Depends-Indep: python (>= 2.6.6-3~)
Standards-Version: 3.8.0
Homepage: http://opendict.sourceforge.net/
Package: opendict
Architecture: all
Depends: ${python:Depends}, python-wxgtk2.8
-XB-Python-Version: ${python:Versions}
Suggests: dictd, festival
Description: computer dictionary for several dictionary formats
OpenDict is free cross-platform dictionary program. It works with
=== removed file 'debian/pycompat'
--- debian/pycompat 2006-10-01 21:53:17 +0000
+++ debian/pycompat 1970-01-01 00:00:00 +0000
@@ -1,1 +0,0 @@
-2
=== modified file 'debian/rules'
--- debian/rules 2007-09-23 19:33:02 +0000
+++ debian/rules 2012-01-02 10:03:14 +0000
@@ -52,7 +52,7 @@
dh_strip
dh_compress
dh_fixperms
- dh_pycentral
+ dh_python2
# dh_python
dh_installdeb
dh_shlibdeps