Use package version since git info won't be available.
diff --git a/debian/changelog b/debian/changelog
index 661ff9e..faca1e6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libosmo-abis (0.1.3+git3-1) precise; urgency=low
+
+  * Fix version issue.
+
+ -- Eric Butler <eric@codebutler.com>  Tue, 14 Aug 2012 20:50:50 -0700
+
 libosmo-abis (0.1.3+git3) precise; urgency=low
 
   Created new Ubuntu package.
diff --git a/debian/rules b/debian/rules
index 689c523..26d2880 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,8 +1,16 @@
 #!/usr/bin/make -f
 
+DEBIAN  := $(shell dpkg-parsechangelog | grep ^Version: | cut -d' ' -f2)
+DEBVERS := $(shell echo '$(DEBIAN)' | cut -d- -f1)
+VERSION := $(shell echo '$(DEBVERS)' | sed -e 's/[+-].*//' -e 's/~//g')
+
 CFLAGS = -Wall -g
 
 export DH_VERBOSE=1
 
 %:
 	dh --with autoreconf $@ --fail-missing
+
+override_dh_autoreconf:
+	echo $(VERSION) > .tarball-version
+	dh_autoreconf