From 2740f812742e0fe044cbe3f383e6fd13c9cb74d5 Mon Sep 17 00:00:00 2001
From: Simon Piette <simon.piette@savoirfairelinux.com>
Date: Wed, 16 Jul 2014 13:30:12 -0400
Subject: [PATCH] rpm: remove -rc* in Version

Refs #49953

Change-Id: I38e245d7b25df580c97dd9c43540c2526a5d5ee9
---
 tools/build-system/build_tarball.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/build-system/build_tarball.sh b/tools/build-system/build_tarball.sh
index dacdb9b0a6..977698865f 100755
--- a/tools/build-system/build_tarball.sh
+++ b/tools/build-system/build_tarball.sh
@@ -34,7 +34,8 @@ rm -rf $BUILDDIR
 rm -f *.tar.gz
 
 rm -rf lang/
-sed /^Version/s/[0-9].*/$SOFTWARE_VERSION/ tools/build-system/rpm/sflphone.spec > sflphone.spec
+# No dash in Version:
+sed /^Version/s/[0-9].*/${SOFTWARE_VERSION%%-*}/ tools/build-system/rpm/sflphone.spec > sflphone.spec
 rm -rf tools/
 #rm -rf kde/
 
-- 
GitLab