Defines OSLO_PACKAGE_VERSION

This commit is contained in:
Thomas Goirand 2016-01-21 16:46:23 +00:00
parent 0f62cdd25d
commit dfd2b771b8
2 changed files with 3 additions and 1 deletions

1
debian/control vendored
View File

@ -5,6 +5,7 @@ Maintainer: PKG OpenStack <openstack-devel@lists.alioth.debian.org>
Uploaders: Thomas Goirand <zigo@debian.org>,
Build-Depends: debhelper (>= 9),
dh-python,
openstack-pkg-tools,
python-all,
python-pbr,
python-setuptools,

3
debian/rules vendored
View File

@ -4,7 +4,8 @@ PYTHONS:=$(shell pyversions -vr)
PYTHON3S:=$(shell py3versions -vr)
UPSTREAM_GIT = git://github.com/openstack/python-gnocchiclient.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