Make srpmutil compile with newer rpm library.

Define _RPM_4_4_COMPAT in order to get some old types and declaration.
Change epoch from char* to uint32_t.
Remove some unused variables.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Merge pull request #3 from freddy77/rpm_compat

Make srpmutil compile with newer rpm library.
Revert pull request #3 - it broke the build

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Make srpmutil compile with newer rpm library.

Define _RPM_4_4_COMPAT in order to get some old types and declaration.
Remove some unused variables.

Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Merge pull request #11 from freddy77/rpm_compat

Make srpmutil compile with newer rpm library.
Add rpm level caching

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Fixes for the RPM caching branch

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Add mock config files (currently unused by default)

Also fix a problem that occurs if the SOURCES directory
does not exist

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #12 from jonludlam/rpmcache2

Rpmcache2
Don't put repodata into the build system output directory

This appears to break the phase-3 build

Signed-off-by: Jon Ludlam <jonathan.ludlam@eu.citrix.com>
Merge pull request #13 from jonludlam/fix-phase-3

Don't put repodata into the build system output directory
Make installable using Python distutils
Use installed planex executables in build system

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Move paths into globally accessible module

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Build packages within current working directory

Build everything in ./planex-build-root within the current working directory.

This means that for the directory of specs, they can now built using the
installed python modules (planex-configure, planex-build)...

$ planex-configure .
$ planex-build

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>
Merge pull request #14 from simonjbeaumont/run-from-anywhere

Build from current working directory
Whitespace: configure.py

Signed-off-by: John Else <john.else@citrix.com>
Whitespace: build.py

Signed-off-by: John Else <john.else@citrix.com>
CP-6530: Add argument --config-dir to configure.py

Instead of using the first argument as the directory from which to fetch
specfiles, configure.py now looks for an argument of the form
"--config-dir=<config-dir>".

Signed-off-by: John Else <john.else@citrix.com>
CP-6530: Add argument --use-distfiles to configure.py

We can now configure whether to use the local distfiles cache.

Signed-off-by: John Else <john.else@citrix.com>