From 190282cb0afd696c0d593f2d19a776442020c182 Mon Sep 17 00:00:00 2001 From: Jon Loeliger Date: Wed, 31 Jan 2018 09:45:11 -0600 Subject: [PATCH] RPMS: Also install C.py, JSON.py for vppapipgen. When building plugins outside of the VPP tree, the vppapigen tool requires the use of the C.py / JSON.py code. To that end, install it in /usr/share/vpp as referenced. Change-Id: I457d58e7bde7140c7811fa0a93b4f44d1310784a Signed-off-by: Jon Loeliger --- extras/rpm/vpp.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/extras/rpm/vpp.spec b/extras/rpm/vpp.spec index d3bc517c5b4..1793966b0c3 100644 --- a/extras/rpm/vpp.spec +++ b/extras/rpm/vpp.spec @@ -270,6 +270,9 @@ for i in $(ls %{_mu_build_dir}/../src/vpp-api/java/jvpp/gen/jvppgen/*.py); do install -p -m666 ${i} %{buildroot}%{python2_sitelib}/jvppgen done; +install -p -m 644 %{_mu_build_dir}/../src/tools/vppapigen/C.py %{buildroot}/usr/share/vpp +install -p -m 644 %{_mu_build_dir}/../src/tools/vppapigen/JSON.py %{buildroot}/usr/share/vpp + # sample plugin mkdir -p -m755 %{buildroot}/usr/share/doc/vpp/examples/sample-plugin/sample #for file in $(cd %{_mu_build_dir}/%{_vpp_install_dir}/../../src/examples/sample-plugin && git ls-files .) -- 2.16.6