Closed decathorpe closed 5 years ago
You need to set Version
before %gometa
, no?
Ok, that works, but having to specify "Version" even above "Name" doesn't seem right at all ... setting %tag
is enough for the macros to determine that a stable version is packaged, and this is just redundant.
The clean way to package a release is to set version before the macro call and not use a tag.
Now, due to utter confusion in upstream projects, sometimes releases are not tagged with the release number but with vnumber or something else. That means, that in some cases, you will need to use a tag anyway, and it will often generate a distprefix (not always, because I've added some heuristics). Because there's no way rpm-side to detect if a tag is an exact release match or some other state.
While I don't particularly like it, I agree that the current implementation probably is the best compromise for dealing with both good and messy upstream projects.
That should be fixed for the current codebase used by Fedora
Please close if it is so, otherwise reopen on https://pagure.io/go-rpm-macros
I want to update a package to the latest stable release, and to use the new macros. However, when I do this:
I get a NEVR of
golang-github-cznic-ql-1.2.0-1.20180813gitv1.2.0.fc29
, when I would expectgolang-github-cznic-ql-1.2.0-1.fc29
for a stable release like this.Am I missing something, or is this a bug? I expect the value of
%{?dist}
to be1.fcXX
when packaging a normal tagged release and not a snapshot.