xenserver: Allow RPM to install only with correct Xen kernel version.
authorBen Pfaff <blp@nicira.com>
Fri, 5 Jun 2009 19:24:58 +0000 (12:24 -0700)
committerBen Pfaff <blp@nicira.com>
Fri, 5 Jun 2009 19:28:16 +0000 (12:28 -0700)
Bug #638.

xenserver/vswitch-xen.spec

index 4897669..a9933d9 100644 (file)
@@ -25,6 +25,7 @@ License: GPL3
 Release: 1
 Source: openvswitch-%{vswitch_version}.tar.gz
 Buildroot: /tmp/vswitch-xen-rpm
+Requires: kernel-xen = %(echo '%{xen_version}' | sed 's/xen$//')
 
 %description
 The vswitch provides standard network bridging functions augmented with