From d910094ade313b19a4483169f7902806035da9b4 Mon Sep 17 00:00:00 2001 From: Jason Dillaman Date: Fri, 24 Feb 2017 13:13:52 -0500 Subject: [PATCH] rtslib-fb: include rpm iteration based on git hash Signed-off-by: Jason Dillaman --- rtslib-fb/build/build_rpm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rtslib-fb/build/build_rpm b/rtslib-fb/build/build_rpm index 54b74a4a..966a499b 100644 --- a/rtslib-fb/build/build_rpm +++ b/rtslib-fb/build/build_rpm @@ -20,15 +20,14 @@ sudo gem install fpm # Get version RELEASE="$(lsb_release --short -r | cut -d '.' -f 1)" # system release VERSION="$(git describe --abbrev=0 --tags HEAD)" -REVISION="$(git rev-parse HEAD)" - +REVISION="$(git describe --tags HEAD | cut -d - -f 2- | sed 's/-/./')" ## Create the package # Make sure there are no other packages, first rm -f *.rpm # Create the package -fpm -s python -t rpm -n python-rtslib -v ${VERSION} -C ${DESTDIR} -d python-kmod -d python-six -d python2-pyudev setup.py +fpm -s python -t rpm -n python-rtslib -v ${VERSION} --iteration ${REVISION} -d python-kmod -d python-six -d python2-pyudev setup.py ## Upload the created RPMs to chacra -- 2.39.5