[med-svn] [libsbml] 08/14: debhelper 10, Python3 bindings
Andreas Tille
tille at debian.org
Thu Dec 15 10:49:54 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository libsbml.
commit f7200a727b8ee332ab5702f8091baf030880574d
Author: Andreas Tille <tille at debian.org>
Date: Wed Dec 14 16:28:23 2016 +0100
debhelper 10, Python3 bindings
---
debian/changelog | 2 ++
debian/compat | 2 +-
debian/control | 21 ++++++++++++++++++++-
debian/rules | 9 ++++++---
4 files changed, 29 insertions(+), 5 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 762e92b..ca15363 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -13,6 +13,8 @@ libsbml (5.13.0+dfsg-1) UNRELEASED; urgency=medium
* cme fix dpkg-control
* hardening=+all
* Use triggers instead of explicit ldconfig calls
+ * debhelper 10
+ * Add Python3 bindings
-- Afif Elghraoui <afif at debian.org> Tue, 13 Dec 2016 11:11:27 +0100
diff --git a/debian/compat b/debian/compat
index ec63514..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+10
diff --git a/debian/control b/debian/control
index b095160..f337209 100644
--- a/debian/control
+++ b/debian/control
@@ -6,12 +6,13 @@ Section: science
Priority: optional
Build-Depends: autoconf,
automake,
- debhelper (>= 9.0.0),
+ debhelper (>= 10),
cmake,
doxygen,
swig,
libxml2-dev,
python-dev,
+ python3-dev,
perl,
libperl-dev,
default-jdk,
@@ -63,6 +64,7 @@ Architecture: any
Section: python
Depends: ${shlibs:Depends},
${misc:Depends},
+ ${python:Depends},
swig2.0 | swig
Provides: python-sbml,
libsbml-python
@@ -74,6 +76,23 @@ Description: System Biology Markup Language library - Python bindings
.
This package contains the Python bindings of LibSBML.
+Package: libsbml5-python3
+Architecture: any
+Section: python
+Depends: ${shlibs:Depends},
+ ${misc:Depends},
+ ${python3:Depends},
+ swig2.0 | swig
+Provides: python-sbml,
+ libsbml-python
+Description: System Biology Markup Language library - Python3 bindings
+ LibSBML is a library designed to help you read, write, manipulate,
+ translate, and validate SBML files and data streams. It is not an
+ application itself (though it does come with many example programs),
+ but rather a library you can embed in your own applications.
+ .
+ This package contains the Python3 bindings of LibSBML.
+
Package: libsbml5-java
Architecture: any
Section: java
diff --git a/debian/rules b/debian/rules
index 691104b..888f948 100755
--- a/debian/rules
+++ b/debian/rules
@@ -37,7 +37,7 @@ endif
DEB_COMPRESS_EXCLUDE = .pdf
%:
- dh $@ --parallel --with python2,cli
+ dh $@ --with python2,python3,cli
get-orig-source:
uscan --verbose --download-current-version --force-download --repack --compression xz
@@ -61,7 +61,8 @@ ifdef BIND_MATLAB
endif
mkdir -p build
cd build ; cmake $(CMAKE_OPTS) ../
- /bin/sh debian/bin/python_fix.sh
+ # skip this hack since it should work also without it
+ # /bin/sh debian/bin/python_fix.sh
override_dh_auto_build:
# we need to mount proc
@@ -81,7 +82,9 @@ override_dh_auto_install:
find $(debtmp)/usr -type f -name "*.js" -delete
find $(debtmp)/usr -type f -name "*.md5" -delete
find $(debtmp)/usr -type f -exec chmod 644 {} +
- test -e $(debtmp)/usr/lib/python2.7/site-packages && mv $(debtmp)/usr/lib/python2.7/site-packages $(debtmp)/usr/lib/python2.7/dist-packages || true
+ for pyv in `py3versions -s` `pyversions -s` ; do \
+ test -e $(debtmp)/usr/lib/$${pyv}/site-packages && mv $(debtmp)/usr/lib/python$${pyv}/site-packages $(debtmp)/usr/lib/python$${pyv}/dist-packages || true ; \
+ done
find $(debtmp)/usr/lib -name "*.mex*" -exec strip --strip-unneeded {} + || true
find $(debtmp)/usr/lib -name "*.mex*" -exec strip --remove-section=.comment {} + || true
dpkg-shlibdeps $(debtmp)/usr/lib/*/*/*/*/*.mex -Tdebian/libsbml5-octave.substvars
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libsbml.git
More information about the debian-med-commit
mailing list