Hacker News new | ask | show | jobs
by halfasleep 4622 days ago
Yeah, you can. The functionality is called "services". I'm not sure how auto-versioning would work with git though. I have packages building from SVN, and OBS updates the spec file automagically to set the version to the SVN revision.
1 comments

Git describe is what you want.

it will take the nearest tag name and use that as the version with the number of commits from that tag as the release value.