On Tue, Jul 17, 2012 at 11:22:09AM +0200, Evgeni Golov wrote: > attached is a patch to use dh_python2 and it's substvars.
After Jakub's pointer to [1] on IRC, a revised patch is attached. Regards Evgeni [1] http://lists.debian.org/debian-python/2011/03/msg00139.html -- Bruce Schneier can read and understand Perl programs.
diff -Nru python-colorama-0.2.4/debian/changelog python-colorama-0.2.4/debian/changelog --- python-colorama-0.2.4/debian/changelog 2012-03-06 19:17:39.000000000 +0100 +++ python-colorama-0.2.4/debian/changelog 2012-07-17 14:45:48.000000000 +0200 @@ -1,3 +1,13 @@ +python-colorama (0.2.4-1.1) UNRELEASED; urgency=low + + * Non-maintainer upload. + * Use dh_python2. + Build-Depend on python (>= 2.6.6-3~) for that. + Add python:Depends to Depends. + Closes: #681584 + + -- Evgeni Golov <evg...@debian.org> Tue, 17 Jul 2012 08:52:08 +0200 + python-colorama (0.2.4-1) unstable; urgency=low * Initial release (Closes: #662761) diff -Nru python-colorama-0.2.4/debian/control python-colorama-0.2.4/debian/control --- python-colorama-0.2.4/debian/control 2012-03-06 19:17:39.000000000 +0100 +++ python-colorama-0.2.4/debian/control 2012-07-17 14:45:24.000000000 +0200 @@ -2,7 +2,7 @@ Section: python Priority: optional Maintainer: Khalid El Fathi <kha...@elfathi.fr> -Build-Depends: debhelper (>= 9.0.0), python +Build-Depends: debhelper (>= 9.0.0), python (>= 2.6.6-3~) Standards-Version: 3.9.3 Homepage: http://pypi.python.org/pypi/colorama/ Vcs-Git: git://git.debian.org/collab-maint/python-colorama.git @@ -11,7 +11,7 @@ Package: python-colorama Architecture: all -Depends: ${misc:Depends} +Depends: ${python:Depends}, ${misc:Depends} Description: Cross-platform colored terminal text in Python Python-colorama provides a simple cross-platform API to print colored terminal text from Python applications. diff -Nru python-colorama-0.2.4/debian/rules python-colorama-0.2.4/debian/rules --- python-colorama-0.2.4/debian/rules 2012-03-06 19:17:39.000000000 +0100 +++ python-colorama-0.2.4/debian/rules 2012-07-17 08:51:06.000000000 +0200 @@ -2,7 +2,7 @@ #export DH_VERBOSE=1 %: - dh $@ + dh $@ --with=python2 override_dh_installexamples: cp -r $(CURDIR)/demos/* $(CURDIR)/debian/python-colorama/usr/share/doc/python-colorama/examples/