aboutsummaryrefslogtreecommitdiff
path: root/system/virt-viewer
diff options
context:
space:
mode:
Diffstat (limited to 'system/virt-viewer')
-rw-r--r--system/virt-viewer/README6
-rw-r--r--system/virt-viewer/slack-desc4
-rw-r--r--system/virt-viewer/virt-viewer.SlackBuild17
-rw-r--r--system/virt-viewer/virt-viewer.info6
4 files changed, 23 insertions, 10 deletions
diff --git a/system/virt-viewer/README b/system/virt-viewer/README
index c4e3eee334b45..96e0faffbb158 100644
--- a/system/virt-viewer/README
+++ b/system/virt-viewer/README
@@ -6,6 +6,6 @@ display of a libvirt guest OS. It is intended as a replacement for
the traditional vncviewer client, since the latter does not support
SSL/TLS encryption of x509 certificate authentication.
-This software requires gtk-vnc, and optionally, spice. If built
-without libvirt (>= 0.9.7), this package will only contain the
-remote-viewer client, a simple VNC/SPICE viewer.
+This software requires gtk-vnc and optionally, spice. If built
+without libvirt, this package will only contain the remote-viewer
+client, a simple VNC/SPICE viewer.
diff --git a/system/virt-viewer/slack-desc b/system/virt-viewer/slack-desc
index 85fb3edbc5441..402d6c45b8127 100644
--- a/system/virt-viewer/slack-desc
+++ b/system/virt-viewer/slack-desc
@@ -15,5 +15,5 @@ virt-viewer: the traditional vncviewer client, since the latter does not support
virt-viewer: SSL/TLS encryption of x509 certificate authentication.
virt-viewer:
virt-viewer: This software requires gtk-vnc, and optionally, spice. If built
-virt-viewer: without libvirt (>= 0.9.7), this package will only contain the
-virt-viewer: remote-viewer client, a simple VNC/SPICE viewer.
+virt-viewer: without libvirt, this package will only contain the remote-viewer
+virt-viewer: client, a simple VNC/SPICE viewer.
diff --git a/system/virt-viewer/virt-viewer.SlackBuild b/system/virt-viewer/virt-viewer.SlackBuild
index 36bc26703e494..38a8246f8b74e 100644
--- a/system/virt-viewer/virt-viewer.SlackBuild
+++ b/system/virt-viewer/virt-viewer.SlackBuild
@@ -5,7 +5,7 @@
# Written by Zak B. Elep, <zakame@zakame.net>
PRGNAM=virt-viewer
-VERSION=${VERSION:-0.5.5}
+VERSION=${VERSION:-0.5.7}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -38,6 +38,17 @@ fi
set -e
+if pkg-config --exists spice-client-gtk-2.0.pc ; then
+ GTKVERS=2.0
+ SPICEGTK="--with-spice-gtk"
+elif pkg-config --exists spice-client-gtk-3.0.pc ; then
+ GTKVERS=3.0
+ SPICEGTK="--with-spice-gtk"
+else
+ GTKVERS=2.0
+ SPICEGTK="--without-spice-gtk"
+fi
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
@@ -57,8 +68,10 @@ CXXFLAGS="$SLKCFLAGS" \
./configure \
--prefix=/usr \
--mandir=/usr/man \
+ --with-gtk=$GTKVERS \
--docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
+ --build=$ARCH-slackware-linux \
+ $SPICEGTK
make
make install-strip DESTDIR=$PKG
diff --git a/system/virt-viewer/virt-viewer.info b/system/virt-viewer/virt-viewer.info
index 37f42a1090981..8c7e7f049d649 100644
--- a/system/virt-viewer/virt-viewer.info
+++ b/system/virt-viewer/virt-viewer.info
@@ -1,8 +1,8 @@
PRGNAM="virt-viewer"
-VERSION="0.5.5"
+VERSION="0.5.7"
HOMEPAGE="http://virt-manager.org"
-DOWNLOAD="http://virt-manager.org/download/sources/virt-viewer/virt-viewer-0.5.5.tar.gz"
-MD5SUM="a5516d33a29df5d135611c4667c03f77"
+DOWNLOAD="https://fedorahosted.org/released/virt-viewer/virt-viewer-0.5.7.tar.gz"
+MD5SUM="c0d6d2de66e61df6c2ad339625c58a2a"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="gtk-vnc %README%"