Merge pull request #186 from euanh/build-improvements

Dependency and path tweaks
makedeb: Start modifications to build Debian packages

Includes changes to configure.sh to make make it use
pbuilder instead of mock.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makedeb: Extract additional information from spec file

The Python RPM library doesn't give us
all the information we need from a spec file, such as
the list of file contents, so we must read these directly
from the spec file.    Don't really want to write a full
spec file parser, but this may be necessary to deal with
conditionals in more complex files.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
ocaml-uri: Specify required OCaml version

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makemake: Generate a Makefile that builds debs instead of RPMS

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makedeb: Add package mappings and fix install file generation

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makedeb: Rewrite $RPM_BUILD_ROOT in recipes

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makedeb: fix Debian package versioning

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makedeb: Do nothing if package is already debianized

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makedeb: Handle the %exclude directive in file lists

We don't handle %if conditionals, though.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
pbuilder: Bind mount SRPMS for debugging
makedeb: Add package mappings, handling special cases for camlp4

Signed-off-by: Euan Harris <euan.harris@citrix.com>
pbuilder: Add blktap-dev (in universe) needed by libvhd-ocaml
configure: Use Ubuntu Raring in the pbuilder chroot

Signed-off-by: Euan Harris <euan.harris@citrix.com>
configure: Include the SRPMS repository in the buildroot

With this change, to build a package we just need to do:

   sudo pbuilder --login --configfile pbuilder/pbuilderrc-raring-amd64
   dpkg-source -x /local/scratch/euanh/debbuild/SRPMS/<pkg>
   apt-get build-dep <pkg>
   cd <pkg>-<version>
   dpkg-buildpackage
makedeb: fill in _libdir and _includedir

Signed-off-by: Euan Harris <euan.harris@citrix.com>
HACK: ocaml-bitstring: Don't copy examples - breaks Deb build

Signed-off-by: Euan Harris <euan.harris@citrix.com>
HACK: ocaml-syslog: Change release tag to beat distribution package on Debian

Signed-off-by: Euan Harris <euan.harris@citrix.com>
HACK: xenopsd: Add LD_LIBRARY_PATH needed on Debian

Signed-off-by: Euan Harris <euan.harris@citrix.com>
HACK: xenopsd: Use local checkout of repository

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