Fixed OSLO_PACKAGE_VERSION

This commit is contained in:
Thomas Goirand
2015-12-11 00:34:19 +01:00
parent cf5a8fd2d2
commit f5158b2034

2
debian/rules vendored
View File

@@ -5,7 +5,7 @@ PYTHONS:=$(shell pyversions -vr)
UPSTREAM_GIT = git://github.com/openstack/trove.git
include /usr/share/openstack-pkg-tools/pkgos.make
export OSLO_PACKAGE_VERSION=$(VERSION)
export OSLO_PACKAGE_VERSION=$(shell dpkg-parsechangelog | grep Version: | cut -d' ' -f2 | sed -e 's/^[[:digit:]]*://' -e 's/[-].*//' -e 's/~/.0/' | head -n 1)
%:
dh $@ --buildsystem=python_distutils --with python2,sphinxdoc,systemd