Package: egenix-mx-base Version: 3.1.3-3 Severity: wishlist Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu lucid ubuntu-patch
This package includes some great API docs, as pdf files, which are rather large. To trim the package install size, I split the docs out into -doc packages. *** /tmp/tmp2zF4wH In Ubuntu, we've applied the attached patch to achieve the following: * debian/control, debian/movefiles.sh, debian/docbase.template - Split docs out into -doc packages to trim the default package size (LP: #523969) We thought you might be interested in doing the same. -- System Information: Debian Release: squeeze/sid APT prefers lucid-updates APT policy: (500, 'lucid-updates'), (500, 'lucid-security'), (500, 'lucid-proposed'), (500, 'lucid') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-13-generic (SMP w/2 CPU cores) Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -u egenix-mx-base-3.1.3/debian/rules egenix-mx-base-3.1.3/debian/rules --- egenix-mx-base-3.1.3/debian/rules +++ egenix-mx-base-3.1.3/debian/rules @@ -76,14 +76,23 @@ # Collect files. dh_install -ppython-egenix-mxbeebase \ + -ppython-egenix-mxbeebase-doc \ -ppython-egenix-mxdatetime \ + -ppython-egenix-mxdatetime-doc \ -ppython-egenix-mxproxy \ + -ppython-egenix-mxproxy-doc \ -ppython-egenix-mxqueue \ + -ppython-egenix-mxqueue-doc \ -ppython-egenix-mxstack \ + -ppython-egenix-mxstack-doc \ -ppython-egenix-mxtexttools \ + -ppython-egenix-mxtexttools-doc \ -ppython-egenix-mxtools \ + -ppython-egenix-mxtools-doc \ -ppython-egenix-mxuid \ + -ppython-egenix-mxuid-doc \ -ppython-egenix-mxurl \ + -ppython-egenix-mxurl-doc \ --sourcedir=debian/python$*-tmp # Move C header files and other stuff to the right location. diff -u egenix-mx-base-3.1.3/debian/control egenix-mx-base-3.1.3/debian/control --- egenix-mx-base-3.1.3/debian/control +++ egenix-mx-base-3.1.3/debian/control @@ -46,6 +46,18 @@ mxBeeBase comes with two readily usable on-disk dictionary implementations: BeeDict and BeeStringDict. +Package: python-egenix-mxbeebase-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: python-egenix-mxbeebase (<< 3.1.3-3) +Description: on-disk B+Tree based database kit for Python + mxBeeBase is a high performance construction kit for disk based + indexed databases. It offers components which you can plug together + to easily build your own custom mid-sized databases. + . + The package includes documentation for mxBeeBase. + Package: python-egenix-mxdatetime Architecture: any Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-egenix-mxtools @@ -88,6 +100,21 @@ date/time formats, which are handy if you work a lot with Internet standards. +Package: python-egenix-mxdatetime-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: python-egenix-mxdatetime (<< 3.1.3-3) +Description: date and time handling routines for Python + mxDateTime is a Python extension package that provides three new + objects, DateTime, DateTimeDelta and RelativeDateTime, which let you + store and handle date/time values in a much more natural way than by + using ticks (seconds since 1.1.1970 0:00 UTC), the representation + used by Python's time module). + . + The package includes documentation for mxDateTime. + + Package: python-egenix-mxproxy Architecture: any Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-egenix-mxtools @@ -106,6 +133,18 @@ gap. It also gives the programmer more control over how and to what extent access should be controlled or not. +Package: python-egenix-mxproxy-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: python-egenix-mxproxy (<< 3.1.3-3) +Description: generic proxy wrapper type for Python + mxProxy is an extension package that provides a new type that is + suitable to implement Bastion like features without the need to use + restricted execution environments. + . + The package includes documentation for mxProxy. + Package: python-egenix-mxqueue Architecture: any Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-egenix-mxtools @@ -122,6 +161,17 @@ push() and pop() methods and focuses on obtaining maximum speed at low memory costs. +Package: python-egenix-mxqueue-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: python-egenix-mxqueue (<< 3.1.3-3) +Description: fast and memory-efficient queue for Python + mxQueue is a Python extension package that provides a new object type + called Queue. + . + The package includes documentation for mxQueue. + Package: python-egenix-mxstack Architecture: any Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-egenix-mxtools @@ -138,6 +188,17 @@ push() and pop() methods and focuses on obtaining maximum speed at low memory costs. +Package: python-egenix-mxstack-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: python-egenix-mxstack (<< 3.1.3-3) +Description: fast and memory-efficient stack for Python + mxStack is a Python extension package that provides a new object type + called Stack. + . + The package includes documentation for mxStack. + Package: python-egenix-mxtexttools Architecture: any Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-egenix-mxtools @@ -152,13 +213,26 @@ addition to a very flexible and extendable state machine, the Tagging Engine, which allows scanning and processing text at C speeds. +Package: python-egenix-mxtexttools-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: python-egenix-mxtexttools (<< 3.1.3-3) +Description: fast text processing tools for Python + mxTextTools is an extension package for Python that provides + high-performance text manipulation and searching algorithms, in + addition to a very flexible and extendable state machine, the Tagging + Engine, which allows scanning and processing text at C speeds. + . + The package includes documentation for mxTextTools. + Package: python-egenix-mxtools Architecture: any Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends} Provides: ${python:Provides} Conflicts: python2.3-egenix-mxtools, python2.4-egenix-mxtools Replaces: python2.3-egenix-mxtools, python2.4-egenix-mxtools -Suggests: python-egenix-mxtools-dbg +Suggests: python-egenix-mxtools-dbg, python-egenix-mxtools-doc XB-Python-Version: ${python:Versions} Description: collection of additional builtins for Python mxTools is a Python extension package that includes a collection of @@ -169,6 +243,19 @@ The package includes several functions which provide access to Python internals that would otherwise not be available. +Package: python-egenix-mxtools-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: python-egenix-mxtools (<< 3.1.3-3) +Description: collection of additional builtins for Python + mxTools is a Python extension package that includes a collection of + handy functions and objects giving additional functionality to the + Python programmer in form of new builtins, extensions to the sys + module and several other helpers as part of the package. + . + The package includes documentation for mxTools. + Package: python-egenix-mxuid Architecture: any Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-egenix-mxtools, python-egenix-mxdatetime @@ -185,6 +272,19 @@ unique IDs play an important role are RPC-implementations, ORBs, user identification, message passing systems, object databases, etc. +Package: python-egenix-mxuid-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: python-egenix-mxuid (<< 3.1.3-3) +Description: unique identifiers for Python + mxUID provides a fast mechanism for generating universal + identification strings (UIDs) with intention of making these UIDs + unique with high probability in order to serve as object or data set + identifiers. + . + The package includes documentation for mxUID. + Package: python-egenix-mxurl Architecture: any Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-egenix-mxtools, python-egenix-mxtexttools @@ -206,0 +307,13 @@ + +Package: python-egenix-mxurl-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends} +Replaces: python-egenix-mxurl (<< 3.1.3-3) +Description: flexible URL datatype for Python + mxURL provides a new easy to use, fast and light-weight builtin + datatype URL for storing and manipulating Universal Resource Locators + (URLs), as well as a few helpers related to URL building, encoding + and decoding. + . + The package includes documentation for mxURL. diff -u egenix-mx-base-3.1.3/debian/changelog egenix-mx-base-3.1.3/debian/changelog diff -u egenix-mx-base-3.1.3/debian/movefiles.sh egenix-mx-base-3.1.3/debian/movefiles.sh --- egenix-mx-base-3.1.3/debian/movefiles.sh +++ egenix-mx-base-3.1.3/debian/movefiles.sh @@ -17,18 +17,18 @@ debian/$debpkg/usr/lib/python$ver/*-packages/mx/$pkg/LICENSE \ debian/$debpkg/usr/lib/python$ver/*-packages/mx/$pkg/COPYRIGHT - install -d debian/$debpkg/usr/share/doc/$debpkg + install -d debian/$debpkg-doc/usr/share/doc/$debpkg-doc if [ -d debian/$debpkg/usr/lib/python$ver/*-packages/mx/$pkg/Examples ]; then - install -d debian/$debpkg/usr/share/doc/$debpkg/examples + install -d debian/$debpkg-doc/usr/share/doc/$debpkg-doc/examples rm -f debian/$debpkg/usr/lib/python$ver/*-packages/mx/$pkg/Examples/__init__.* \ debian/$debpkg/usr/lib/python$ver/*-packages/mx/$pkg/Examples/*.py? mv debian/$debpkg/usr/lib/python$ver/*-packages/mx/$pkg/Examples/* \ - debian/$debpkg/usr/share/doc/$debpkg/examples + debian/$debpkg-doc/usr/share/doc/$debpkg-doc/examples fi - cp mx/Doc/mx$pkg.pdf debian/$debpkg/usr/share/doc/$debpkg + cp mx/Doc/mx$pkg.pdf debian/$debpkg-doc/usr/share/doc/$debpkg-doc # Remove unwanted cruft. rm -rf debian/$debpkg/usr/lib/python$ver/*-packages/mx/$pkg/Examples \ diff -u egenix-mx-base-3.1.3/debian/installtemplates.sh egenix-mx-base-3.1.3/debian/installtemplates.sh --- egenix-mx-base-3.1.3/debian/installtemplates.sh +++ egenix-mx-base-3.1.3/debian/installtemplates.sh @@ -7,7 +7,7 @@ for ver in $VERSIONS; do for pkg in $PACKAGES; do - debpkg=python-egenix-mx$(echo -n $pkg | tr '[:upper:]' '[:lower:]') + debpkg=python-egenix-mx$(echo -n $pkg | tr '[:upper:]' '[:lower:]')-doc install -d debian/$debpkg/usr/share/doc-base sed -e "s/@PKGNAME@/$debpkg/g" \