[slepc4py] 03/08: Use pybuild with debhelper (dh)
Drew Parsons
dparsons at moszumanska.debian.org
Tue May 16 06:59:49 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 slepc4py.
commit 1ac82c0bc4209a15ea3bf2c3cbb8838c1c0b5041
Author: Drew Parsons <dparsons at debian.org>
Date: Tue May 16 14:13:19 2017 +0800
Use pybuild with debhelper (dh)
otherwise only a python2 build is performed, with no python3 build.
---
debian/changelog | 1 +
debian/rules | 6 +++---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 085a1c6..4f4b39a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
slepc4py (3.7.0-3) UNRELEASED; urgency=medium
* Add python3 support via python3-slepc4py. Closes: #862111.
+ * Use pybuild with debhelper (dh).
* Move documentation and examples to python-slepc4py-docs.
-- Drew Parsons <dparsons at debian.org> Tue, 16 May 2017 13:56:03 +0800
diff --git a/debian/rules b/debian/rules
index 8a16ba1..2932fd2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -32,7 +32,7 @@ SLEPC_DIR=/usr/lib/slepcdir/$(SLEPC_BASE_VERSION)
# main packaging script based on dh7 syntax
%:
- dh $@ --with python2,python3
+ dh $@ --with python2,python3 --buildsystem=pybuild
override_dh_clean:
dh_clean
@@ -41,8 +41,8 @@ override_dh_clean:
override_dh_auto_build:
SLEPC_DIR=$(SLEPC_DIR) PETSC_DIR=$(PETSC_DIR) dh_auto_build
# slepc4py embeds the deep PETSC_DIR path as RPATH in its library.
- # Swap it out for a standard path, or else dh_shlibsdep gets confused
- chrpath -d build/lib.*-*/slepc4py/lib/SLEPc.so
+ # Swap it out for a standard path, or else dh_shlibdeps gets confused
+ chrpath -d .pybuild/pythonX.Y_*/build/slepc4py/lib/SLEPc*.so
override_dh_auto_install:
SLEPC_DIR=$(SLEPC_DIR) PETSC_DIR=$(PETSC_DIR) dh_auto_install
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/slepc4py.git
More information about the debian-science-commits
mailing list