]> sjero.net Git - linphone/commitdiff
Add git commit step in rpm build
authorYann Diorcet <yann.diorcet@belledonne-communications.com>
Tue, 21 Feb 2012 13:55:02 +0000 (14:55 +0100)
committerYann Diorcet <yann.diorcet@belledonne-communications.com>
Tue, 21 Feb 2012 13:58:59 +0000 (14:58 +0100)
linphone.spec.in

index 171cb5e39313f22fad27d107621a49af9be32f0d..ff79974e66001f82aa539213fe3d668386be3d9d 100644 (file)
@@ -11,7 +11,7 @@
 
 Name:           linphone
 Version:        @VERSION@
-Release:        1%{?dist}
+Release:        %(git describe --tags | sed 's/.*-\([0-9]*\)-g.*/\1/' || echo '1')%{?dist}
 Summary:        Phone anywhere in the whole world by using the Internet
 
 Group:          Applications/Communications