Using %forgeversion gives warnings

Hello,

I’m updating a package and I’m trying to use %forgeversion for the first time, but I don’t seem to be able to get it right. The relevant part of my spec file looks like this:

%global forgeurl https://gitlab.com/emacs-vm/vm/
%global version0 8.3.0
%global commit 36053c892fc0a29ed3eaeaa2ea15257c578d79ab
%forgemeta
Version: %forgeversion -p
Release: %autorelease

Clearly, the release definition is below the %forgeversion call. But I get this warning no less than three times when doing a mockbuild:

'Version: %forgeversion' must be invoked before setting Release.

Can anyone explain what I’m doing wrong?

Make sure your building environment provides this:
forge-srpm-macros - Fedora Packages

1 Like

You deleted your post, but you got me on the right track. I was using an old version (0.3.1) of forge-srpm-macros. Updating to 0.3.2 fixed the issue. Thanks!

1 Like