Codebase list virt-viewer / 508a44f
Install spice-xpi-client-remote-viewer and make it available as alternative for spice-xpi-client Closes: #704217 Guido Günther 10 years ago
3 changed file(s) with 27 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
22 DEB_CONFIGURE_EXTRA_FLAGS := --with-gtk=3.0
33 ifneq (,$(findstring $(DEB_HOST_ARCH), i386 amd64))
44 DEB_CONFIGURE_EXTRA_FLAGS += --with-spice-gtk
5 HAVE_SPICE := 1
56 endif
67
78 %:
1213
1314 override_dh_auto_clean:
1415 [ ! -f Makefile ] || dh_auto_clean
16
17 override_dh_auto_install:
18 dh_auto_install
19 [ ! "${HAVE_SPICE}" ] || install -m0755 \
20 data/spice-xpi-client-remote-viewer \
21 debian/virt-viewer/usr/bin/
0 #!/bin/sh -e
1
2 if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] ; then
3 if [ -x /usr/bin/spice-xpi-client-remote-viewer ]; then
4 update-alternatives --install /usr/bin/spice-xpi-client \
5 spice-xpi-client /usr/bin/spice-xpi-client-remote-viewer 70
6 fi
7 fi
8
9 #DEBHELPER#
0 #!/bin/sh -e
1
2 if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ] ; then
3 if [ -x /usr/bin/spice-xpi-client-remote-viewer ]; then
4 update-alternatives --remove spice-xpi-client \
5 /usr/bin/spice-xpi-client-remote-viewer
6 fi
7 fi
8
9 #DEBHELPER#