util.rpmpack

Module Contents

class util.rpmpack.RpmPack
NAME = 'contest-pack'
VERSION = 1
RELEASE = 1
ARCH = 'noarch'
HEADER
NVR
FILE
post = []
files = []
requires = []
softreq = []
add_file(source, target)

Add a file path to the RPM, ‘source’ specifies a file path on the host, ‘target’ is the installed path in the RPM.

add_host_repos()
create_spec()
build()

Build the binary RPM and return a path to a temporary .rpm file.

build_as_repo()

Build the binary RPM and return a path to a temporary directory with YUM/DNF metadata (serving as a repository) containing the binary RPM.