monitoring/vm-topology/debian/deb_folder/rules
Leonardo Fagundes Luz Serrano 6fe52945b0 Add debian package for vm-topology
Add debian packaging infrastructure for vm-topology
to build a debian package.

Test Plan: build pkg; build image; compare with RPM

PASS pkg builds
PASS same contents and permissions as RPM
PASS image builds, however test was run using the
upstream version of libvirt0 instead of
the stx version libvirt.

Depends-On:
https://review.opendev.org/c/starlingx/integ/+/824928

Story: 2009101
Task: 43961

Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
Change-Id: I64d731ad56809d762c196720dab142c341438981
2022-01-24 18:51:20 +00:00

19 lines
389 B
Makefile
Executable File

#!/usr/bin/make -f
export PYBUILD_NAME=vm-topology
%:
dh $@ --with python3 --buildsystem=pybuild
override_dh_install:
python3 setup.py install -f --install-layout=deb --root=$(CURDIR)/debian/tmp
python3 setup.py bdist_wheel \
--universal \
-d $(CURDIR)/debian/vm-topology-wheels/usr/share/python3-wheels
dh_install
override_dh_python3:
dh_python3 --shebang=/usr/bin/python3