X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=debian%2Frules;h=25d77e08af124f160faa423aaabff2779c556e9e;hb=7b2fcb3f0e78e8abe77336f5687ce876e49efeb2;hp=b1af5222382681418ee2c307d68b62303add671d;hpb=0f23eda7c3f900cfeb7f1435c6410607dfbb8364;p=deb_dpdk.git diff --git a/debian/rules b/debian/rules index b1af5222..25d77e08 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/*