diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-11 08:37:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-11-11 08:37:27 +0000 |
commit | f02ef941452b38484fd996f13a149ecdd89d906a (patch) | |
tree | de95f58c139be777246db0af8969235f30d7b6df /community | |
parent | 8dd4322146bcbec8de25104f6c3899057bc6ee49 (diff) | |
download | aports-f02ef941452b38484fd996f13a149ecdd89d906a.tar.bz2 aports-f02ef941452b38484fd996f13a149ecdd89d906a.tar.xz |
community/virt-manager: move to community
Diffstat (limited to 'community')
-rw-r--r-- | community/virt-manager/APKBUILD | 66 | ||||
-rw-r--r-- | community/virt-manager/dont-double-create-spice-display.patch | 26 |
2 files changed, 92 insertions, 0 deletions
diff --git a/community/virt-manager/APKBUILD b/community/virt-manager/APKBUILD new file mode 100644 index 0000000000..ba80650372 --- /dev/null +++ b/community/virt-manager/APKBUILD @@ -0,0 +1,66 @@ +# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org> +pkgname=virt-manager +pkgver=1.2.1 +pkgrel=0 +pkgdesc="GUI for managing virtual machines" +url="http://virt-manager.org/" +arch="noarch" +license="GPL2+" +depends="python py-gobject3 gtk+3.0 vte3 py-libxml2 $pkgname-common + libvirt-glib spice-gtk gtk-vnc>=0.5.2-r2 libosinfo + ttf-dejavu gnome-icon-theme dconf" +depends_dev="intltool" +_common_deps="py-libxml2 py-urlgrabber py-ipaddr py-libvirt" +makedepends="$depends_dev grep $_common_deps" +install= +subpackages="$pkgname-doc $pkgname-lang + $pkgname-common + virt-install:virt_install" +source="http://virt-manager.org/download/sources/virt-manager/virt-manager-$pkgver.tar.gz + dont-double-create-spice-display.patch" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +common() { + pkgdesc="Common files used by virt-manager and virt-install" + depends="$_common_deps" + mkdir -p "$subpkgdir"/usr/share/virt-manager "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/share/virt-manager/virtcli \ + "$pkgdir"/usr/share/virt-manager/virtconv \ + "$pkgdir"/usr/share/virt-manager/virtinst \ + "$subpkgdir"/usr/share/virt-manager || return 1 +} + +virt_install() { + pkgdesc="Utilities for installing virtual machines" + depends="$pkgname-common=$pkgver-r$pkgrel" + mkdir -p "$subpkgdir"/usr/share/virt-manager "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/share/virt-manager/virt-install \ + "$pkgdir"/usr/share/virt-manager/virt-clone \ + "$pkgdir"/usr/share/virt-manager/virt-convert \ + "$subpkgdir"/usr/share/virt-manager/ || return 1 + mv "$pkgdir"/usr/bin/virt-install \ + "$pkgdir"/usr/bin/virt-clone \ + "$pkgdir"/usr/bin/virt-convert \ + "$subpkgdir"/usr/bin/ || return 1 +} + +md5sums="c8045da517e7c9d8696e22970291c55e virt-manager-1.2.1.tar.gz +5c5eda2c20ae89a64444515a78aefbb9 dont-double-create-spice-display.patch" +sha256sums="74bba80e72e5e1b4d84f1d5b7211b874e9c4ae00a0a44149d1721acab38ce6be virt-manager-1.2.1.tar.gz +aae446cecfea9703df3835ebf2bc9c215328738214b13ca625fa6951628e4386 dont-double-create-spice-display.patch" +sha512sums="b99144f498bc2f28c98bb2395e0a9c2fe244a3da476892698ff0f1fd4a6d36a8ddf53e13561593c5e94932ce8176a27092c818ed218634fc5201666ad6792791 virt-manager-1.2.1.tar.gz +a0ff9479328ac4845f00454d4fc78c5ffe825de1186c4d09d7d6a06ccbbc98d965a9b281395cc8a285bf16755a1a5519466d3a0c07c25cb726d093de46496864 dont-double-create-spice-display.patch" diff --git a/community/virt-manager/dont-double-create-spice-display.patch b/community/virt-manager/dont-double-create-spice-display.patch new file mode 100644 index 0000000000..c9a3a9c080 --- /dev/null +++ b/community/virt-manager/dont-double-create-spice-display.patch @@ -0,0 +1,26 @@ +From 5f497cba41785fc5532633811001958f99573f9b Mon Sep 17 00:00:00 2001 +From: Cole Robinson <crobinso@redhat.com> +Date: Tue, 09 Jul 2013 21:50:05 +0000 +Subject: console: Don't double create spice display + +I can't reproduce, but a couple gentoo users have issues that this +fixes: + +https://bugzilla.redhat.com/show_bug.cgi?id=981975 +--- +diff --git a/virtManager/console.py b/virtManager/console.py +index 51175c0..553c022 100644 +--- a/virtManager/console.py ++++ b/virtManager/console.py +@@ -536,7 +536,8 @@ class SpiceViewer(Viewer): + channel.connect_after("channel-event", self._main_channel_event_cb) + return + +- if type(channel) == SpiceClientGLib.DisplayChannel: ++ if (type(channel) == SpiceClientGLib.DisplayChannel and ++ not self.display): + channel_id = channel.get_property("channel-id") + + if channel_id != 0: +-- +cgit v0.9.1 |