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
   apt-get update
   apt-get build-dep <pkg>
   apt-get source <pkg>
     - or -
   dpkg-source -x /path/to/debbuild/SRPMS/<pkg>
   cd <pkg>-<version>
   dpkg-buildpackage
makedeb: include ocaml-nox in default deps - needed by dh_ocaml

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makemake/makedeb: Map 'noarch' to 'all' for Debian

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makedeb: Handle packages with no source tarballs

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makedeb: Add mappings for kernel packages

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makedeb: Tweak mappings to account for packages whose -devel names are significantly different from their base names

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makedeb: Use /usr/lib instead of /usr/libexec

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