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 489766908ba425e252fbe7872c1dc45bd39164c7..a9933d9b3664aedc6182969e6151e332ba9039be 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