[slepc4py] 02/08: use versioned dependency on python-petsc4py

Drew Parsons dparsons at moszumanska.debian.org
Tue Jul 5 14:51:12 UTC 2016


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

dparsons pushed a commit to branch master
in repository slepc4py.

commit e2b367a8f28d072a33d143ec5c83b84ae5c7c374
Author: Drew Parsons <dparsons at debian.org>
Date:   Tue Jul 5 18:17:47 2016 +0800

    use versioned dependency on python-petsc4py
    
    slepc4py 3.6 must go with petsc4py 3.6, along with SLEPc 3.6 and PETSc
    3.7 (any patch/release version)
---
 debian/control |  2 +-
 debian/rules   | 13 +++++++++----
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/debian/control b/debian/control
index 87a9d8f..cff6b44 100644
--- a/debian/control
+++ b/debian/control
@@ -14,7 +14,7 @@ Vcs-Browser: http://anonscm.debian.org/cgit/debian-science/packages/slepc4py.git
 
 Package: python-slepc4py
 Architecture: any
-Depends: ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
+Depends: ${petsc4py:Depends}, ${python:Depends}, ${shlibs:Depends}, ${misc:Depends}
 Provides: ${python:Provides}
 XB-Python-Version: ${python:Versions}
 Description: Python bindings for SLEPc libraries
diff --git a/debian/rules b/debian/rules
index fa8a983..7bdbfff 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,11 +11,14 @@ include /usr/share/dpkg/default.mk
 
 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
 
-PETSC_VERSION=3.6.2$(PETSC_EXT)
-PETSC_DIR=/usr/lib/petscdir/$(PETSC_VERSION)/$(DEB_HOST_MULTIARCH)-real
+SLEPC_BASE_VERSION=3.6
 
-SLEPC_VERSION=3.6.1$(SLEPC_EXT)
-SLEPC_DIR=/usr/lib/slepcdir/$(SLEPC_VERSION)/$(DEB_HOST_MULTIARCH)-real
+SLEPC_MAJOR_VERSION=$(shell echo $(SLEPC_BASE_VERSION) | sed "s/\..*//")
+SLEPC_MINOR_VERSION=$(shell echo $(SLEPC_BASE_VERSION) | sed "s/.*\.//")
+SLEPC_NEXT_VERSION=$(shell echo $(SLEPC_MAJOR_VERSION).$$(( $(SLEPC_MINOR_VERSION) + 1 )) )
+
+PETSC_DIR=/usr/lib/petscdir/$(SLEPC_BASE_VERSION)/$(DEB_HOST_MULTIARCH)-real
+SLEPC_DIR=/usr/lib/slepcdir/$(SLEPC_BASE_VERSION)/$(DEB_HOST_MULTIARCH)-real
 
 # see FEATURE AREAS in dpkg-buildflags(1)
 #export DEB_BUILD_MAINT_OPTIONS = hardening=+all
@@ -51,3 +54,5 @@ override_dh_python2:
 override_dh_compress:
 	dh_compress -Xpdf
 
+override_dh_gencontrol:
+	dh_gencontrol -- -Vpetsc4py:Depends="python-petsc4py (>= $(SLEPC_BASE_VERSION)), python-petsc4py (<< $(SLEPC_NEXT_VERSION))"

-- 
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