summaryrefslogtreecommitdiffstats
path: root/build-root/rpm/vpp.spec
diff options
context:
space:
mode:
authorEd Warnicke <eaw@cisco.com>2016-08-31 18:48:47 -0700
committerEd Warnicke <hagbard@gmail.com>2016-09-02 05:04:51 +0000
commit406ab9d3657d028c974069ce63807a88dfa62a4f (patch)
tree744284c89d5f54ad14768e6c9d46909323b434a8 /build-root/rpm/vpp.spec
parent87a0d77c62239d7cbee72f4959867f3c70588feb (diff)
VPP-374: getting jvppgen.py into rpm vpp-devel package
Change-Id: Ia2643f33170da92fde0f8228c8d8393f23e98d11 Signed-off-by: Ed Warnicke <eaw@cisco.com>
Diffstat (limited to 'build-root/rpm/vpp.spec')
-rw-r--r--build-root/rpm/vpp.spec11
1 files changed, 11 insertions, 0 deletions
diff --git a/build-root/rpm/vpp.spec b/build-root/rpm/vpp.spec
index 4a666e68aa4..90a3c3aafa0 100644
--- a/build-root/rpm/vpp.spec
+++ b/build-root/rpm/vpp.spec
@@ -83,6 +83,7 @@ do
( cd %{buildroot}%{_libdir} &&
ln -fs $file $(echo $file | sed -e 's/\(\.so\.[0-9]\+\).*/\1/') )
done
+
#
# devel
#
@@ -97,6 +98,13 @@ do
install -p -m 644 $dir/$file %{buildroot}%{_includedir}/$file
done
done
+
+mkdir -p -m755 %{buildroot}%{python2_sitelib}/jvppgen
+install -p -m755 ../../vpp-api/java/jvpp/gen/jvpp_gen.py %{buildroot}/usr/bin
+for i in $(ls ../../vpp-api/java/jvpp/gen/jvppgen/*.py); do
+ install -p -m666 ${i} %{buildroot}%{python2_sitelib}/jvppgen
+done;
+
# sample plugin
mkdir -p -m755 %{buildroot}/usr/share/doc/vpp/examples/sample-plugin/sample
for file in $(cd %{_vpp_install_dir}/../../sample-plugin && find -type f -print)
@@ -128,5 +136,8 @@ sysctl --system
%files devel
%defattr(-,bin,bin)
/usr/bin/vppapigen
+/usr/bin/jvpp_gen.py
%{_includedir}/*
+%{python2_sitelib}/jvppgen/*
/usr/share/doc/vpp/examples/sample-plugin
+