rhel7: Fix rpm install failure.
authorAlex Wang <alexw@nicira.com>
Thu, 9 Oct 2014 07:02:07 +0000 (00:02 -0700)
committerAlex Wang <alexw@nicira.com>
Thu, 9 Oct 2014 16:20:00 +0000 (09:20 -0700)
commitba119c1371f2579dc412855a46b533e442210f4d
treef18d4b141c7f967d3f0af5a9b7473e96a8782f72
parentd8cecf5803a927d050b4e7ec752def024c601778
rhel7: Fix rpm install failure.

When trying to install the kernel module rpm built for RHEL7,
the install failed with following conflicts:

  # rpm -i kmod-openvswitch-2.3.1-1.el7.x86_64.rpm
    file /lib/modules/3.10.0-123.8.1.el7.x86_64/modules.devname
    from install of kmod-openvswitch-2.3.1-1.el7.x86_64 conflicts
    with file from package kernel-3.10.0-123.8.1.el7.x86_64

    file /lib/modules/3.10.0-123.8.1.el7.x86_64/modules.softdep
    from install of kmod-openvswitch-2.3.1-1.el7.x86_64 conflicts
    with file from package kernel-3.10.0-123.8.1.el7.x86_64

Similar issue has already been reported and solved here:

    https://bugzilla.redhat.com/show_bug.cgi?id=1003267

This commit applies the solution in the link to ovs.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Gurucharan Shetty <gshetty@nicira.com>
rhel/openvswitch-kmod-rhel6.spec.in