- Build a RPM from github with a private koji instance.
- scm_allowed configured correctly in /etc/kojid/kojid.conf
- host:repository[:use_common[:source_cmd]] e.g :allowed_scms=github.com:/alphacc/*:no:make,sources
- "common" git repository exits on git server base (???) Explanations from daemon.py : "scm_allowed is a space-separated list of host:repository[:use_common[:source_cmd]] tuples. Incorrectly-formatted tuples will be ignored. If use_common is not present, kojid will attempt to checkout a common/ directory from the repository. If use_common is set to no, off, false, or 0, it will not attempt to checkout a common/ directory.source_cmd is a shell command (args separated with commas instead of spaces) to run before building the srpm. It is generally used to retrieve source files from a remote location. If no source_cmd is specified, "make sources" is run by default."
koji build --scratch buildtag git://github.com/alphacc/github2koji.git?#HEAD
koji build --scratch buildtag git://github.com/alphacc/github2koji.git?#commit
- Add a "sources" destination to a Makefile or define a "source_cmd" in kojid.conf
- avoid 1 git repository for code and 1 for package generation.