X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=rhel%2Fopenvswitch-kmod-rhel6.spec.in;h=443ddc53fd9d4ffb1762964b33a7476bd81c1de1;hb=ee9bed06cd2794ced29190b6c6539993159d76f5;hp=3a1102d8642b77aa4cfe53fbee85ca2649f8b6d6;hpb=1821f032e0b621dad19750da2fc8f346c6007a7e;p=openvswitch diff --git a/rhel/openvswitch-kmod-rhel6.spec.in b/rhel/openvswitch-kmod-rhel6.spec.in index 3a1102d8..443ddc53 100644 --- a/rhel/openvswitch-kmod-rhel6.spec.in +++ b/rhel/openvswitch-kmod-rhel6.spec.in @@ -26,11 +26,15 @@ BuildRequires: %kernel_module_package_buildreqs # conflicts with the openvswitch-debuginfo package for OVS userspace). %undefine _enable_debug_packages -# Uncomment to build "debug" packages -#kernel_module_package default debug +# Use -D 'kversion 2.6.32-131.6.1.el6.x86_64' to build package +# for specified kernel version. +%{?kversion:%define kernel_version %kversion} -# Build only for standard kernel variant(s) -%kernel_module_package -n %{oname} default +# Use -D 'kflavors default debug kdump' to build packages for +# specified kernel variants. +%{!?kflavors:%define kflavors default} + +%kernel_module_package -n %{oname} %kflavors %description Open vSwitch Linux kernel module.