]> git.proxmox.com Git - mirror_kronosnet.git/commit
[build] Use git-version-gen during specfile build
authorJan Friesse <jfriesse@redhat.com>
Tue, 7 Jul 2020 12:47:34 +0000 (14:47 +0200)
committerFabio M. Di Nitto <fdinitto@redhat.com>
Thu, 9 Jul 2020 08:29:40 +0000 (10:29 +0200)
commit9d5a7ce339f39eebae93589e028ff93c2af4fca4
tree55daa42b8eb3f4d1a176c90d8de56757d3194c4e
parentb02bc941a1c49f941964dae81dd0eb74e3171ad9
[build] Use git-version-gen during specfile build

Instead of copying parts of git-version-gen for spec target use
git-version-gen directly and parse final version into components
(rpmver, alphatag, numcomm) and use them.

Main reason is to simplify code a bit (sed scripts are a bit repetitive
tho), reuse the code and also allow building of RPM from dist tarball
generated from non-tagged commit or dirty git (not very useful).

The code relies on fact, that hyphen is never used in tagged release
name.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Makefile.am