[otb] 12/20: Extract upstream version for symbols from changelog.
Sebastiaan Couwenberg
sebastic at moszumanska.debian.org
Sun May 1 13:57:27 UTC 2016
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository otb.
commit da61997a459a68ccb8741402ba38735709282e4c
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Sun May 1 02:11:45 2016 +0200
Extract upstream version for symbols from changelog.
---
debian/changelog | 1 +
debian/rules | 4 +++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 7d67905..64f7bca 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ otb (5.4.0~rc1+dfsg0-1) UNRELEASED; urgency=medium
* Drop patches, applied upstream.
* Bump Standards-Version to 3.9.8, no changes.
* Add library package for libOTBSampling.
+ * Extract upstream version for symbols from changelog.
-- Bas Couwenberg <sebastic at debian.org> Sun, 01 May 2016 00:18:10 +0200
diff --git a/debian/rules b/debian/rules
index c035875..ffefb07 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,6 +29,8 @@ OTB_VERSION_PATCH = $(shell sed -ne 's/set(OTB_VERSION_PATCH "\([0-9]*\)")/\1/p
OTB_VERSION_SONAME = $(OTB_VERSION_MAJOR).$(OTB_VERSION_MINOR)
OTB_VERSION_FULL = $(OTB_VERSION_MAJOR).$(OTB_VERSION_MINOR).$(OTB_VERSION_PATCH)
+UPSTREAM_VERSION = $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p' | sed -e 's/\+.*//; s/^[0-9]://')
+
CMAKE_FLAGS = \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE:STRING=Release \
@@ -78,7 +80,7 @@ override_dh_auto_configure: templates
dh_auto_configure -- $(CMAKE_FLAGS)
override_dh_makeshlibs:
- dh_makeshlibs -- -c0 -v$(OTB_VERSION_FULL)
+ dh_makeshlibs -- -c0 -v$(UPSTREAM_VERSION)
override_dh_shlibdeps:
dh_shlibdeps -l$(OTB_LIB_DIRS)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/otb.git
More information about the Pkg-grass-devel
mailing list