virt-manager: clean up dependencies, make tests run successfully
Closes #25137.
This commit is contained in:
parent
bd57cae15c
commit
2b5714640f
1 changed files with 15 additions and 8 deletions
|
@ -1,14 +1,15 @@
|
||||||
# Template file for 'virt-manager'
|
# Template file for 'virt-manager'
|
||||||
pkgname=virt-manager
|
pkgname=virt-manager
|
||||||
version=3.1.0
|
version=3.1.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=python3-module
|
build_style=python3-module
|
||||||
pycompile_dirs="/usr/share/${pkgname}/virtManager"
|
pycompile_dirs="/usr/share/${pkgname}/virtManager"
|
||||||
hostmakedepends="intltool python3-devel glib-devel
|
hostmakedepends="gettext python3-docutils gtk-update-icon-cache"
|
||||||
gtk-update-icon-cache python3-gobject libosinfo libvirt-python3
|
depends="virt-manager-tools>=${version}_${revision} libvirt-glib
|
||||||
libxml2-python3 python3-requests python3-docutils"
|
gtk-vnc spice-gtk gtksourceview4 dconf vte3 gir-freedesktop"
|
||||||
depends="gnome-ssh-askpass openbsd-netcat gir-freedesktop libvirt-glib spice-gtk
|
_coredeps="python3-gobject libvirt-python3 libosinfo
|
||||||
gtk-vnc vte3 dmidecode virt-manager-tools>=${version}_${revision} gtksourceview4"
|
libxml2-python3 python3-requests cdrtools"
|
||||||
|
checkdepends="python3-pytest cpio ${_coredeps}"
|
||||||
short_desc="User interface for managing virtual machines"
|
short_desc="User interface for managing virtual machines"
|
||||||
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
|
@ -18,6 +19,10 @@ distfiles="https://virt-manager.org/download/sources/${pkgname}/${pkgname}-${ver
|
||||||
checksum=ccc98bda8c336c58031c2c3f3c7948daa2f9d150e2d406519216734f3b25832a
|
checksum=ccc98bda8c336c58031c2c3f3c7948daa2f9d150e2d406519216734f3b25832a
|
||||||
python_version=3
|
python_version=3
|
||||||
|
|
||||||
|
do_check() {
|
||||||
|
python3 -m pytest
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
rm $DESTDIR/usr/share/glib-2.0/schemas/gschemas.compiled \
|
rm $DESTDIR/usr/share/glib-2.0/schemas/gschemas.compiled \
|
||||||
$DESTDIR/usr/share/icons/hicolor/icon-theme.cache
|
$DESTDIR/usr/share/icons/hicolor/icon-theme.cache
|
||||||
|
@ -25,8 +30,7 @@ post_install() {
|
||||||
|
|
||||||
virt-manager-tools_package() {
|
virt-manager-tools_package() {
|
||||||
short_desc="Programs to create and clone virtual machines"
|
short_desc="Programs to create and clone virtual machines"
|
||||||
depends="libosinfo python3-gobject libvirt-python3
|
depends="${_coredeps} python3-argcomplete"
|
||||||
python3-urllib3 libxml2-python3 python3-requests"
|
|
||||||
pycompile_dirs="/usr/share/${sourcepkg}/virtinst"
|
pycompile_dirs="/usr/share/${sourcepkg}/virtinst"
|
||||||
python_version=3
|
python_version=3
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
|
@ -37,5 +41,8 @@ virt-manager-tools_package() {
|
||||||
vmove usr/share/man/man1/virt-clone.1
|
vmove usr/share/man/man1/virt-clone.1
|
||||||
vmove usr/share/man/man1/virt-xml.1
|
vmove usr/share/man/man1/virt-xml.1
|
||||||
vmove usr/share/virt-manager/virtinst
|
vmove usr/share/virt-manager/virtinst
|
||||||
|
vmove usr/share/bash-completion/completions/virt-install
|
||||||
|
vmove usr/share/bash-completion/completions/virt-clone
|
||||||
|
vmove usr/share/bash-completion/completions/virt-xml
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue