The following commit has been merged in the master branch: commit 5d3833ef41ac1892a94362b4b32608179c7d2800 Author: Francesco Paolo Lovergine <fran...@debian.org> Date: Tue Mar 9 11:31:31 2010 +0100
Adding essential substvars support for third-parties package. diff --git a/debian/libsaga-dev.README.Debian b/debian/libsaga-dev.README.Debian new file mode 100644 index 0000000..f3b6262 --- /dev/null +++ b/debian/libsaga-dev.README.Debian @@ -0,0 +1,16 @@ +SAGA Gis for Debian +------------------- + +Libraries provided by SAGA Gis can be used by third-parties modules, +but currently change at every new release their APIs. Therefore, third-parties +source packages should build-depend on libsaga-dev and depend on +an additional ${saga:Depends} substvar. This will enforce strict package +dependency on the right library version and prevent obscure failure +due to changes in structures or functions. + +Their debian/rules should execute a little debhelper script +named /usr/bin/saga-depends to append required versioned lib dependencies +to their control file before executing dh_shlibdeps. That script is +provided in the libsaga-dev package. + +-- Francesco Paolo Lovergine <fran...@debian.org> Tue Mar 9 11:30:25 CET 2010 diff --git a/debian/saga-depends b/debian/saga-depends new file mode 100644 index 0000000..c1d51a6 --- /dev/null +++ b/debian/saga-depends @@ -0,0 +1,19 @@ +#!/bin/sh +# +# This tiny script is a debhelper script that adds substitution vars for +# packages that have to depend on the libsaga libraries. +# +# Use: saga-depends [binary-name ...] +# + +if [ $# -ne 0 ]; then + cat >>debian/${PKG}.substvars <<EOF +saga:Depends=libsaga-2.0.4 +EOF +else + cat >>debian/substvars <<EOF +saga:Depends=libsaga-2.0.4 +EOF + +fi + diff --git a/debian/saga-depends.in b/debian/saga-depends.in new file mode 100644 index 0000000..d51957d --- /dev/null +++ b/debian/saga-depends.in @@ -0,0 +1,19 @@ +#!/bin/sh +# +# This tiny script is a debhelper script that adds substitution vars for +# packages that have to depend on the libsaga libraries. +# +# Use: saga-depends [binary-name ...] +# + +if [ $# -ne 0 ]; then + cat >>debian/${PKG}.substvars <<EOF +saga:depends=libsa...@version@ +EOF +else + cat >>debian/substvars <<EOF +saga:depends=libsa...@version@ +EOF + +fi + -- Saga GIS _______________________________________________ Pkg-grass-devel mailing list Pkg-grass-devel@lists.alioth.debian.org http://lists.alioth.debian.org/mailman/listinfo/pkg-grass-devel