update regex used by rpm build to find lib files 05/14705/2
authorMatthew Smith <mgsmith@netgate.com>
Thu, 6 Sep 2018 15:59:49 +0000 (10:59 -0500)
committerDamjan Marion <dmarion@me.com>
Fri, 7 Sep 2018 19:39:54 +0000 (19:39 +0000)
The old expression was '*.so.*.*.*' to find shared library
files with 3 components in the version.

Building from master gives you files with 2 components in
the version (e.g. libvnet.so.18.10). So most libs were not
getting included in vpp-lib.

Change-Id: Ib89d2f5aeb2417eed1b6b851089b9d22f540a226
Signed-off-by: Matthew Smith <mgsmith@netgate.com>
extras/rpm/vpp.spec

index 555e944..fd708f2 100644 (file)
@@ -192,7 +192,7 @@ install -p -m 644 %{_mu_build_dir}/../src/vpp/conf/80-vpp.conf %{buildroot}/etc/
 mkdir -p -m755 %{buildroot}%{_libdir}
 mkdir -p -m755 %{buildroot}/etc/bash_completion.d
 mkdir -p -m755 %{buildroot}/usr/share/vpp
-for file in $(find %{_mu_build_dir}/%{_vpp_install_dir}/*/lib* -type f -name '*.so.*.*.*' -print )
+for file in $(find %{_mu_build_dir}/%{_vpp_install_dir}/*/lib* -type f -name '*.so.*.*' -print )
 do
        install -p -m 755 $file %{buildroot}%{_libdir}
 done