Rename xenserver to xenserver-core

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge branch 'master' into make-srpms
Merge pull request #93 from djs55/make-srpms

Rename xenserver to xenserver-core
Update xcp-idl, libvhd, ffs

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #94 from djs55/make-srpms

Update xcp-idl, libvhd, ffs
Update xcp-idl, sm-cli, libvirt storage and xapi

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
Merge pull request #95 from djs55/make-srpms

Update xcp-idl, sm-cli, libvirt storage and xapi
build: Use the correct architecture when building packages

Previously we tagged all packages with the build machine architecture,
which has always been x86_64.  Now we have some noarch packages, which
specify 'BuildArch: noarch' in their SPEC files.   With this change,
we use the architecture which RPM gives us instead of assuming the
architecture of the build machine.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
build: Update the repo instead of fully rebuilding it after adding a package

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

build: Use the correct architecture when building packages
build: Put RPMs in architecture-specific subdirectories

Until now we have been putting all the RPMs we build in
RPMS/x86_64.   Now that we also build noarch RPMs, we
should have a more appropriate directory structure.

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

build: Put RPMs in architecture-specific subdirectories
build: SRPM targets depend on sources and patches, as well spec files

Signed-off-by: Euan Harris <euan.harris@citrix.com>
build: Change xen-org to xapi-project in GitHub URLs

Signed-off-by: Euan Harris <euan.harris@citrix.com>
build: Fix GitHub download URLs to pin versions and reduce need for override

The file name at the end of a github.com/<user>/<repo>/archive URL is
arbitrary, so we shouldn't need the 'override' feature of fetch.py for
GitHub downloads - we can just ask for the filename we want.   However
fetching from github.com/<user>/<repo>/archive seems to return the most
recent version, not necessarily the version we want (the version in the
filename is ignored, because GitHub doesn't care about the filename).
Therefore we should request archive/<tag>/filename-1.2.3.tar.gz,
to make sure we always get the same version.

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

build: Improve source file downloading
build: Store tarball URLs in spec files

RPM only cares about the basename part of a Source: filename,
so we can store the original download URL there as long as
the downloaded file has the correct name.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
build: Remove unnecessary build directory name overrides

If the source tarball expands to produce a directory called
%{name}-%{version}, RPM will automatically find it.   -n is only needed
when the directory produced by the tarball has a name which doesn't fit
this pattern.

Signed-off-by: Euan Harris <euan.harris@citrix.com>
build: Move tarball downloading into the makefile

With source URLs now embedded in the spec files, we can generate
rules to download the tarballs needed to build each SRPM.

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

Remove sources.csv and fetch.py