On Mon, May 03, 2021 at 11:48:19PM +0200, Dan Čermák wrote:
You can query the rpm database during the rpm build, e.g. via:
Requires: clang = %(rpm -q --qf '%%{version}' clang)
Calling rpm from within rpm used to be frowned upon, because it can lead
to really nasty issues if the "inner" rpm is a different than the outer
one.
I wonder why the rpmquery functionality can't be implemented in the
embedded Lua interpreter.