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. _______________________________________________ packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure