[gdal-grass] 04/07: Move control file generation to separate templates target.
Bas Couwenberg
sebastic at debian.org
Tue Jan 17 15:01:35 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch ubuntu/xenial
in repository gdal-grass.
commit d01e0704b5f82f904c2c0847df96abe925ab4f41
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Mon Jul 4 21:56:21 2016 +0200
Move control file generation to separate templates target.
---
debian/changelog | 1 +
debian/lintian-overrides | 4 ++++
debian/lintian-overrides.in | 1 +
debian/rules | 22 ++++++++++++----------
4 files changed, 18 insertions(+), 10 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index b5445cd..8119267 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ libgdal-grass (2.1.0-1~xenial2) UNRELEASED; urgency=medium
* Bump minimum GRASS version to 7.2.0.
* Update rpath patch for GRASS 7.2.
* Add patch to link GRASS 7.2 libraries.
+ * Move control file generation to separate templates target.
-- Bas Couwenberg <sebastic at debian.org> Wed, 28 Dec 2016 19:45:29 +0100
diff --git a/debian/lintian-overrides b/debian/lintian-overrides
new file mode 100644
index 0000000..b2ca9a8
--- /dev/null
+++ b/debian/lintian-overrides
@@ -0,0 +1,4 @@
+# The run path has been added to get GRASS internal library
+libgdal20-2.1.0-grass: binary-or-shlib-defines-rpath usr/lib/gdalplugins/*/gdal_GRASS.so /usr/lib/grass*/lib
+libgdal20-2.1.0-grass: binary-or-shlib-defines-rpath usr/lib/gdalplugins/*/ogr_GRASS.so /usr/lib/grass*/lib
+
diff --git a/debian/lintian-overrides.in b/debian/lintian-overrides.in
index 0ca1fd1..ded1553 100644
--- a/debian/lintian-overrides.in
+++ b/debian/lintian-overrides.in
@@ -1,3 +1,4 @@
# The run path has been added to get GRASS internal library
@PKGNAME@: binary-or-shlib-defines-rpath usr/lib/gdalplugins/*/gdal_GRASS.so /usr/lib/grass*/lib
@PKGNAME@: binary-or-shlib-defines-rpath usr/lib/gdalplugins/*/ogr_GRASS.so /usr/lib/grass*/lib
+
diff --git a/debian/rules b/debian/rules
index ed5e4be..86577b1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,17 @@ GRASS=grass$(subst .,,$(shell pkg-config --modversion grass|cut -d. -f1,2))
GRASS_ABI=grass$(subst .,,$(shell pkg-config --modversion grass|cut -d. -f1,2,3|sed -e 's/RC/-/'))
GDAL=$(shell cat VERSION|cut -d. -f1,2)
+TEMPLATES=$(wildcard debian/*.in)
+
+templates:
+ for TEMPLATE in $(TEMPLATES) ; do \
+ sed -e 's/@GDAL@/$(GDAL)/g' \
+ -e 's/@GRASS@/$(GRASS)/g' \
+ -e 's/@GRASS_ABI@/$(GRASS_ABI)/g' \
+ -e 's/@PKGNAME@/$(PKGNAME)/g' \
+ $$TEMPLATE > `echo $$TEMPLATE | sed 's/.in$$//'` ; \
+ done
+
%:
dh $@ --with autoreconf --parallel
@@ -25,22 +36,13 @@ override_dh_autoreconf_clean:
mv configure.pre-autoreconf configure ; \
fi
-override_dh_auto_configure:
+override_dh_auto_configure: templates
# Abort if source and gdal have not the same versions.
if [ `gdal-config --version` != `cat VERSION` ]; then \
echo "GDAL version and GDAL GRASS plugin version are not aligned. Please, upload a proper plugin source version."; \
exit 1; \
fi
- sed -e 's/@GRASS_ABI@/$(GRASS_ABI)/' debian/control.in > debian/control
-
- sed -e 's/@GDAL@/$(GDAL)/' -e 's/@GRASS@/$(GRASS)/' -e 's/@PKGNAME@/$(PKGNAME)/' debian/lintian-overrides.in > debian/$(PKGNAME).lintian-overrides
-
- @echo "Depending on $(GRASS)"
- if [ `grep "$(GRASS_ABI)" debian/control|wc -l` -eq 0 ]; then \
- sed -e 's/@GRASS_ABI@/$(GRASS_ABI)/' debian/control.in > debian/control; \
- fi
-
dh_auto_configure -- \
--prefix=/usr \
--with-autoload=/usr/lib/gdalplugins/$(GDAL) \
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/gdal-grass.git
More information about the Pkg-grass-devel
mailing list