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
A few fixes for caching, large builds and default arch
gitignore: Add nosetests' .coverage file

Signed-off-by: Euan Harris <euan.harris@citrix.com>
Tests: Add tests for simple methods in configure

Signed-off-by: Euan Harris <euan.harris@citrix.com>
Tests: Add mock tests for methods which spawn subprocesses

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

Start adding unit tests for configure
test_configure: Fix pylint whitespace warnings

Signed-off-by: Euan Harris <euan.harris@citrix.com>
test_configure: Remove unused imports

Signed-off-by: Euan Harris <euan.harris@citrix.com>
test_configure: Fix most remaining non-docstring Pylint warnings

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

Fix pylint warnings
test_configure: Remove trailing whitespace

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

test_configure: Remove trailing whitespace
planex: Import xenserver-core's Spec wrapper class

Signed-off-by: Euan Harris <euan.harris@citrix.com>
configure: Remove dependency on spectool

We can now use the Spec class's source_urls() to get the source URLs.
Spawning spectool to parse the Spec file is no longer required.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
test_planex_spec: Test all forms of source URL

Signed-off-by: Euan Harris <euan.harris@citrix.com>
spec: Report sources in the order they are defined in the spec file

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

Import specfile-handling class from xenserver-core
Merge pull request #29 from jonludlam/master

A few fixes for caching, large builds and default arch