Package: python-serial
Version: 2.2-1
Severity: wishlist
Tags: patch

Please build python-serial for all versions of Python depended on by python-all (currently, this means Python 2.3 and 2.4).

The attached patch splits python-serial into:
        python-serial,
        python-serial-doc,
        python2.3-serial, and
        python2.4-serial.

-- System Information:
Debian Release: 3.1
 APT prefers unstable
 APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.12.6-xen-skas3-v9-pre7-skas3-v9-pre7
Locale: LANG=C, LC_CTYPE=C (charmap=UTF-8) (ignored: LC_ALL set to en_CA.UTF-8)

Versions of packages python-serial depends on:
ii  python                        2.3.5-1    An interactive high-level object-o

-- no debconf information

--
Dwayne C. Litzenberger <[EMAIL PROTECTED]>
diff -ruN j/pyserial-2.2/debian/control pyserial-2.2/debian/control
--- j/pyserial-2.2/debian/control       2006-03-15 00:58:25.000000000 -0600
+++ pyserial-2.2/debian/control 2006-03-15 00:45:29.000000000 -0600
@@ -2,15 +2,43 @@
 Section: python
 Priority: optional
 Maintainer: Matthias Klose <[EMAIL PROTECTED]>
-Build-Depends-Indep: debhelper (>= 4.1.67), python-dev
+Build-Depends-Indep: cdbs, debhelper (>= 4.1.67), python-dev (>= 2.3), 
python2.3-dev, python2.4-dev
 Standards-Version: 3.6.1
 
 Package: python-serial
 Architecture: all
+Depends: python2.3-serial
+Suggests: python-serial-doc
+Description: Module encapsulating access for the serial port
+ This is a "dummy package that will cause the Pyserial package for Debian's
+ default Python version to always be present on your system.
+
+Package: python-serial-doc
+Architecture: all
+Description: Module encapsulating access for the serial port
+ This package contains the documentation for Pyserial.
+
+Package: python2.3-serial
+Architecture: all
+Depends: ${python:Depends}
+Suggests: python-wxgtk2.6 | python-wxgtk2.4 | python-wxgtk, python-serial-doc
+Description: Module encapsulating access for the serial port
+ This module capsulates the access for the serial port. It provides
+ backends for standard Python running on Windows, Linux, BSD (possibly
+ any POSIX compilant system). The module named "serial" automaticaly
+ selects the appropriate backend.Package: python2.4-serial
+ .
+ This package is for Python 2.3.
+
+Package: python2.4-serial
+Architecture: all
 Depends: ${python:Depends}
-Suggests: python-wxgtk2.6 | python-wxgtk2.4 | python-wxgtk
+Suggests: python-wxgtk2.6 | python-wxgtk2.4 | python-wxgtk, python-serial-doc
 Description: Module encapsulating access for the serial port
  This module capsulates the access for the serial port. It provides
  backends for standard Python running on Windows, Linux, BSD (possibly
  any POSIX compilant system). The module named "serial" automaticaly
  selects the appropriate backend.
+ .
+ This package is for Python 2.4.
+
diff -ruN j/pyserial-2.2/debian/rules pyserial-2.2/debian/rules
--- j/pyserial-2.2/debian/rules 2006-03-15 00:58:25.000000000 -0600
+++ pyserial-2.2/debian/rules   2006-03-15 00:56:25.000000000 -0600
@@ -1,68 +1,10 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+# -*- mode: makefile; coding: utf-8 -*-
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-PY_INTERPRETER = /usr/bin/python
-
-build: build-stamp
-
-build-stamp:
-       dh_testdir
-       python setup.py build
-       touch build-stamp
-
-clean:
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp
-       rm -rf build
-       -find . -name '*.py[co]' | xargs rm -f
-       dh_clean
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_clean -k 
-       dh_installdirs
-       python setup.py install --prefix=$(CURDIR)/debian/python-serial/usr
-       -find debian -name '*.py[co]' | xargs rm -f
-
-# Build architecture-independent files here.
-binary-indep: build install
-       dh_testdir
-       dh_testroot
-       dh_installchangelogs CHANGES.txt
-       dh_installdocs README.txt
-       dh_installexamples examples/*
-       dh_installman
-       : # Replace all '#!' calls to python with $(PY_INTERPRETER)
-       : # and make them executable
-       for i in `find debian -mindepth 3 -type f`; do \
-         sed '1s,#!.*python[^ ]*\(.*\),#! $(PY_INTERPRETER)\1,' \
-               $$i > $$i.temp; \
-         if cmp --quiet $$i $$i.temp; then \
-           rm -f $$i.temp; \
-         else \
-           mv -f $$i.temp $$i; \
-           chmod 755 $$i; \
-           echo "fixed interpreter: $$i"; \
-         fi; \
-       done
-       dh_compress -X.py -X.wxg
-       dh_fixperms
-       dh_python
-       dh_installdeb
-       dh_gencontrol
-       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
+include /usr/share/cdbs/1/rules/buildcore.mk
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/python-distutils.mk
+
+DEB_INSTALL_DOCS_python-serial-doc := examples
+DEB_INSTALL_CHANGELOGS_ALL := CHANGES.txt
+DEB_INSTALL_DOCS_ALL := README.txt

Reply via email to