[pkg-boost-commits] r14742 - boost/trunk/debian

Steven Michael Robbins smr at alioth.debian.org
Sun Feb 10 23:02:11 UTC 2013


Author: smr
Date: 2013-02-10 23:02:11 +0000 (Sun, 10 Feb 2013)
New Revision: 14742

Modified:
   boost/trunk/debian/rules
Log:
Extract version strings from changelog.

Modified: boost/trunk/debian/rules
===================================================================
--- boost/trunk/debian/rules	2013-02-10 23:01:35 UTC (rev 14741)
+++ boost/trunk/debian/rules	2013-02-10 23:02:11 UTC (rev 14742)
@@ -9,10 +9,14 @@
 
 DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
-PKGVERSION = 1.53
-SOVERSION = 1.53.0
-SHLIBS_VERSION = (>= 1.53.0-1)
+version_full := $(shell dpkg-parsechangelog | grep Version | cut -d' ' -f2)
+version_upstream := $(shell echo $(version_full) | cut -d'-' -f1)
+version_major = $(shell echo $(version_upstream) | cut -d'.' -f1,2)
 
+PKGVERSION = $(version_major)
+SOVERSION = $(version_upstream)
+SHLIBS_VERSION = (>= $(version_full))
+
 pyversions = $(shell pyversions -rv) $(shell py3versions -rv)
 
 # Boost libraries for which we want separate packages




More information about the pkg-boost-commits mailing list