Skip to content
This repository was archived by the owner on Mar 11, 2020. It is now read-only.

Latest commit

 

History

History
27 lines (18 loc) · 968 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 968 Bytes

This utility has been deprecated in favor of rpm DynamicBuildRequires.

mock-install

A small utility to request package installation within a mock build root when using the pm_request plugin.

Usage:

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).

Building

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