#11 BuildRequires for gpgv2
Opened 7 years ago by dwmw2. Modified 7 years ago

It looks like the packager still has to manually add the BR for gpgv2. Is it possible to make that happen automatically if the %gpg_verify macro is invoked? Failing that, perhaps it should be more clearly documented?


It is, sadly, not possible for the presence of a macro in a spec section to add a build dependency to the preamble, since the list of build dependencies isn't exposed to lua and the spec parsing proceeds linearly through the spec. Note how the official %autosetup macro can't add the dependency on the SCM necessary for -S to work, for example. At best I could add a separate macro which expands to BuildRequires: gpgv2.

The plan was simply to have this in the (yet to be written) packaging guidelines,
I'm not sure of any other good place for this kind of thing, since there will just be a macro file sitting around which isn't particularly discoverable. I can easily add some comments there, though. I'm not sure this repo will live on once the macro file is in place.

Login to comment on this ticket.

Metadata