ofpbuf: Fix trivial spelling typo.
[cascardo/ovs.git] / rhel / openvswitch-kmod-rhel6.spec.in
index 6dbb377..5d46838 100644 (file)
@@ -61,6 +61,9 @@ export INSTALL_MOD_DIR=extra/%{oname}
 for flavor in %flavors_to_build ; do
          make -C %{kernel_source $flavor} modules_install \
                  M="`pwd`"/_$flavor/datapath/linux
+
+         # Cleanup unnecessary kernel-generated module dependency files.
+         find $INSTALL_MOD_PATH/lib/modules -iname 'modules.*' -exec rm {} \;
 done
 install -d %{buildroot}%{_sysconfdir}/depmod.d/
 install -m 644 %{oname}.conf %{buildroot}%{_sysconfdir}/depmod.d/