On Tue, Sep 11, 2018 at 11:44:59AM -0700, Martin Xu wrote:
> 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 <[email protected]>
> CC: Flavio Leitner <[email protected]>
> ---
> 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

I think those should be part of the -devel subpackage.

fbl

> +
>  %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
> 

-- 
Flavio
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to