[saga] 01/02: Add templates target to update the version in package control files.

Sebastiaan Couwenberg sebastic at moszumanska.debian.org
Fri Apr 1 21:38:28 UTC 2016


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

sebastic pushed a commit to branch master
in repository saga.

commit 4f12ea360532f42c720d15d936c5b8f0b4f0157a
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Fri Apr 1 22:42:45 2016 +0200

    Add templates target to update the version in package control files.
---
 debian/changelog  |   1 +
 debian/control.in | 105 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 debian/rules      |  10 ++++--
 3 files changed, 113 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4d6ed2f..454e80b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,7 @@ saga (2.2.6+dfsg-1) UNRELEASED; urgency=medium
   * Move architecture independent files to saga-common package.
   * Explicitly remove files not to be installed.
   * Enable all hardening buildflags.
+  * Add templates target to update the version in package control files.
 
  -- Johan Van de Wauw <johan at vandewauw.be>  Fri, 04 Mar 2016 17:34:50 +0100
 
diff --git a/debian/control.in b/debian/control.in
new file mode 100644
index 0000000..34bcf9f
--- /dev/null
+++ b/debian/control.in
@@ -0,0 +1,105 @@
+Source: saga
+Maintainer: Debian GIS Project <pkg-grass-devel at lists.alioth.debian.org>
+Uploaders: Johan Van de Wauw <johan at vandewauw.be>,
+           Francesco Paolo Lovergine <frankie at debian.org>
+Section: science
+Priority: optional
+Build-Depends: libwxgtk3.0-dev,
+               wx-common,
+               libgdal-dev,
+               libexpat-dev,
+               libogdi3.2-dev,
+               libproj-dev,
+               debhelper (>= 9),
+               swig,
+               libqhull-dev,
+               libhpdf-dev,
+               python-dev,
+               dh-autoreconf,
+               libsvm-dev,
+               libvigraimpex-dev,
+               libcv-dev,
+               libopencv-core-dev,
+               libopencv-contrib-dev,
+               libopencv-imgproc-dev,
+               libopencv-legacy-dev,
+               libopencv-photo-dev
+Standards-Version: 3.9.7
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-grass/saga.git
+Vcs-Git: https://anonscm.debian.org/git/pkg-grass/saga.git
+Homepage: http://www.saga-gis.org/
+
+Package: saga
+Architecture: any
+Depends: saga-common (= ${source:Version}),
+         libsaga (= ${binary:Version}),
+         ${shlibs:Depends},
+         ${misc:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Description: System for Automated Geoscientific Analyses
+ SAGA GIS (System for Automated Geoscientific Analyses) is a free and
+ open source geographic information system used for editing and 
+ analysing spatial data. It includes a large number of modules for the
+ analysis of vector (point, line and polygon), table, grid and image 
+ data. Among others the package includes modules for geostatistics, 
+ image classification, projections, simulation of dynamic processes 
+ (hydrology, landscape development) and terrain analysis.
+ The functionality can be accessed through a GUI, the command line or 
+ by using the C++ API.
+
+Package: saga-common
+Architecture: all
+Depends: ${misc:Depends}
+Breaks: saga (<< 2.2.5+dfsg-1~)
+Replaces: saga (<< 2.2.5+dfsg-1~)
+Description: SAGA GIS architecture independent files
+ SAGA GIS (System for Automated Geoscientific Analyses) is a geographic
+ information system used for editing and analysing spatial data.
+ .
+ This package contains the architecture independent files for SAGA.
+
+Package: libsaga-dev
+Architecture: any
+Multi-Arch: same
+Section: libdevel
+Depends: libsaga (= ${binary:Version}),
+         ${misc:Depends}
+Suggests: saga (= ${binary:Version})
+Breaks: libsaga (<< 2.0.4+dfsg-3~)
+Replaces: libsaga (<< 2.0.4+dfsg-3~)
+Description: SAGA GIS development files
+ SAGA GIS (System for Automated Geoscientific Analyses) is a geographic
+ information system used for editing and analysing spatial data.
+ .
+ This package contains the header files for developing with SAGA.
+ Install this package if you wish to develop software that uses the SAGA API.
+
+Package: libsaga
+Architecture: any
+Multi-Arch: same
+Section: libs
+Depends: ${shlibs:Depends},
+         ${misc:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Provides: libsaga- at VERSION@
+Description: SAGA GIS shared libraries
+ SAGA GIS (System for Automated Geoscientific Analyses) is a geographic
+ information system used for editing and analysing spatial data.
+ .
+ This package contains the library files for developing with SAGA.
+
+Package: python-saga
+Architecture: any
+Section: python
+Depends: ${shlibs:Depends},
+         ${misc:Depends},
+         ${python:Depends},
+         libsaga (= ${binary:Version})
+Suggests: saga (= ${binary:Version})
+Pre-Depends: ${misc:Pre-Depends}
+Description: SAGA GIS Python bindings
+ SAGA GIS (System for Automated Geoscientific Analyses) is a geographic
+ information system used for editing and analysing spatial data.
+ .
+ This package contains the Python bindings to SAGA. 
+
diff --git a/debian/rules b/debian/rules
index 54a5e28..fae7036 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,8 +9,12 @@ VERSION          := $(shell grep '^AC_INIT' configure.ac | sed 's/AC_INIT(saga,
 UPSTREAM_URL     ?= $(shell uscan --dehs | sed -n 's/.*<upstream-url>\(.*\)<\/upstream-url>.*/\1/p')
 UPSTREAM_VERSION ?= $(shell uscan --dehs | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
 
-debian/% :: debian/%.in
-	sed -e 's/@VERSION@/$(VERSION)/' $< >$@
+TEMPLATES = $(wildcard debian/*.in)
+
+templates:
+	for TEMPLATE in $(TEMPLATES) ; do \
+		sed -e 's/@VERSION@/$(VERSION)/g' $$TEMPLATE > `echo $$TEMPLATE | sed 's/.in$$//'` ; \
+	done
 
 %:
 	dh $@ --with python2 --with autoreconf --parallel
@@ -18,7 +22,7 @@ debian/% :: debian/%.in
 override_dh_clean:
 	dh_clean src/saga_core/saga_api/saga_api.py saga_cmd.1 saga_gui.1 
 
-override_dh_auto_configure:
+override_dh_auto_configure: templates
 	dh_auto_configure -- \
 		--prefix=/usr \
 		--disable-libfire \

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/saga.git



More information about the Pkg-grass-devel mailing list