Merge pull request #39 from euanh/master

Add tests for SRPM preparation methods
configure: Refactor main function to make testing easier

Signed-off-by: Euan Harris <euan.harris@citrix.com>
configure: Extract build steps from main to aid testing

Signed-off-by: Euan Harris <euan.harris@citrix.com>