build: Move build command out of build_srpm

Signed-off-by: Euan Harris <euan.harris@citrix.com>
build: Factor out common caching code

Signed-off-by: Euan Harris <euan.harris@citrix.com>
Merge pull request #28 from euanh/planexsc

Refactor build_srpm