Source: gadfly
Version: 1.0.0-15
Author: Guillem Jover <guillem@debian.org>
Status: fixed
Debbug: 623578
Description: Get correct binary version to append the epoch to

diff --git a/debian/rules b/debian/rules
index 77a37b6..0a9a4dc 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,7 @@ VER := $(shell /usr/bin/python -c 'import sys; print sys.version[:3]')
 
 DEFAULT_PYTHON = python$(VER)
 
-kjb_version=1:$${source:Version}
+kjb_version=1:$(shell dpkg-parsechangelog | sed -n 's/Version: //p')
 
 include /usr/share/python/python.mk
 
