Package: basemap
Version: 1.0.2-1
Severity: wishlist
Tags: patch

compressing basemap with xz makes the package 30% smaller saving 30mb [0].
I think this is a significant enough saving to warrant the use of xz.

Attached a patch to do so [1]. On the next upstream release the orig
tarball could be re-compressed with xz too which also saves 30mb.


[0] orig (gz) -1, xz compressed -2:
7.0M ./python-mpltoolkits.basemap-doc_1.0.2-1_all.deb
664K ./python-mpltoolkits.basemap_1.0.2-1_amd64.deb
101M ./python-mpltoolkits.basemap-data_1.0.2-1_all.deb

293K ./python-mpltoolkits.basemap_1.0.2-2_amd64.deb
7.0M ./python-mpltoolkits.basemap-doc_1.0.2-2_all.deb
 71M ./python-mpltoolkits.basemap-data_1.0.2-2_all.deb

[1] The dpkg Predepends is needed for derivatives which have releases
with older dpkg versions.
diff -Nru basemap-1.0.2/debian/changelog basemap-1.0.2/debian/changelog
--- basemap-1.0.2/debian/changelog      2012-01-04 22:25:41.000000000 +0100
+++ basemap-1.0.2/debian/changelog      2012-01-04 22:28:20.000000000 +0100
@@ -1,3 +1,9 @@
+basemap (1.0.2-2) UNRELEASED; urgency=low
+
+  * use xz compression
+
+ -- Julian Taylor <[email protected]>  Wed, 04 Jan 2012 22:15:06 
+0100
+
 basemap (1.0.2-1) unstable; urgency=low
 
   * New upstream release
diff -Nru basemap-1.0.2/debian/control basemap-1.0.2/debian/control
--- basemap-1.0.2/debian/control        2012-01-04 22:25:41.000000000 +0100
+++ basemap-1.0.2/debian/control        2012-01-04 22:28:20.000000000 +0100
@@ -9,6 +9,7 @@
 
 Package: python-mpltoolkits.basemap
 Architecture: any
+Pre-Depends: dpkg (>= 1.15.6)
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, 
python-mpltoolkits.basemap-data (>= ${source:Version}), python-matplotlib
 Recommends: python-dap, python-imaging
 Description: matplotlib toolkit to plot on map projections
@@ -39,6 +40,7 @@
 
 Package: python-mpltoolkits.basemap-data
 Architecture: all
+Pre-Depends: dpkg (>= 1.15.6)
 Depends: ${misc:Depends}
 Description: matplotlib toolkit to plot on map projections (data package)
  The matplotlib basemap toolkit is a library for plotting 2D data on maps in
@@ -71,6 +73,7 @@
 Package: python-mpltoolkits.basemap-doc
 Section: doc
 Architecture: all
+Pre-Depends: dpkg (>= 1.15.6)
 Depends: ${misc:Depends}, ${sphinxdoc:Depends}
 Description: matplotlib toolkit to plot on map projections (documentation)
  The matplotlib basemap toolkit is a library for plotting 2D data on maps in
diff -Nru basemap-1.0.2/debian/rules basemap-1.0.2/debian/rules
--- basemap-1.0.2/debian/rules  2012-01-04 22:25:41.000000000 +0100
+++ basemap-1.0.2/debian/rules  2012-01-04 22:30:59.000000000 +0100
@@ -29,3 +29,6 @@
 
 override_dh_sphinxdoc:
        dh_sphinxdoc -i
+
+override_dh_builddeb:
+       dh_builddeb -- -Zxz

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to