xenserver: Fix build spec for XenServer 6.5.
authorEdwin Chiu <echiu@vmware.com>
Tue, 10 Mar 2015 18:36:43 +0000 (11:36 -0700)
committerAlex Wang <alexw@nicira.com>
Tue, 10 Mar 2015 22:40:54 +0000 (15:40 -0700)
commit95c6aa035e66f3c4c7f2cdf9323cfd99d30d5faa
treead8fb43330e3854265035c28312fde59d8604bb3
parentb953042214201e2693a485a8ba8b19f69e5bdf34
xenserver: Fix build spec for XenServer 6.5.

The latest XenServer 6.5 uses a new way for kernel version naming.
Therein, the kernel flavor could not be found anymore.  Also, the
directory name in 'lib/modules/' becomes a shortened version of
kernel version. e.g.:

[root@localhost ~]# ls /lib/modules/
3.10.0+2

As a workaround, this commit modifies the spec file to make
%{kernel_flavor} optional and %{xen_version} definable by users.
In the long run, I'd like to spend time refining the spec file.

Signed-off-by: Edwin Chiu <echiu@vmware.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
AUTHORS
INSTALL.XenServer
xenserver/openvswitch-xen.spec.in