rhel: Fix build failures because of libraries in /usr/lib.
[sliver-openvswitch.git] / rhel / openvswitch.spec.in
index 3413c75..e3cb72a 100644 (file)
@@ -62,7 +62,7 @@ rm \
     $RPM_BUILD_ROOT/usr/share/man/man8/ovs-l3ping.8 \
     $RPM_BUILD_ROOT/usr/sbin/ovs-vlan-bug-workaround \
     $RPM_BUILD_ROOT/usr/share/man/man8/ovs-vlan-bug-workaround.8
-rm -rf $RPM_BUILD_ROOT/%{_lib}
+(cd "$RPM_BUILD_ROOT" && rm -rf usr/lib)
 
 install -d -m 755 $RPM_BUILD_ROOT/var/lib/openvswitch