File gnupg-nobetasuffix.patch of Package gpg2

Index: gnupg-2.5.6/autogen.sh
===================================================================
--- gnupg-2.5.6.orig/autogen.sh
+++ gnupg-2.5.6/autogen.sh
@@ -259,7 +259,7 @@ if [ "$myhost" = "find-version" ]; then
     matchexcl="--exclude $package-*beta*"
 
     beta=no
-    if [ -e .git ]; then
+    if false; then
       ingit=yes
       tmp=$(git describe --match "${matchstr1}" $matchexcl --long 2>/dev/null)
       if [ -n "$tmp" ]; then
@@ -285,8 +285,8 @@ if [ "$myhost" = "find-version" ]; then
       rvd=$((0x$(echo ${rev} | dd bs=1 count=4 2>/dev/null)))
     else
       ingit=no
-      beta=yes
-      tmp="-unknown"
+      beta=no
+      tmp=""
       cid="0000000"
       rev="0000000"
       rvd="0"
openSUSE Build Service is sponsored by