From 0ea5f4ebe018c0c0cce39cb51b3b4dc388f46456 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Wed, 28 Sep 2011 15:12:58 +0200 Subject: [PATCH] Provides spice-xpi-client alternative in spice-client package --- spice-xpi-client-spicec | 6 ++++++ spice.spec | 28 ++++++++++++++++++++++++---- 2 files changed, 30 insertions(+), 4 deletions(-) create mode 100755 spice-xpi-client-spicec diff --git a/spice-xpi-client-spicec b/spice-xpi-client-spicec new file mode 100755 index 0000000..2410b73 --- /dev/null +++ b/spice-xpi-client-spicec @@ -0,0 +1,6 @@ +#!/bin/sh + +logger -t spice "starting spicec --controller $@..." +env | logger -t spice +exec spicec --controller "$@" 2>&1 | logger -t spice +logger -t spice "spicec execution failed" diff --git a/spice.spec b/spice.spec index 2f9329c..edd248e 100644 --- a/spice.spec +++ b/spice.spec @@ -1,11 +1,12 @@ Name: spice Version: 0.9.1 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Implements the SPICE protocol Group: User Interface/Desktops License: LGPLv2+ URL: http://www.spice-space.org/ Source0: http://www.spice-space.org/download/releases/%{name}-%{version}.tar.bz2 +Source1: spice-xpi-client-spicec # https://bugzilla.redhat.com/show_bug.cgi?id=613529 ExclusiveArch: i686 x86_64 @@ -25,8 +26,10 @@ where it is running, but from anywhere on the Internet and from a wide variety of machine architectures. %package client -Summary: Implements the client side of the SPICE protocol -Group: User Interface/Desktops +Summary: Implements the client side of the SPICE protocol +Group: User Interface/Desktops +Requires(post): %{_sbindir}/update-alternatives +Requires(postun): %{_sbindir}/update-alternatives %description client The Simple Protocol for Independent Computing Environments (SPICE) is @@ -80,11 +83,25 @@ make DESTDIR=%{buildroot} install rm -f %{buildroot}%{_libdir}/libspice-server.a rm -f %{buildroot}%{_libdir}/libspice-server.la %endif +mkdir -p %{buildroot}%{_libexecdir} +touch %{buildroot}%{_libexecdir}/spice-xpi-client +install -m 0755 %{_sourcedir}/spice-xpi-client-spicec %{buildroot}%{_libexecdir}/ %files client %defattr(-,root,root,-) %doc COPYING README NEWS %{_bindir}/spicec +%ghost %{_libexecdir}/spice-xpi-client +%{_libexecdir}/spice-xpi-client-spicec + +%post client +%{_sbindir}/update-alternatives --install %{_libexecdir}/spice-xpi-client \ + spice-xpi-client %{_libexecdir}/spice-xpi-client-spicec 10 + +%postun client +if [ $1 -eq 0 ] ; then + %{_sbindir}/update-alternatives --remove spice-xpi-client %{_libexecdir}/spice-xpi-client-spicec +fi %ifarch x86_64 @@ -107,6 +124,9 @@ rm -f %{buildroot}%{_libdir}/libspice-server.la %endif %changelog +* Wed Sep 28 2011 Marc-André Lureau - 0.9.1-2 +- Provides spice-xpi-client alternative in spice-client + * Thu Aug 25 2011 Hans de Goede - 0.9.1-1 - New upstream release 0.9.1 @@ -180,7 +200,7 @@ rm -f %{buildroot}%{_libdir}/libspice-server.la - Cleanup specfile, drop bits not needed any more with recent rpm versions (F13+). - Use optflags as-is. -- +- * Fri Jul 9 2010 Gerd Hoffmann - 0.5.2-1 - initial package.