xenserver: Use kernel uname version for XenServer 6.5
authorEdwin Chiu <echiu@vmware.com>
Tue, 28 Apr 2015 22:15:54 +0000 (15:15 -0700)
committerAlex Wang <alexw@nicira.com>
Sat, 2 May 2015 17:57:00 +0000 (10:57 -0700)
commit2c3f6a7431f2f5afa5db97eaaa0d5ea91c0f18eb
tree006f9a30f8e331f0ba3f0b6310400521e05607df
parent9b928914480271f91a64d78e0e8d812060f3d455
xenserver: Use kernel uname version for XenServer 6.5

In XenServer 6.5, multiple kernel packages with different
rpm versions can have the same uname.  So, it is not
necessary for openvswitch kernel module to require the
exact rpm version.  Instead, the kernel module package
should check the uname version.

This commit will add a new variable %{kernel_uname} to
specify whether to use kernel uname version or kernel
rpm version as requirement.

When %{kernel_name} is used, openvswitch-module will have
"Requires: kernel-uname-r = <uname version>" set instead of
"Requires: kernel = <version>".

Reported-by: Gosen Chien <astgosen@ccu.edu.tw>
Signed-off-by: Edwin Chiu <echiu@vmware.com>
Signed-off-by: Alex Wang <alexw@nicira.com>
INSTALL.XenServer.md
xenserver/openvswitch-xen.spec.in