debian: set VERSION to fix version in .pc files

The pkgconf file contains an unknown version which result in failure
of other packages which depend on a minimum version (osmo-iuh)

Change-Id: I65401786cf9eb63d3445f548dc13c1d3f9f4c1ea
This commit is contained in:
Alexander Couzens 2018-05-04 01:42:31 +02:00
parent 7dd8376c8f
commit 3dc50c737d
1 changed files with 8 additions and 1 deletions

9
debian/rules vendored
View File

@ -32,7 +32,10 @@
# Vendor-related variables such as DEB_VENDOR:
#include /usr/share/dpkg/vendor.mk
# Package-related variables such as DEB_DISTRIBUTION
#include /usr/share/dpkg/pkg-info.mk
include /usr/share/dpkg/pkg-info.mk
VERSION := $(shell echo '$(DEB_VERSION)' | sed -e 's/[+-].*//' -e 's/~//g')
#
# You may alternatively set them susing a simple script such as:
# DEB_VENDOR ?= $(shell dpkg-vendor --query Vendor)
@ -44,6 +47,10 @@
%:
dh $@ --with autoreconf
override_dh_autoreconf:
echo $(VERSION) > .tarball-version
dh_autoreconf
# debmake generated override targets
# Set options for ./configure
#CONFIGURE_FLAGS = <options for ./configure>