@@ -278,11 +278,12 @@ Description: Open vSwitch VTEP utilities
VTEP-configured database and a VTEP emulator.
Package: python3-openvswitch
-Architecture: all
+Architecture: linux-any
Section: python
Depends:
${misc:Depends},
${python3:Depends},
+ ${shlibs:Depends},
Description: Python 3 bindings for Open vSwitch
Open vSwitch is a production quality, multilayer, software-based,
Ethernet virtual switch. It is designed to enable massive network
@@ -85,10 +85,15 @@ override_dh_auto_install:
execute_after_dh_install:
set -e && for pyvers in $(PYTHON3S); do \
- cd python && python$$pyvers setup.py install --install-layout=deb \
- --root $(CURDIR)/debian/python3-openvswitch; cd ..; \
+ cd python && \
+ enable_shared=no \
+ CFLAGS=-I$(CURDIR)/debian/tmp/usr/include \
+ LDFLAGS=$(CURDIR)/debian/tmp/usr/lib/libopenvswitch.a \
+ python$$pyvers setup.py install --install-layout=deb \
+ --root $(CURDIR)/debian/python3-openvswitch; \
+ cd ..; \
mkdir -p $(CURDIR)/debian/openvswitch-test/usr/lib/python$$pyvers/dist-packages/ovstest; \
- install -v -D -m 644 python/ovstest/*.py \
+ install -v -D python/ovstest/*.py \
$(CURDIR)/debian/openvswitch-test/usr/lib/python$$pyvers/dist-packages/ovstest; \
done
@@ -108,7 +113,7 @@ override_dh_strip:
dh_strip --dbgsym-migration='openvswitch-dbg (<< 2.17~)'
override_dh_python3:
- dh_python3 --shebang=/usr/bin/python3
+ DEB_HOST_ARCH=$(DEB_HOST_ARCH) dh_python3 --shebang=/usr/bin/python3
# Helper target for creating snapshots from upstream git
DATE=$(shell date +%Y%m%d)
Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com> --- debian/control | 3 ++- debian/rules | 13 +++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-)