summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2017-03-17 09:54:51 +0100
committerEd Warnicke <hagbard@gmail.com>2017-03-17 14:24:21 +0000
commitc60f557590f79b8817382bdd982825b66c4e0a73 (patch)
treed8c709fe3d1d144891e3b60a320f32c18795a122
parent6aa75af2411a328caa23077778365ea8ba97dcc0 (diff)
Python API: Fix RPM packaging (again).
Change-Id: I5c510cde1227a131ddda58d090cd5dbf112ce1fb Signed-off-by: Ole Troan <ot@cisco.com>
-rw-r--r--build-root/rpm/vpp.spec10
1 files changed, 6 insertions, 4 deletions
diff --git a/build-root/rpm/vpp.spec b/build-root/rpm/vpp.spec
index 7fa97888f54..2cfe67c5dcb 100644
--- a/build-root/rpm/vpp.spec
+++ b/build-root/rpm/vpp.spec
@@ -89,7 +89,7 @@ This package contains the java bindings for the vpp api
%package api-python
Summary: VPP api python bindings
Group: Development/Libraries
-Requires: vpp = %{_version}-%{_release}, vpp-lib = %{_version}-%{_release}, python-setuptools
+Requires: vpp = %{_version}-%{_release}, vpp-lib = %{_version}-%{_release}, python-setuptools libffi-devel
%description api-python
This package contains the python bindings for the vpp api
@@ -101,6 +101,9 @@ This package contains the python bindings for the vpp api
# Add the vpp group
groupadd -f -r vpp
+%build
+cd %{_mu_build_dir}/../src/vpp-api/python && %py2_build
+
%install
#
# binaries
@@ -162,8 +165,7 @@ do
done
# Python bindings
-cd %{_mu_build_dir}/../src/vpp-api/python
-%py2_install
+cd %{_mu_build_dir}/../src/vpp-api/python && %py2_install
#
# devel
@@ -279,7 +281,7 @@ fi
%files api-python
%defattr(644,root,root)
-%{python2_sitelib}/*
+%{python2_sitelib}/vpp_papi*
%files devel
%defattr(-,bin,bin)