Signed-off-by: Jason Dillaman <dillaman@redhat.com>
## Get some basic information about the system and the repository
# Get version
RELEASE="$(lsb_release --short -r | cut -d '.' -f 1)" # system release
-VERSION="$(git describe --abbrev=0 --tags HEAD)"
-REVISION="$(git describe --tags HEAD | cut -d - -f 2- | sed 's/-/./')"
+VERSION="$(git describe --abbrev=0 --tags HEAD | cut -d - -f 1)"
+REVISION="$(git describe --tags HEAD | cut -d - -f 2- | sed 's/-/./' | sed 's/^rc/0./')"
## Create the package
# Make sure there are no other packages, first