This utility has been deprecated in favor of rpm DynamicBuildRequires.
A small utility to request package installation within a mock build root when using the pm_request plugin.
Add inside your rpm package spec file:
BuildRequires: mock-install
[…]
%prep
[…] # Do something to compute yourbr1 … yourbrX
mock-install yourbr1 … yourbrX
The command is a no-op if it can not detect pm_request, making the resulting spec file safe to use outside mock (you just have to install the needed packages some other way).
mock-install is written in Go using only basic standard Go packages, install a Go compiler and build it with:
go build -o mock-install cmd/mock-install/mock-install.go