]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
rtslib-fb: include rpm iteration based on git hash 645/head
authorJason Dillaman <dillaman@redhat.com>
Fri, 24 Feb 2017 18:13:52 +0000 (13:13 -0500)
committerJason Dillaman <dillaman@redhat.com>
Fri, 24 Feb 2017 18:13:52 +0000 (13:13 -0500)
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
rtslib-fb/build/build_rpm

index 54b74a4a01c457e6d62343c7c6bd1574e8849691..966a499b3bb5ade987edc0af2167c4c29c65b6fe 100644 (file)
@@ -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