rpm: VPP-1674: exclude external headers from rpm 92/19792/1
authorBenoît Ganne <bganne@cisco.com>
Tue, 14 May 2019 09:11:16 +0000 (11:11 +0200)
committerBenoît Ganne <bganne@cisco.com>
Thu, 23 May 2019 14:31:27 +0000 (16:31 +0200)
External libraries headers such as DPDK, libibverb, quicly, etc. should
not be packaged in vpp-dev RPM.
Only package headers from vpp/ and vom/ subdirs.

Change-Id: Ief1454bd1261c8cf4dcd3b105e28f6852439e896
Signed-off-by: Benoît Ganne <bganne@cisco.com>
extras/rpm/vpp-suse.spec
extras/rpm/vpp.spec

index cbe6860..042e17a 100644 (file)
@@ -223,7 +223,7 @@ chmod -x %{buildroot}%{python_sitelib}/vpp_papi/*.txt
 #
 # devel
 #
-for dir in $(find %{_vpp_install_dir}/*/include/ -maxdepth 0 -type d -print | grep -v dpdk)
+for dir in %{_vpp_install_dir}/{vom,vpp}/include/
 do
        for subdir in $(cd ${dir} && find . -type d -print)
        do
index 6d2732c..8b8f10e 100644 (file)
@@ -228,7 +228,7 @@ install -m 0644 $MODULES \
 #
 # devel
 #
-for dir in $(find %{_mu_build_dir}/%{_vpp_install_dir}/*/include/ -maxdepth 0 -type d -print | grep -v dpdk)
+for dir in %{_mu_build_dir}/%{_vpp_install_dir}/{vom,vpp}/include/
 do
        for subdir in $(cd ${dir} && find . -type d -print)
        do