Package: pybaz Severity: wishlist Tags: patch Hi Anand,
I think you should ship python2.3-pybaz and python2.4-pybaz from pybaz source package. It's recommended by Debian Python Policy and will help packages like bzrtools (that i maintain). bzrtools is python2.4 only, and i can't suggest pybaz since the package installs its files only into python2.3 related directories. There's a patch attached here that does what i'm suggesting in a clean way (pybaz depending on python2.3-pybaz | python2.4-pybaz) and contains some cleanups to the package too. I can resend without the cleanup stuff if you want, but i would like to recommend that you bump up the Standards-Version and debhelper compatibility in your next upload (both aren't urgent). Hope that helps, Gustavo Franco - <[EMAIL PROTECTED]>
diff -Nru pybaz-1.5pre1.orig/debian/control pybaz-1.5pre1/debian/control --- pybaz-1.5pre1.orig/debian/control 2006-01-07 00:19:45.000000000 -0200 +++ pybaz-1.5pre1/debian/control 2006-01-06 15:53:35.000000000 -0200 @@ -2,12 +2,26 @@ Section: python Priority: optional Maintainer: Anand Kumria <[EMAIL PROTECTED]> -Build-Depends: debhelper (>= 4.0.0), python-epydoc, bazaar +Build-Depends: debhelper (>= 4.0.0), python, python-epydoc, bazaar, python2.3-dev, python2.4-dev Standards-Version: 3.6.2 Package: pybaz Architecture: all -Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, bazaar +Depends: python | python2.4, bazaar, python2.3-pybaz | python2.4-pybaz +Description: python bindings for the bazaar revision control system + pybaz provides an API to the bazaar revision system that allows you + to implement custom scripts, graphical user interfaces and web services + +Package: python2.3-pybaz +Architecture: all +Depends: python (>= 2.3), python (<< 2.4), bazaar +Description: python bindings for the bazaar revision control system + pybaz provides an API to the bazaar revision system that allows you + to implement custom scripts, graphical user interfaces and web services + +Package: python2.4-pybaz +Architecture: all +Depends: python2.4, bazaar Description: python bindings for the bazaar revision control system pybaz provides an API to the bazaar revision system that allows you to implement custom scripts, graphical user interfaces and web services diff -Nru pybaz-1.5pre1.orig/debian/rules pybaz-1.5pre1/debian/rules --- pybaz-1.5pre1.orig/debian/rules 2006-01-07 00:19:45.000000000 -0200 +++ pybaz-1.5pre1/debian/rules 2006-01-06 16:01:19.000000000 -0200 @@ -9,33 +9,16 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 - - - -CFLAGS = -Wall -g - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif - -configure: configure-stamp -configure-stamp: - dh_testdir - # Add here commands to configure the package. - - touch configure-stamp - - build: build-stamp -build-stamp: configure-stamp +build-stamp: dh_testdir # Add here commands to compile the package. #$(MAKE) - python setup.py build + python2.3 setup.py build + python2.4 setup.py build + #docbook-to-man debian/pybaz.sgml > pybaz.1 $(MAKE) doc @@ -48,7 +31,8 @@ # Add here commands to clean up after the build process. #-$(MAKE) clean - python setup.py clean + python2.3 setup.py clean + python2.4 setup.py clean find $(CURDIR) -name "*.pyc" -exec rm -f '{}' \; rm -rf ,,make-doc @@ -62,17 +46,14 @@ # Add here commands to install the package into debian/pybaz. #$(MAKE) install DESTDIR=$(CURDIR)/debian/pybaz - python setup.py install --root=$(CURDIR)/debian/pybaz + python2.3 setup.py install --root=$(CURDIR)/debian/python2.3-pybaz + python2.4 setup.py install --root=$(CURDIR)/debian/python2.4-pybaz + mkdir -p $(CURDIR)/debian/pybaz/usr/share/doc/pybaz/html cp -rp $(CURDIR)/html $(CURDIR)/debian/pybaz/usr/share/doc/pybaz/html/ - # Build architecture-independent files here. binary-indep: build install -# We have nothing to do by default. - -# Build architecture-dependent files here. -binary-arch: build install dh_testdir dh_testroot dh_installchangelogs ChangeLog @@ -102,5 +83,10 @@ dh_md5sums dh_builddeb + +# Build architecture-dependent files here. +binary-arch: build install +# We have nothing to do by default. + binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure +.PHONY: build clean binary-indep binary-arch binary install