3ec7519
Name:           spice-vdagent
d82c792
Version:        0.10.1
10c2a8b
Release:        1%{?dist}
3ec7519
Summary:        Agent for Spice guests
3ec7519
Group:          Applications/System
3ec7519
License:        GPLv3+
3ec7519
URL:            http://spice-space.org/
3ec7519
Source0:        http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2
aecb694
BuildRequires:  dbus-devel spice-protocol libpciaccess-devel
10c2a8b
BuildRequires:  libXrandr-devel libXinerama-devel libXfixes-devel
3ec7519
BuildRequires:  desktop-file-utils
aecb694
Requires:       ConsoleKit
3ec7519
Requires(post):   chkconfig
3ec7519
Requires(postun): initscripts
3ec7519
Requires(preun):  chkconfig
3ec7519
Requires(preun):  initscripts
3ec7519
3ec7519
%description
3ec7519
Spice agent for Linux guests offering the following features:
3ec7519
3ec7519
Features:
3ec7519
* Client mouse mode (no need to grab mouse by client, no mouse lag)
3ec7519
  this is handled by the daemon by feeding mouse events into the kernel
3ec7519
  via uinput. This will only work if the active X-session is running a
3ec7519
  spice-vdagent process so that its resolution can be determined.
3ec7519
* Automatic adjustment of the X-session resolution to the client resolution
3ec7519
* Support of copy and paste (text and images) between the active X-session
3ec7519
  and the client
3ec7519
3ec7519
3ec7519
%prep
3ec7519
%setup -q
3ec7519
3ec7519
3ec7519
%build
3932331
%configure --with-session-info=console-kit
0569e20
make %{?_smp_mflags}
3ec7519
3ec7519
3ec7519
%install
3ec7519
make install DESTDIR=$RPM_BUILD_ROOT
3ec7519
3ec7519
3ec7519
%post
3ec7519
/sbin/chkconfig --add spice-vdagentd
3ec7519
3ec7519
%preun
3ec7519
if [ $1 = 0 ] ; then
3ec7519
    /sbin/service spice-vdagentd stop >/dev/null 2>&1
3ec7519
    /sbin/chkconfig --del spice-vdagentd
3ec7519
fi
3ec7519
3ec7519
%postun
3ec7519
if [ "$1" -ge "1" ] ; then
3ec7519
    /sbin/service spice-vdagentd condrestart >/dev/null 2>&1 || :
3ec7519
fi
3ec7519
3ec7519
3ec7519
%files
3ec7519
%defattr(-,root,root,-)
3ec7519
%doc COPYING ChangeLog README TODO
0569e20
%{_sysconfdir}/tmpfiles.d/spice-vdagentd.conf
3ec7519
%{_initddir}/spice-vdagentd
3ec7519
%{_bindir}/spice-vdagent
3ec7519
%{_sbindir}/spice-vdagentd
33a1137
%{_var}/log/spice-vdagentd
3ec7519
%{_var}/run/spice-vdagentd
3ec7519
%{_sysconfdir}/xdg/autostart/spice-vdagent.desktop
3ec7519
# For /usr/share/gdm/autostart/LoginWindow/spice-vdagent.desktop
3ec7519
# We own the dir too, otherwise we must Require gdm
3ec7519
%{_datadir}/gdm
3ec7519
3ec7519
3ec7519
%changelog
d82c792
* Tue Mar 27 2012 Hans de Goede <hdegoede@redhat.com> - 0.10.1-1
d82c792
- New upstream release 0.10.1
d82c792
10c2a8b
* Thu Mar 22 2012 Hans de Goede <hdegoede@redhat.com> - 0.10.0-1
10c2a8b
- New upstream release 0.10.0
10c2a8b
- This supports using systemd-logind instead of console-kit (rhbz#756398)
10c2a8b
aae1aa6
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2
aae1aa6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
aae1aa6
d3cc086
* Mon Jul 18 2011 Hans de Goede <hdegoede@redhat.com> 0.8.1-1
d3cc086
- New upstream release 0.8.1
d3cc086
6ccc771
* Fri Jul 15 2011 Hans de Goede <hdegoede@redhat.com> 0.8.0-2
6ccc771
- Make the per session agent process automatically reconnect to the system
6ccc771
  spice-vdagentd when the system daemon gets restarted
6ccc771
0569e20
* Tue Apr 19 2011 Hans de Goede <hdegoede@redhat.com> 0.8.0-1
0569e20
- New upstream release 0.8.0
0569e20
ae22cef
* Mon Mar 07 2011 Hans de Goede <hdegoede@redhat.com> 0.6.3-6
ae22cef
- Fix setting of the guest resolution from a multi monitor client
ae22cef
8d05527
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5
8d05527
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8d05527
6c7d603
* Mon Jan 10 2011 Hans de Goede <hdegoede@redhat.com> 0.6.3-4
6c7d603
- Make sysvinit script exit cleanly when not running on a spice enabled vm
6c7d603
33a1137
* Fri Nov 19 2010 Hans de Goede <hdegoede@redhat.com> 0.6.3-3
33a1137
- Put the pid and log files into their own subdir (#648553)
33a1137
3ec7519
* Mon Nov  8 2010 Hans de Goede <hdegoede@redhat.com> 0.6.3-2
3ec7519
- Fix broken multiline description in initscript lsb header (#648549)
3ec7519
3ec7519
* Sat Oct 30 2010 Hans de Goede <hdegoede@redhat.com> 0.6.3-1
3ec7519
- Initial Fedora package