The duplication of the version information both in the Makefile and in
debian/changelog is a potential error point, and an unneeded one.
Signed-off-by: Rhonda D'Vine <rhonda@proxmox.com>
PACKAGE=libpve-apiclient-perl
PACKAGE=libpve-apiclient-perl
+PKGVER=$(shell dpkg-parsechangelog -Sversion | cut -d- -f1)
+PKGREL=$(shell dpkg-parsechangelog -Sversion | cut -d- -f2)
BUILDSRC := $(PACKAGE)-$(PKGVER)
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb
BUILDSRC := $(PACKAGE)-$(PKGVER)
DEB=${PACKAGE}_${PKGVER}-${PKGREL}_all.deb