30 Oct
2025
30 Oct
'25
3:51 p.m.
I will create version file with last tag before running configure. Seems like that is all that is needed. this
git tag -l '[0-9]\.[0-9]*' --sort=v:refname | tail -1
of course works IF your source is in a git repo
fwiw, in the git-less tarball rpm-build case, i use
curl -s 'https://api.github.com/repos/dovecot/core/tags' | jq -r '.[].name' | grep -E '^[0-9]+\.[0-9]+' | sort -V | tail -n1
a spec.
kludgy! but WORKSFORME