[petsc4py] 02/10: use buildsystem=pybuild with dh

Drew Parsons dparsons at moszumanska.debian.org
Mon May 15 08:48:29 UTC 2017


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

dparsons pushed a commit to tag debian/3.7.0-3
in repository petsc4py.

commit 6169407f1ccf45cf5f52f92ad6a9960dc34ccee6
Author: Drew Parsons <dparsons at debian.org>
Date:   Mon May 15 12:36:27 2017 +0800

    use buildsystem=pybuild with dh
---
 debian/changelog | 1 +
 debian/rules     | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f50161a..2739ffb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 petsc4py (3.7.0-3) UNRELEASED; urgency=medium
 
   * Add python3 support via python3-petsc4py. Closes: #862110.
+  * Use pybuild with building with debhelper (dh).
   * Move documentation and examples to python-petsc4py-docs.
 
  -- Drew Parsons <dparsons at debian.org>  Mon, 15 May 2017 12:19:27 +0800
diff --git a/debian/rules b/debian/rules
index 7495ced..04982a2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,7 +26,7 @@ PETSC_DIR=/usr/lib/petscdir/$(PETSC_VERSION)
 
 # main packaging script based on dh7 syntax
 %:
-	dh $@ --with python2,python3
+	dh $@ --with python2,python3 --buildsystem=pybuild
 
 override_dh_clean:
 	dh_clean
@@ -36,7 +36,7 @@ override_dh_auto_build:
 	PETSC_DIR=$(PETSC_DIR)  dh_auto_build
 	# petsc4py embeds the deep PETSC_DIR path as RPATH in its library.
 	# Swap it out for a standard path, or else dh_shlibdeps gets confused
-	chrpath -d build/lib.*-*/petsc4py/lib/PETSc.so
+	chrpath -d .pybuild/pythonX.Y_*/build/petsc4py/lib/PETSc.so
 
 override_dh_auto_install:
 	PETSC_DIR=$(PETSC_DIR)  dh_auto_install

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



More information about the debian-science-commits mailing list