Fix rpm packaging bit-rot 38/138/1
authorDave Barach <dave@barachs.net>
Mon, 25 Jan 2016 13:28:22 +0000 (08:28 -0500)
committerDave Barach <dave@barachs.net>
Mon, 25 Jan 2016 13:28:40 +0000 (08:28 -0500)
Change-Id: Ia710b0773984891ee18c6c0558cc09b984043e38
Signed-off-by: Dave Barach <dave@barachs.net>
build-root/rpm/vpp.spec
build-root/scripts/version

index fbadf07..85b1286 100644 (file)
@@ -113,6 +113,7 @@ sysctl --system
 %{_unitdir}/vpp.service
 /usr/bin/vpp*
 /usr/bin/svm*
+/usr/bin/elftool
 %config /etc/sysctl.d/80-vpp.conf
 %config /etc/vpp/startup.conf
 
index 9d236bc..bbafb9b 100755 (executable)
@@ -11,6 +11,7 @@ fi
 
 if [ "$1" = "rpm-release" ]; then
   [ -z "${ADD}" ] && echo release && exit
+  CMT=$(git describe --dirty --match 'v*'| cut -s -d- -f3,4 | sed 's/-/_/')
   echo ${ADD}~${CMT}
   exit
 fi