Package spice-vdagent: Specfile

Name: spice-vdagent
Version: 0.6.3
Release: alt1
Summary: Agent for Spice guests
Group: Networking/Remote access
License: GPLv3+
Url: http://spice-space.org/

Source: http://spice-space.org/download/releases/%name-%version.tar
Source2: spice-vdagentd.init-alt
Patch: %name-%version-%release.patch

BuildRequires: libdbus-devel spice-protocol libXrandr-devel libXfixes-devel
BuildRequires: desktop-file-utils
Requires: ConsoleKit

%description
Spice agent for Linux guests offering the following features:

Features:
* Client mouse mode (no need to grab mouse by client, no mouse lag)
  this is handled by the daemon by feeding mouse events into the kernel
  via uinput. This will only work if the active X-session is running a
  spice-vdagent process so that its resolution can be determined.
* Automatic adjustment of the X-session resolution to the client resolution
* Support of copy and paste (text and images) between the active X-session
  and the client

%prep
%setup
%patch -p1

%build
export CFLAGS="%optflags"
%make_build

%install
%makeinstall_std
install -m 0755 %SOURCE2 %buildroot%_initdir/spice-vdagentd

%post
%post_service spice-vdagentd

%preun
%preun_service spice-vdagentd

%files
%doc COPYING ChangeLog README TODO
%_initddir/spice-vdagentd
%_bindir/spice-vdagent
%_sbindir/spice-vdagentd
%_logdir/spice-vdagentd
%_var/run/spice-vdagentd
%_sysconfdir/xdg/autostart/spice-vdagent.desktop
%_datadir/gdm/autostart/LoginWindow/spice-vdagent.desktop

%changelog
* Mon Mar 21 2011 Alexey Shabalin <shaba@altlinux.ru> 0.6.3-alt1
- initial build for ALT Linux Sisyphus