a547b4
Name:           spice-vdagent
a547b4
Version:        0.14.0
a547b4
Release:        18%{?dist}
a547b4
Summary:        Agent for Spice guests
a547b4
Group:          Applications/System
a547b4
License:        GPLv3+
a547b4
URL:            http://spice-space.org/
a547b4
Source0:        http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2
a547b4
# Fixes from upstream git
a547b4
Patch1: 0001-vdagent-d-Add-printing-of-version-to-h-output.patch
a547b4
Patch2: 0002-vdagentd-Advertise-VD_AGENT_CAP_GUEST_LINEEND_LF.patch
a547b4
Patch3: 0003-buildsys-Build-vdagentd-as-pie-relro-when-possible.patch
a547b4
Patch4: 0004-Not-having-the-virtio-channel-is-not-an-error-instea.patch
a547b4
Patch5: 0005-vdagent-x11-Release-clipboard-on-client-disconnect-i.patch
a547b4
#This patch is in the RHEL6 build but omitted on purpose from the RHEL7
a547b4
#build, see https://bugzilla.redhat.com/show_bug.cgi?id=1131454#c2 for
a547b4
#details
a547b4
#Patch6: 0006-randr-set-physical-screen-size-to-keep-a-constant-96.patch
a547b4
Patch7: 0007-clipboard-target_to_type-fix-inner-loop-variable-nam.patch
a547b4
Patch8: 0008-Reply-to-TIMESTAMP-requests.patch
a547b4
Patch9: 0009-Handle-STRING-selection-type.patch
a547b4
Patch10: 0010-randr-Make-resolution-changing-more-robust.patch
a547b4
Patch11: 0011-Don-t-abort-if-XRRSetCrtcConfig-fails.patch
a547b4
Patch12: 0012-Fix-gdm-autostart-path.patch
a547b4
Patch13: 0013-data-remove-rsyslog-config-files.patch
a547b4
Patch14: 0014-vdagent-file-xfers-only-open-the-file-transfer-dir-w.patch
a547b4
Patch15: 0015-audio-add-functions-to-set-volume-mute-with-alsa.patch
a547b4
Patch16: 0016-vdagent-volume-synchronization-from-client.patch
a547b4
Patch17: 0017-vdagentd-proto-strings-Add-missing-string-for-VDAGEN.patch
a547b4
Patch18: 0018-vdagent-Return-1-when-virtio-device-cannot-be-opened.patch
a547b4
Patch19: 0019-build-sys-Enable-large-file-support.patch
a547b4
Patch20: 0020-Add-g_return_if_fail-guards-to-file-xfer-public-func.patch
a547b4
Patch21: 0021-Make-creation-of-vdagent_file_xfers-optional.patch
a547b4
Patch22: 0022-Disable-file-xfer-when-no-suitable-destination-dir.patch
a547b4
Patch23: 0023-Report-an-error-when-file-transfers-are-disabled.patch
a547b4
Patch24: 0024-vdagentd-send-file-xfer-status-generic-version.patch
a547b4
Patch25: 0025-session-info-check-for-a-locked-session.patch
a547b4
Patch26: 0026-session-info-check-if-session-belongs-to-user.patch
a547b4
Patch27: 0027-systemd-login-check-for-LockedHint-property.patch
a547b4
Patch28: 0028-Add-systemd-socket-activation.patch
a547b4
Patch29: 0029-spice-vdagent.desktop-Change-autostart-to-WindowMana.patch
a547b4
Patch30: 0030-systemd-Remove-unneded-virtio-port-dependencies.patch
a547b4
Patch31: 0031-systemd-Remove-WantedBy-sockets.service-in-Install.patch
a547b4
Patch32: 0032-systemd-Update-path-in-unit-file.patch
a547b4
Patch33: 0033-udscs-Avoid-file-descriptor-leak.patch
a547b4
Patch34: 0034-x11-invalidate-requests-for-targets-on-grab-from-cli.patch
a547b4
Patch35: 0035-vdagent_x11_target_to_type-Improve-error-logging.patch
a547b4
Patch36: 0036-vdagent-x11-Turn-some-error-messages-into-debugging-.patch
a547b4
a547b4
a547b4
BuildRequires:  systemd-devel glib2-devel spice-protocol >= 0.12.6
a547b4
BuildRequires:  libpciaccess-devel libXrandr-devel libXinerama-devel
a547b4
BuildRequires:  libXfixes-devel systemd-units desktop-file-utils libtool
a547b4
BuildRequires:  alsa-lib-devel dbus-devel
a547b4
Requires(post): systemd-units
a547b4
Requires(preun): systemd-units
a547b4
Requires(postun): systemd-units
a547b4
Requires: dbus systemd >= 219-21
a547b4
a547b4
%description
a547b4
Spice agent for Linux guests offering the following features:
a547b4
a547b4
Features:
a547b4
* Client mouse mode (no need to grab mouse by client, no mouse lag)
a547b4
  this is handled by the daemon by feeding mouse events into the kernel
a547b4
  via uinput. This will only work if the active X-session is running a
a547b4
  spice-vdagent process so that its resolution can be determined.
a547b4
* Automatic adjustment of the X-session resolution to the client resolution
a547b4
* Support of copy and paste (text and images) between the active X-session
a547b4
  and the client
a547b4
a547b4
a547b4
%prep
a547b4
%setup -q
a547b4
%patch1 -p1
a547b4
%patch2 -p1
a547b4
%patch3 -p1
a547b4
%patch4 -p1
a547b4
%patch5 -p1
a547b4
%patch7 -p1
a547b4
%patch8 -p1
a547b4
%patch9 -p1
a547b4
%patch10 -p1
a547b4
%patch11 -p1
a547b4
%patch12 -p1
a547b4
%patch13 -p1
a547b4
%patch14 -p1
a547b4
%patch15 -p1
a547b4
%patch16 -p1
a547b4
%patch17 -p1
a547b4
%patch18 -p1
a547b4
%patch19 -p1
a547b4
%patch20 -p1
a547b4
%patch21 -p1
a547b4
%patch22 -p1
a547b4
%patch23 -p1
a547b4
%patch24 -p1
a547b4
%patch25 -p1
a547b4
%patch26 -p1
a547b4
%patch27 -p1
a547b4
%patch28 -p1
a547b4
%patch29 -p1
a547b4
%patch30 -p1
a547b4
%patch31 -p1
a547b4
%patch32 -p1
a547b4
%patch33 -p1
a547b4
%patch34 -p1
a547b4
%patch35 -p1
a547b4
%patch36 -p1
a547b4
autoreconf -fi
a547b4
a547b4
a547b4
%build
a547b4
%configure --with-session-info=systemd --with-init-script=systemd
a547b4
make %{?_smp_mflags} V=2
a547b4
a547b4
a547b4
%install
a547b4
make install DESTDIR=$RPM_BUILD_ROOT V=2
a547b4
# rhbz#963201
a547b4
rm $RPM_BUILD_ROOT%{_sysconfdir}/modules-load.d/spice-vdagentd.conf
a547b4
a547b4
a547b4
%post
a547b4
%systemd_post spice-vdagentd.service spice-vdagentd.socket
a547b4
a547b4
%preun
a547b4
%systemd_preun spice-vdagentd.service spice-vdagentd.socket
a547b4
a547b4
%postun
a547b4
%systemd_postun_with_restart spice-vdagentd.service spice-vdagentd.socket
a547b4
a547b4
a547b4
%files
a547b4
%doc COPYING ChangeLog README TODO
a547b4
/lib/udev/rules.d/70-spice-vdagentd.rules
a547b4
%{_unitdir}/spice-vdagentd.service
a547b4
%{_unitdir}/spice-vdagentd.socket
a547b4
%{_prefix}/lib/tmpfiles.d/spice-vdagentd.conf
a547b4
%{_bindir}/spice-vdagent
a547b4
%{_sbindir}/spice-vdagentd
a547b4
%{_var}/run/spice-vdagentd
a547b4
%{_sysconfdir}/xdg/autostart/spice-vdagent.desktop
a547b4
# For /usr/share/gdm/autostart/LoginWindow/spice-vdagent.desktop
a547b4
# We own the dir too, otherwise we must Require gdm
a547b4
%{_datadir}/gdm
a547b4
%{_mandir}/man1/%{name}*.1*
a547b4
a547b4
a547b4
%changelog
a547b4
* Mon Apr  8 2019 Victor Toso <victortoso@redhat.com> - 0.14.0-18
a547b4
- Fix clipboard logs on requests for targets on grab from client
a547b4
  Resolves: rhbz#1594876
a547b4
- Make some clipboard logs debug instead of error
a547b4
  Resolves: rhbz#1686008
a547b4
a547b4
* Fri Mar 15 2019 Victor Toso <victortoso@redhat.com> - 0.14.0-17
a547b4
- Fix 'Dependency failed for Activation socket' message
a547b4
  Resolves: rhbz#1545212
a547b4
- Fix socket leak
a547b4
  Resolves: rhbz#1650596
a547b4
a547b4
* Fri Sep  7 2018 Victor Toso <victortoso@redhat.com> - 0.14.0-16
a547b4
- Change session agent initialization stage to WindowManager
a547b4
  Resolves: rhbz#1623947
a547b4
a547b4
* Fri Nov 17 2017 Jonathon Jongsma <jjongsma@redhat.com> - 0.14.0-15
a547b4
- Add systemd socket activation
a547b4
  Resolves: rhbz#1340160
a547b4
a547b4
* Fri Jul  8 2016 Victor Toso <victortoso@redhat.com> - 0.14.0-14
a547b4
- Do not allow drag-and-drop on (gdm) login screen
a547b4
  Resolves: rhbz#1328761
a547b4
- Do not allow drag-and-drop on locked screen
a547b4
  Resolves: rhbz#1323623
a547b4
a547b4
* Thu Apr 28 2016 Christophe Fergeau <cfergeau@redhat.com> - 0.14.0-13
a547b4
- Enable large file support
a547b4
  Resolves: rhbz#1331490
a547b4
a547b4
* Thu Apr 28 2016 Christophe Fergeau <cfergeau@redhat.com> - 0.14.0-12
a547b4
- Apply patches forgotten in previous build..
a547b4
  Related: rhbz#1264102, rhbz#1256704
a547b4
a547b4
* Thu Apr 28 2016 Christophe Fergeau <cfergeau@redhat.com> - 0.14.0-11
a547b4
- Add client to guest audio volume synchronization
a547b4
  Resolves: rhbz#1264102
a547b4
- Exit with error when virtio channel device is missing
a547b4
  Resolves: rhbz#1256704
a547b4
a547b4
* Fri Jun 05 2015 Jonathon Jongsma <jjongsma@redhat.com> - 0.14.0-10
a547b4
- Don't open a separate file manager for each file transfered
a547b4
  Resolves: rhbz#1168324
a547b4
a547b4
* Tue Sep 23 2014 Christophe Fergeau <cfergeau@redhat.com> 0.14.0-9
a547b4
- Don't install rsyslog config file. This can cause duplicate logging
a547b4
  to syslog in rhel6->rhel7 upgrades, and is not really useful anyway
a547b4
  as the same functionality can be achieved with journald
a547b4
  Resolves: rhbz#1136881
a547b4
a547b4
* Tue Aug 19 2014 Christophe Fergeau <cfergeau@redhat.com> 0.14.0-8
a547b4
- Fix copy and paste issues with vncclient
a547b4
  Resolves: rhbz#1130218
a547b4
- Make vdagent more robust against xrandr failures
a547b4
  Resolves: rhbz#1066422
a547b4
- Fix autostart of vdagent in gdm
a547b4
  Resolves: rhbz#1052172
a547b4
a547b4
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.14.0-7
a547b4
- Mass rebuild 2014-01-24
a547b4
a547b4
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.14.0-6
a547b4
- Mass rebuild 2013-12-27
a547b4
a547b4
* Tue Sep 10 2013 Hans de Goede <hdegoede@redhat.com> - 0.14.0-5
a547b4
- Silence session agent error logging when not running in a vm (rhbz#999804)
a547b4
- Release guest clipboard ownership on client disconnect (rhbz#1003977)
a547b4
a547b4
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.0-4
a547b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a547b4
a547b4
* Wed Jul  3 2013 Hans de Goede <hdegoede@redhat.com> - 0.14.0-3
a547b4
- Advertise clipboard line-endings for copy and paste line-ending conversion
a547b4
- Build spice-vdagentd as pie + relro
a547b4
a547b4
* Mon May 20 2013 Hans de Goede <hdegoede@redhat.com> - 0.14.0-2
a547b4
- Drop the no longer needed /etc/modules-load.d/spice-vdagentd.conf (#963201)
a547b4
a547b4
* Fri Apr 12 2013 Hans de Goede <hdegoede@redhat.com> - 0.14.0-1
a547b4
- New upstream release 0.14.0
a547b4
- Adds support for file transfers from client to guest
a547b4
- Adds manpages for spice-vdagent and spice-vdagentd
a547b4
a547b4
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.12.1-2
a547b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a547b4
a547b4
* Tue Jan  8 2013 Hans de Goede <hdegoede@redhat.com> - 0.12.1-1
a547b4
- New upstream release 0.12.1
a547b4
- Fixes various issues with dynamic monitor / resolution support
a547b4
a547b4
* Mon Nov 12 2012 Hans de Goede <hdegoede@redhat.com> - 0.12.0-2
a547b4
- Fix setting of mode on non arbitrary resolution capable X driver
a547b4
- Fix wrong mouse coordinates on vms with multiple qxl devices
a547b4
a547b4
* Sat Sep  1 2012 Hans de Goede <hdegoede@redhat.com> - 0.12.0-1
a547b4
- New upstream release 0.12.0
a547b4
- This moves the tmpfiles.d to /usr/lib/tmpfiles.d (rhbz#840194)
a547b4
- This adds a systemd .service file (rhbz#848102)
a547b4
a547b4
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-2
a547b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a547b4
a547b4
* Tue Mar 27 2012 Hans de Goede <hdegoede@redhat.com> - 0.10.1-1
a547b4
- New upstream release 0.10.1
a547b4
a547b4
* Thu Mar 22 2012 Hans de Goede <hdegoede@redhat.com> - 0.10.0-1
a547b4
- New upstream release 0.10.0
a547b4
- This supports using systemd-logind instead of console-kit (rhbz#756398)
a547b4
a547b4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.1-2
a547b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a547b4
a547b4
* Mon Jul 18 2011 Hans de Goede <hdegoede@redhat.com> 0.8.1-1
a547b4
- New upstream release 0.8.1
a547b4
a547b4
* Fri Jul 15 2011 Hans de Goede <hdegoede@redhat.com> 0.8.0-2
a547b4
- Make the per session agent process automatically reconnect to the system
a547b4
  spice-vdagentd when the system daemon gets restarted
a547b4
a547b4
* Tue Apr 19 2011 Hans de Goede <hdegoede@redhat.com> 0.8.0-1
a547b4
- New upstream release 0.8.0
a547b4
a547b4
* Mon Mar 07 2011 Hans de Goede <hdegoede@redhat.com> 0.6.3-6
a547b4
- Fix setting of the guest resolution from a multi monitor client
a547b4
a547b4
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5
a547b4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a547b4
a547b4
* Mon Jan 10 2011 Hans de Goede <hdegoede@redhat.com> 0.6.3-4
a547b4
- Make sysvinit script exit cleanly when not running on a spice enabled vm
a547b4
a547b4
* Fri Nov 19 2010 Hans de Goede <hdegoede@redhat.com> 0.6.3-3
a547b4
- Put the pid and log files into their own subdir (#648553)
a547b4
a547b4
* Mon Nov  8 2010 Hans de Goede <hdegoede@redhat.com> 0.6.3-2
a547b4
- Fix broken multiline description in initscript lsb header (#648549)
a547b4
a547b4
* Sat Oct 30 2010 Hans de Goede <hdegoede@redhat.com> 0.6.3-1
a547b4
- Initial Fedora package