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