Buildbot no longer supports Python 2.7 on the Buildbot master.
184.108.40.206. MockBuildSRPM Step¶
MockBuildSRPM step builds a SourceRPM based on a spec file and optionally a source directory:
Mock (http://fedoraproject.org/wiki/Projects/Mock) creates chroots and builds packages in them.
It populates the changeroot with a basic system and the packages listed as build requirement.
The type of chroot to build is specified with the
To use mock your Buildbot user must be added to the
from buildbot.plugins import steps f.addStep(steps.MockBuildSRPM(root='default', spec='mypkg.spec'))
The step takes the following parameters
Use chroot configuration defined in
The directory where the logfiles and the SourceRPM are written to.
Build the SourceRPM from this spec file.
Path to the directory containing the sources, defaulting to
It is necessary to pass the
resultdir parameter to let the master
watch for (and display) changes to