summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libast.spec4
1 files changed, 2 insertions, 2 deletions
diff --git a/libast.spec b/libast.spec
index 51b6bdf..2afb5a5 100644
--- a/libast.spec
+++ b/libast.spec
@@ -1,6 +1,6 @@
1%{expand:%%global gd_head %(git describe --tags HEAD)} 1%{expand:%%global gd_head %(git describe --tags HEAD)}
2%{expand:%%global gd_rel_delta %(git describe --abbrev=4 --always --tags --long --match 'v[[:digit:]][[:alnum:].]*[[:alnum:]]' --dirty=.1 | cut -d- -f 2- | tr '-' '.')} 2%{expand:%%global gd_rel_delta %(git describe --abbrev=4 --always --tags --long --match '[[:digit:]][[:alnum:].]*[[:alnum:]]' --dirty=.1 | cut -d- -f 2- | tr '-' '.')}
3%global rel_pre_post %(echo "%{gd_head}" | grep -Eq '^v%{version}' >&/dev/null && echo 1. || echo 0.) 3%global rel_pre_post %(echo "%{gd_head}" | grep -Eq '^%{version}' >&/dev/null && echo 1. || echo 0.)
4%{!?rel:%global rel %{rel_pre_post}%{gd_rel_delta}%{?dist}} 4%{!?rel:%global rel %{rel_pre_post}%{gd_rel_delta}%{?dist}}
5 5
6%global name libast 6%global name libast