Generate package version numbers from PHP supported versions and changelog version

This commit is contained in:
Ondřej Surý 2016-02-23 19:57:10 +01:00
parent 54a91d45e0
commit 858da758c7

7
debian/rules vendored
View file

@ -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