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?