mock-scm - a simple utility to integrate Mock with SCMs

Marko Myllynen myllynen at
Thu Sep 2 10:19:01 UTC 2010

Hi all,

some people build their local RPMs with Mock because a Koji instance
might be a bit overkill in smaller environments. Keeping spec files and
possible patches under version control is always a good idea but
unfortunately Mock can't just be pointed to SCM repositories.

Well, until now: mock-scm fetches spec and other files from SCM and
source packages either from SCM or a local directory, then it constructs
the source RPM on the fly and feeds it to Mock and finally collects the
results. So nothing extraordinary but might come in handy for those who
prefer keeping things under version control but don't want to set up a
Koji instance for building occasionally a handful of RPMs.

mock-scm currently supports CVS and Git but adding, e.g., SVN should be
just few lines. It might need some tweaking to match different SCM/spec
conventions but that is left as an exercise for the reader. mock-scm can
be download from


Marko Myllynen

More information about the devel mailing list