diff --git a/virt/libvirt-python/debian/deb_patches/0001-Build-python-wheel-version-of-this-package.patch b/virt/libvirt-python/debian/deb_patches/0001-Build-python-wheel-version-of-this-package.patch new file mode 100644 index 0000000..80ee9dc --- /dev/null +++ b/virt/libvirt-python/debian/deb_patches/0001-Build-python-wheel-version-of-this-package.patch @@ -0,0 +1,79 @@ +From 370f15d95a91e8f85be2ff6ec64c3ba974ae6aed Mon Sep 17 00:00:00 2001 +From: Leonardo Fagundes Luz Serrano + +Date: Wed, 5 Jan 2022 11:51:06 -0300 +Subject: [PATCH] Build python wheel version of this package + +Adding instructions to build libvirt-python-wheel. + +Signed-off-by: Leonardo Fagundes Luz Serrano +--- + debian/control | 9 +++++++++ + debian/python3-libvirt.install | 1 + + debian/rules | 14 ++++++++++++++ + 3 files changed, 24 insertions(+) + create mode 100644 debian/python3-libvirt.install + +diff --git a/debian/control b/debian/control +index 8cd4ea7..e7ec45f 100644 +--- a/debian/control ++++ b/debian/control +@@ -6,6 +6,8 @@ Build-Depends: debhelper-compat (=13), + dh-python, + pkg-config, + python3-all-dev, ++ python3-setuptools, ++ python3-wheel, + libvirt-dev (>= 4.5.0~), + Standards-Version: 4.4.0 + Vcs-Git: https://salsa.debian.org/libvirt-team/libvirt-python.git +@@ -24,3 +26,10 @@ Description: libvirt Python 3 bindings + supports QEMU, KVM, XEN, OpenVZ, LXC, and VirtualBox. + . + This package contains the Python 3 bindings for the libvirt library ++ ++Package: libvirt-python-wheel ++Architecture: any ++Depends: ${misc:Depends} ++Description: Contains python wheels for python3-libvirt ++ This is the support package for the PEP 427 wheel version of the package, ++ required for using pip inside a virtual environment. +diff --git a/debian/python3-libvirt.install b/debian/python3-libvirt.install +new file mode 100644 +index 0000000..3272cd6 +--- /dev/null ++++ b/debian/python3-libvirt.install +@@ -0,0 +1 @@ ++usr/lib/python3/dist-packages/* +diff --git a/debian/rules b/debian/rules +index cb18dfa..f0867a4 100755 +--- a/debian/rules ++++ b/debian/rules +@@ -1,6 +1,8 @@ + #!/usr/bin/make -f + # -*- makefile -*- + ++export PYBUILD_NAME=libvirt-python ++ + export DEB_BUILD_MAINT_OPTIONS = hardening=+all + DPKG_EXPORT_BUILDFLAGS = 1 + include /usr/share/dpkg/buildflags.mk +@@ -10,3 +12,15 @@ include /usr/share/dpkg/buildflags.mk + + %: + 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/libvirt-python-wheel/usr/share/python3-wheels ++ ++ dh_install ++ ++override_dh_auto_clean: ++ python3 setup.py clean +-- +2.17.1 + diff --git a/virt/libvirt-python/debian/deb_patches/0002-Removing-auto-update-mechanism.patch b/virt/libvirt-python/debian/deb_patches/0002-Removing-auto-update-mechanism.patch new file mode 100644 index 0000000..fc9e748 --- /dev/null +++ b/virt/libvirt-python/debian/deb_patches/0002-Removing-auto-update-mechanism.patch @@ -0,0 +1,132 @@ +From c5e731d1b73bd619c5d0d96bde4d6a91684a3840 Mon Sep 17 00:00:00 2001 +From: Leonardo Fagundes Luz Serrano + +Date: Wed, 5 Jan 2022 14:25:43 -0300 +Subject: [PATCH] Removing auto-update mechanism + +According to the debian wiki, upstream/signing-key.asc and +watch files are used to check upstream for updates +by uscan (devscripts package). +Removing them as automatic updates are undesired. + +Signed-off-by: Leonardo Fagundes Luz Serrano +--- + debian/upstream/signing-key.asc | 94 --------------------------------- + debian/watch | 4 -- + 2 files changed, 98 deletions(-) + delete mode 100644 debian/upstream/signing-key.asc + delete mode 100644 debian/watch + +diff --git a/debian/upstream/signing-key.asc b/debian/upstream/signing-key.asc +deleted file mode 100644 +index 9379836..0000000 +--- a/debian/upstream/signing-key.asc ++++ /dev/null +@@ -1,94 +0,0 @@ +------BEGIN PGP PUBLIC KEY BLOCK----- +- +-mQINBF8VqoQBEACcjMco80+TaJU8JYCiOSPZb2a9pKSvz8I7wGqa+awcELWnTGTS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b2aTpViGwCdH3vSJrX4pcsGfPqdOrjoWwujhJy5AQ0EWECJaAEIALvA +-vlK+tI665d3OWl/qn07adFPrwKHwjAtio6bSzluxGsEiXAxJrNuqcmJQvUj6TBUX +-KDFDEIbka1IJiIcBI86p4TKq7p4syJ52yj5UWIJw1dYK3zGxUSkexBz0wOl6pwV5 +-Icj5qDHE/LebSaGN1qcfPIT3ufMB/l608HM1SvglBQ+vAkbusePpvtSBY30zI849 +-Ipy+8z4LcTcdJk3TKb52Qhc+AQt9eeeUzPyUgtE8j+rVAv0sIL/DiPraWdrNOZwC +-Tyvj58TUdNcquIKbuUw+kdVYldAt3DRSnq8ojYbW8aoe0ezpgjm26NtjHl7abdLr +-ct/r+E3NA/JREVBpjCEAEQEAAYhJBBgRAgAJBQJYQIloAhsMAAoJEEYGuKXelbwf +-5pwAn2uD0RpQ9xa7xPr1OYBmNV4HutvPAJ9Yj+vFte9+FNTqObFprqnf2Q+rdA== +-=wA/d +------END PGP PUBLIC KEY BLOCK----- +diff --git a/debian/watch b/debian/watch +deleted file mode 100644 +index 4e8a107..0000000 +--- a/debian/watch ++++ /dev/null +@@ -1,4 +0,0 @@ +-version=3 +- +-opts="uversionmangle=s/\.-rc/~rc/;s/\.+$//,pgpsigurlmangle=s/$/.asc/" \ +- https://libvirt.org/sources/python/libvirt-python-([\d\.]+)(-rc\d)?\.tar\.gz +-- +2.17.1 + diff --git a/virt/libvirt-python/debian/deb_patches/series b/virt/libvirt-python/debian/deb_patches/series new file mode 100644 index 0000000..8093ffc --- /dev/null +++ b/virt/libvirt-python/debian/deb_patches/series @@ -0,0 +1,2 @@ +0001-Build-python-wheel-version-of-this-package.patch +0002-Removing-auto-update-mechanism.patch diff --git a/virt/libvirt-python/debian/meta_data.yaml b/virt/libvirt-python/debian/meta_data.yaml new file mode 100644 index 0000000..fb04162 --- /dev/null +++ b/virt/libvirt-python/debian/meta_data.yaml @@ -0,0 +1,9 @@ +debname: libvirt-python +debver: 7.0.0-2 +dl_path: + name: libvirt-python-debian-7.0.0-2.tar.gz + url: https://salsa.debian.org/libvirt-team/libvirt-python/-/archive/debian/7.0.0-2/libvirt-python-debian-7.0.0-2.tar.gz + md5sum: 3053719493a919560d6929fc86bcf2b3 +revision: + dist: $STX_DIST + PKG_GITREVCOUNT: true diff --git a/virt/libvirt-python/debian/patches/0001-Fix-setup-function-import-to-support-building-wheel.patch b/virt/libvirt-python/debian/patches/0001-Fix-setup-function-import-to-support-building-wheel.patch new file mode 100644 index 0000000..e4e2df3 --- /dev/null +++ b/virt/libvirt-python/debian/patches/0001-Fix-setup-function-import-to-support-building-wheel.patch @@ -0,0 +1,31 @@ +From 7852fd8ab1653363e33910571c4fad2bc0b3de21 Mon Sep 17 00:00:00 2001 +From: Leonardo Fagundes Luz Serrano + +Date: Wed, 5 Jan 2022 14:39:18 -0300 +Subject: [PATCH] Fix setup function import to support building wheel + +In order to build the python wheel version of the pkg, +the setup function used should be provided by the +setuptools library. + +Signed-off-by: Leonardo Fagundes Luz Serrano +--- + setup.py | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/setup.py b/setup.py +index a02535d..0bcb83c 100755 +--- a/setup.py ++++ b/setup.py +@@ -1,6 +1,7 @@ + #!/usr/bin/env python3 + +-from distutils.core import setup, Extension, Command ++from setuptools import setup ++from distutils.core import Extension, Command + from distutils.command.build import build + from distutils.command.clean import clean + from distutils.command.sdist import sdist +-- +2.17.1 + diff --git a/virt/libvirt-python/debian/patches/series b/virt/libvirt-python/debian/patches/series new file mode 100644 index 0000000..918a3e9 --- /dev/null +++ b/virt/libvirt-python/debian/patches/series @@ -0,0 +1 @@ +0001-Fix-setup-function-import-to-support-building-wheel.patch