[h5py] 22/44: several fixes as suggested by sandros

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Thu Jul 2 18:25:50 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch upstream/latest
in repository h5py.

commit bccdcb3e4cb163a165b68f8ae90537cd47fd417c
Author: Soeren Sonnenburg <sonne at debian.org>
Date:   Fri Jul 30 21:17:56 2010 +0000

    several fixes as suggested by sandros
---
 debian/control             |  5 ++---
 debian/pycompat            |  1 -
 debian/python-h5py.preinst | 28 ++++++++++++++++++++++++++++
 debian/rules               |  2 +-
 4 files changed, 31 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 08c2b3f..5ce5f92 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: python
 Priority: optional
 Maintainer: Soeren Sonnenburg <sonne at debian.org>
 Build-Depends: debhelper ( >=7), cdbs, python-all-dev (>= 2.5.0),
- python-support (>= 0.5.3), libhdf5-serial-dev (>= 1.8.3), python-numpy
+ python-support (>= 1.0.0), libhdf5-serial-dev (>= 1.8.3), python-numpy (>= 1:1.4.1-4~)
 Standards-Version: 3.9.1.0
 Homepage: http://code.google.com/p/h5py/
 Vcs-Svn: https://bollin.googlecode.com/svn/python-h5py/
@@ -11,8 +11,7 @@ Vcs-Browser: http://bollin.googlecode.com/svn/python-h5py/
 
 Package: python-h5py
 Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends},
-XB-Python-Version: ${python:Versions}
+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
 Description: h5py is a general-purpose Python interface to hdf5
  HDF5 for Python (h5py) is a general-purpose Python interface to the
  Hierarchical Data Format library, version 5. HDF5 is a versatile, mature
diff --git a/debian/pycompat b/debian/pycompat
deleted file mode 100644
index 0cfbf08..0000000
--- a/debian/pycompat
+++ /dev/null
@@ -1 +0,0 @@
-2
diff --git a/debian/python-h5py.preinst b/debian/python-h5py.preinst
new file mode 100644
index 0000000..fec57d3
--- /dev/null
+++ b/debian/python-h5py.preinst
@@ -0,0 +1,28 @@
+#!/bin/sh
+# TODO: remove this file after releasing Squeeze
+set -e
+
+PYCENTRAL=/usr/bin/pycentral
+
+if [ "$1" = upgrade ]
+then
+	if dpkg --compare-versions "$2" lt 1.3.0-2+b1 ; then
+		if [ -x $PYCENTRAL ]; then
+			# explicitly remove old python-central files
+			pycentral pkgremove python-h5py
+		fi
+	fi  
+	# be really sure also removing left-over files and dirs
+	# we do outside the previous 'if' since first pysupport
+	# release was already distributed
+	for pydir in site-packages dist-packages; do
+		for pyversion in 2.4 2.5 2.6; do
+			if [ -d /usr/lib/python$pyversion/$pydir/h5py/ ]; then
+				rm -f /usr/lib/python$pyversion/$pydir/h5py/*
+				rmdir --ignore-fail-on-non-empty /usr/lib/python$pyversion/$pydir/h5py/
+			fi
+		done
+	done
+fi
+
+#DEBHELPER#
diff --git a/debian/rules b/debian/rules
index a777e55..550bb9c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@ include /usr/share/cdbs/1/rules/debhelper.mk
 include /usr/share/cdbs/1/class/python-distutils.mk
 
 binary-install/python-h5py::
-	dh_pysupport -ppython-h5py
+	dh_pysupport
 	dh_numpy
 
 pre-build::

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/h5py.git



More information about the debian-science-commits mailing list