On Do, 01.08.19 05:31, Nico Kadel-Garcia (nkadel(a)gmail.com) wrote:
On Thu, Aug 1, 2019 at 4:16 AM Fabio Valentini
<decathorpe(a)gmail.com> wrote:
> So ... prerelease versions are usually tagged with an "-rc1" suffix
> (or similar), which is a valid value for git tags, but RPM doesn't
> allow versions to contain hyphens.
> In RPM versions, prereleases can be tagged with an "~rc1" suffix (or
> similar), which does exactly the right thing for version comparisons
> in RPM, but is not a valid value for a git tag.
It's also not following semver. Semver numbering, which is shown by
the numbering of semver releases at
https://semver.org/, would be
"-rc.1".
If you look at the actual spec wording, you'll see that "-rc1" is
fine too. Their example says "-rc.1", but if you read the rules then
"-rc1" is as OK as "-rc.1", the only difference being that the former
is *one* dot separated identifier, and the latter are *two* dot
separated identifiers, but both are OK according to the spec.
Lennart
--
Lennart Poettering, Berlin