diff --git a/debian/control b/debian/control index e35fd53..b22d7d4 100644 --- a/debian/control +++ b/debian/control @@ -5,6 +5,7 @@ Uploaders: Thomas Goirand , Build-Depends: debhelper (>= 9), dh-python, + openstack-pkg-tools, python-all, python-pbr (>= 1.6), python-setuptools, diff --git a/debian/rules b/debian/rules index b4b7c1c..8d8060e 100755 --- a/debian/rules +++ b/debian/rules @@ -4,7 +4,8 @@ PYTHON3S:=$(shell py3versions -vr) UPSTREAM_GIT = git://github.com/openstack/castellan.git --include /usr/share/openstack-pkg-tools/pkgos.make +include /usr/share/openstack-pkg-tools/pkgos.make +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,python3,sphinxdoc