Provides spice-xpi-client alternative in spice-client package

This commit is contained in:
Marc-André Lureau 2011-09-28 15:12:58 +02:00 committed by Marc-André Lureau
parent 5175ecec1c
commit 0ea5f4ebe0
2 changed files with 30 additions and 4 deletions

6
spice-xpi-client-spicec Executable file
View File

@ -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"

View File

@ -1,11 +1,12 @@
Name: spice Name: spice
Version: 0.9.1 Version: 0.9.1
Release: 1%{?dist} Release: 2%{?dist}
Summary: Implements the SPICE protocol Summary: Implements the SPICE protocol
Group: User Interface/Desktops Group: User Interface/Desktops
License: LGPLv2+ License: LGPLv2+
URL: http://www.spice-space.org/ URL: http://www.spice-space.org/
Source0: http://www.spice-space.org/download/releases/%{name}-%{version}.tar.bz2 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 # https://bugzilla.redhat.com/show_bug.cgi?id=613529
ExclusiveArch: i686 x86_64 ExclusiveArch: i686 x86_64
@ -27,6 +28,8 @@ variety of machine architectures.
%package client %package client
Summary: Implements the client side of the SPICE protocol Summary: Implements the client side of the SPICE protocol
Group: User Interface/Desktops Group: User Interface/Desktops
Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
%description client %description client
The Simple Protocol for Independent Computing Environments (SPICE) is 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.a
rm -f %{buildroot}%{_libdir}/libspice-server.la rm -f %{buildroot}%{_libdir}/libspice-server.la
%endif %endif
mkdir -p %{buildroot}%{_libexecdir}
touch %{buildroot}%{_libexecdir}/spice-xpi-client
install -m 0755 %{_sourcedir}/spice-xpi-client-spicec %{buildroot}%{_libexecdir}/
%files client %files client
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc COPYING README NEWS %doc COPYING README NEWS
%{_bindir}/spicec %{_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 %ifarch x86_64
@ -107,6 +124,9 @@ rm -f %{buildroot}%{_libdir}/libspice-server.la
%endif %endif
%changelog %changelog
* Wed Sep 28 2011 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-2
- Provides spice-xpi-client alternative in spice-client
* Thu Aug 25 2011 Hans de Goede <hdegoede@redhat.com> - 0.9.1-1 * Thu Aug 25 2011 Hans de Goede <hdegoede@redhat.com> - 0.9.1-1
- New upstream release 0.9.1 - New upstream release 0.9.1