[ovs-dev] [PATCH v2] rhel: Ship ovs shared libraries, fedora
Martin Xu
martinxu9.ovs at gmail.com
Tue Sep 11 18:44:59 UTC 2018
This patch extends 4886d4d2495b (debian, rhel: Ship ovs shared libraries
and header files) to fedora, by packaging the shared libraries in
openvswitch RPM. These files are always packaged in the RPM built with
rhel6 spec file.
VMware-BZ: #2036847
Signed-off-by: Martin Xu <martinxu9.ovs at gmail.com>
CC: Flavio Leitner <fbl at redhat.com>
---
v1->v2: change from conditional to always ship share libraries
rhel/openvswitch-fedora.spec.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/rhel/openvswitch-fedora.spec.in b/rhel/openvswitch-fedora.spec.in
index cb7ecca..91d6472 100644
--- a/rhel/openvswitch-fedora.spec.in
+++ b/rhel/openvswitch-fedora.spec.in
@@ -236,6 +236,7 @@ Docker network plugins for OVN.
--with-dpdk=$(dirname %{_datadir}/dpdk/*/.config) \
%endif
--enable-ssl \
+ --enable-shared \
--with-pkidir=%{_sharedstatedir}/openvswitch/pki \
%if 0%{?fedora} > 22 || %{with build_python3}
PYTHON3=%{__python3} \
@@ -336,6 +337,8 @@ rm -f $RPM_BUILD_ROOT%{_bindir}/ovs-parse-backtrace \
$RPM_BUILD_ROOT%{_sbindir}/ovs-vlan-bug-workaround \
$RPM_BUILD_ROOT%{_mandir}/man8/ovs-vlan-bug-workaround.8
+rm -rf $RPM_BUILD_ROOT/%{_libdir}/lib*.so
+
%check
%if %{with check}
if make check TESTSUITEFLAGS='%{_smp_mflags}' RECHECK=yes; then :;
@@ -592,6 +595,7 @@ fi
%{_bindir}/ovs-testcontroller
%{_bindir}/ovs-pki
%{_bindir}/vtep-ctl
+%{_libdir}/lib*.so.*
%{_sbindir}/ovs-bugtool
%{_sbindir}/ovs-vswitchd
%{_sbindir}/ovsdb-server
--
1.8.3.1
More information about the dev
mailing list