X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=debian%2Frules;h=e9e66e390e71fe5d038d331fb789880ecaff5852;hb=9d37f61d540b2c036c72e97892c7ae99d406d4c6;hp=cff34ae80a4b8d66267c77f3d068ed398f530b61;hpb=c1ad91803a120db511183e2f9880eee997d55e8d;p=deb_dpdk.git diff --git a/debian/rules b/debian/rules index cff34ae8..e9e66e39 100755 --- a/debian/rules +++ b/debian/rules @@ -4,7 +4,7 @@ export DH_VERBOSE=1 export DH_OPTIONS=-v -VERSION := $(shell dpkg-parsechangelog | sed -nr '/^Version:/s/Version: (.*:)?(.*)-(.*)/\2/p') +VERSION := $(shell dpkg-parsechangelog --show-field Version | sed -nr 's/(.*:)?([^-])(-.*)/\2/p') DPDK_ABI := $(shell echo $(VERSION) | cut -d '.' -f1-2) # see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*