specdep: Only generate rules for the first binary RPM defined by each spec file

We only generate a rule for the first binary RPM produced by the
specfile.  If we generate multiple rules (one for the base package,
one for -devel and so on), make will interpret these as completely
separate targets which must be built separately.   At best, this means
that the same package will be built more than once; at worst, in a
concurrent build, there is a risk that the targets might not be rebuilt
correctly.

Make does understand the concept of multiple targets being built by
a single rule invocation, but only for pattern rules (e.g. %.h %.c: %.y).
It is tricky to generate correct pattern rules for RPM builds.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
makedeb: Work in a temporary directory

makedeb currently works in the %_builddir directory, and expects to be
able to clear it out completely when it is finished.   This makes it
difficult to prevent concurrent instances of makedeb from interfering
with each other.  For simplicity, change makedeb to build each package
in its own temporary directory.

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

Fix tool problems which prevent concurrent builds
ocaml-rrd-transport: Fix cmdliner dependency

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

ocaml-rrd-transport: Fix cmdliner dependency
ocaml-nbd: Tidy up spec file

Signed-off-by: Euan Harris <euan.harris@citrix.com>
cmdliner: Rename to ocaml-cmdliner

Signed-off-by: Euan Harris <euan.harris@citrix.com>
SPECS: Great dependency spring-cleaning

In general, an OCaml package's BuildRequires are based on the dependencies
declared in its _oasis file (or similar), and its -devel package's
Requires are based on the dependencies declared in its META file.

* Remove unneeded dependencies
* Add runtime dependencies for -devel packages

Signed-off-by: Euan Harris <euan.harris@citrix.com>
Ignore backup files
Merge pull request #408 from BobBall/backup_files

Ignore backup files
Fix changelog for debian builds
Merge pull request #410 from BobBall/fix-daves-broken-change

Fix changelog for debian builds
Update xenserver-install-wizard to latest release
mappkgname: Fix mapping for libffi

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

mappkgname: Fix mapping for libffi
Merge pull request #411 from BobBall/update-xs-i-w

Update xenserver-install-wizard to latest release
ocaml-rrd-transport: Fix version number in changelog

Signed-off-by: Euan Harris <euan.harris@citrix.com>
xcp-rrdd: Fix version number in changelog

Signed-off-by: Euan Harris <euan.harris@citrix.com>
xcp-rrdd: Add missing build dependency on ocaml-xen-lowlevel-libs-devel

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

Fix (mostly Debian) build breakage