Setting tag sliver-openvswitch-2.2.90-1
[sliver-openvswitch.git] / rhel / openvswitch.spec.in
index 3413c75..18bc10c 100644 (file)
@@ -19,6 +19,7 @@ Release: 1
 Source: openvswitch-%{version}.tar.gz
 Buildroot: /tmp/openvswitch-rpm
 Requires: openvswitch-kmod, logrotate, python
+BuildRequires: openssl-devel
 
 %description
 Open vSwitch provides standard network bridging functions and
@@ -62,7 +63,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