]> sjero.net Git - linphone/blobdiff - linphone.spec.in
Update RPM spec (use git version when it is possible)
[linphone] / linphone.spec.in
index ff79974e66001f82aa539213fe3d668386be3d9d..44e3f5f00f20e0af9d83b1ea667c590c32c79c89 100644 (file)
@@ -11,7 +11,7 @@
 
 Name:           linphone
 Version:        @VERSION@
-Release:        %(git describe --tags | sed 's/.*-\([0-9]*\)-g.*/\1/' || echo '1')%{?dist}
+Release:        %(git describe --tags --abbrev=40 | sed -rn 's/^.*-([0-9]+)-g[a-z0-9]{40}$/\1/p' || echo '1')%{?dist}
 Summary:        Phone anywhere in the whole world by using the Internet
 
 Group:          Applications/Communications