From 858da758c7d6d634fb6e43eed6e8a6f95b983857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Sur=C3=BD?= Date: Tue, 23 Feb 2016 19:57:10 +0100 Subject: [PATCH] Generate package version numbers from PHP supported versions and changelog version --- debian/rules | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/debian/rules b/debian/rules index 32dba2b..89ce1e7 100755 --- a/debian/rules +++ b/debian/rules @@ -7,12 +7,16 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +include /usr/share/dpkg/default.mk + PHP_DEFAULT_VERSION := 7.0 PHP_SUPPORTED_VERSIONS := 7.0 , := , PHP_DEV_PACKAGES := $(addprefix php,$(addsuffix -dev$(,),$(PHP_SUPPORTED_VERSIONS))), $(addprefix php,$(addsuffix -json$(,),$(PHP_SUPPORTED_VERSIONS))) +PHP_DEB_VERSION := 0:$(PHP_SUPPORTED_VERSIONS: =+)+$(DEB_VERSION) + SED=sed export DH_OPTIONS @@ -55,4 +59,7 @@ override_dh_fixperms-indep: dh_fixperms -i -pphp-common -X/var/lib/php/sessions dh_fixperms -i --remaining-packages +override_dh_gencontrol: + dh_gencontrol -- -v$(PHP_DEB_VERSION) + .PHONY: debian/control