Blame SPECS/spice.spec

4c08dd
Name:           spice
4c08dd
Version:        0.12.4
73b8f2
Release:        9%{?dist}.3
4c08dd
Summary:        Implements the SPICE protocol
4c08dd
Group:          User Interface/Desktops
4c08dd
License:        LGPLv2+
4c08dd
URL:            http://www.spice-space.org/
4c08dd
Source0:        http://www.spice-space.org/download/releases/%{name}-%{version}.tar.bz2
20333d
Patch1: 0001-red_channel-prevent-adding-and-pushing-pipe-items-af.patch
20333d
Patch2: 0002-red_channel-add-ref-count-to-RedClient.patch
20333d
Patch3: 0003-main_dispatcher-add-ref-count-protection-to-RedClien.patch
20333d
Patch4: 0004-decouple-disconnection-of-the-main-channel-from-clie.patch
20333d
Patch5: 0005-reds-s-red_client_disconnect-red_channel_client_shut.patch
20333d
Patch6: 0006-snd_worker-fix-memory-leak-of-PlaybackChannel.patch
20333d
Patch7: 0007-snd_worker-snd_disconnect_channel-don-t-call-snd_cha.patch
20333d
Patch8: 0008-log-improve-debug-information-related-to-client-disc.patch
20333d
Patch9: 0009-red_worker-decrease-the-timeout-when-flushing-comman.patch
20333d
Patch10: 0010-Fix-buffer-overflow-when-decrypting-client-SPICE-tic.patch
20333d
Patch11: 0011-server-move-three-functions-to-red_channel.patch
20333d
Patch12: 0012-server-s-red_wait_all_sent-red_channel_wait_all_sent.patch
20333d
Patch13: 0013-red_worker-cleanup-red_clear_surface_drawables_from_.patch
20333d
Patch14: 0014-red_channel-cleanup-of-red_channel_client-blocking-m.patch
20333d
Patch15: 0015-red_worker-disconnect-the-channel-instead-of-shutdow.patch
20333d
Patch16: 0016-spice_timer_queue-don-t-call-timers-repeatedly.patch
20333d
Patch17: 0017-red_channel-add-on_input-callback-for-tracing-incomi.patch
20333d
Patch18: 0018-red_channel-add-option-to-monitor-whether-a-channel-.patch
20333d
Patch19: 0019-main_channel-monitoring-client-connection-status.patch
fce154
Patch20: 0020-Fix-crash-when-clearing-surface-memory.patch
fce154
Patch21: 0021-Fix-assert-in-mjpeg_encoder_adjust_params_to_bit_rat.patch
fce154
Patch22: 0022-reds-lookup-corresponding-channel-id.patch
fce154
Patch23: 0023-dispatcher-lower-a-monitor-config-warning-to-a-debug.patch
fce154
Patch24: 0024-mjpeg-Don-t-warn-on-unsupported-image-formats.patch
fce154
Patch25: 0025-server-Don-t-dump-the-bitmap-when-the-format-is-inva.patch
fce154
Patch26: 0026-Fix-Wunused-parameter.patch
fce154
Patch27: 0027-Fix-Wunused-value.patch
fce154
Patch28: 0028-Fix-Wsign.patch
fce154
Patch29: 0029-Fix-Wswitch.patch
fce154
Patch30: 0030-Fix-Wformat.patch
fce154
Patch31: 0031-Fix-Wnonnull.patch
fce154
Patch32: 0032-Fix-Wmissing-field-initializers.patch
fce154
Patch33: 0033-Fix-Wunused-function.patch
fce154
Patch34: 0034-Validate-surface-bounding-box-before-using-it.patch
fce154
Patch35: 0035-migration-Don-t-assert-if-MIGRATE_DATA-comes-before-.patch
fce154
Patch36: 0036-server-fix-crash-when-restarting-VM-with-old-client.patch
fce154
Patch37: 0037-Use-TLS-version-1.0-or-better.patch
11e32f
Patch38: 0038-Avoid-race-conditions-reading-monitor-configs-from-g.patch
73b8f2
Patch39: 0039-worker-validate-correctly-surfaces.patch
73b8f2
Patch40: 0040-worker-avoid-double-free-or-double-create-of-surface.patch
73b8f2
Patch41: 0041-Define-a-constant-to-limit-data-from-guest.patch
73b8f2
Patch42: 0042-Fix-some-integer-overflow-causing-large-memory-alloc.patch
73b8f2
Patch43: 0043-Check-properly-surface-to-be-created.patch
73b8f2
Patch44: 0044-Fix-buffer-reading-overflow.patch
73b8f2
Patch45: 0045-Prevent-32-bit-integer-overflow-in-bitmap_consistent.patch
73b8f2
Patch46: 0046-Fix-race-condition-on-red_get_clip_rects.patch
73b8f2
Patch47: 0047-Fix-race-in-red_get_image.patch
73b8f2
Patch48: 0048-Fix-race-condition-in-red_get_string.patch
73b8f2
Patch49: 0049-Fix-integer-overflow-computing-glyph_size-in-red_get.patch
73b8f2
Patch50: 0050-Fix-race-condition-in-red_get_data_chunks_ptr.patch
73b8f2
Patch51: 0051-Prevent-memory-leak-if-red_get_data_chunks_ptr-fails.patch
73b8f2
Patch52: 0052-Prevent-DoS-from-guest-trying-to-allocate-too-much-d.patch
73b8f2
Patch53: 0053-Fix-some-possible-overflows-in-red_get_string-for-32.patch
73b8f2
Patch54: 0054-Make-sure-we-can-read-QXLPathSeg-structures.patch
73b8f2
Patch55: 0055-Avoid-race-condition-copying-segments-in-red_get_pat.patch
73b8f2
Patch56: 0056-Prevent-data_size-to-be-set-independently-from-data.patch
73b8f2
Patch57: 0057-Prevent-leak-if-size-from-red_get_data_chunks-don-t-.patch
4c08dd
4c08dd
# https://bugzilla.redhat.com/show_bug.cgi?id=613529
4c08dd
%if 0%{?rhel}
4c08dd
ExclusiveArch:  x86_64
4c08dd
%else
4c08dd
ExclusiveArch:  i686 x86_64 armv6l armv7l armv7hl
4c08dd
%endif
4c08dd
4c08dd
BuildRequires:  pkgconfig
4c08dd
BuildRequires:  glib2-devel >= 2.22
4c08dd
# BuildRequires:  spice-protocol >= 0.12.3 -- not needed since spice-0.11.3
4c08dd
BuildRequires:  celt051-devel
4c08dd
BuildRequires:  pixman-devel alsa-lib-devel openssl-devel libjpeg-turbo-devel
4c08dd
BuildRequires:  libcacard-devel cyrus-sasl-devel
4c08dd
BuildRequires:  pyparsing
4c08dd
4c08dd
%description
4c08dd
The Simple Protocol for Independent Computing Environments (SPICE) is
4c08dd
a remote display system built for virtual environments which allows
4c08dd
you to view a computing 'desktop' environment not only on the machine
4c08dd
where it is running, but from anywhere on the Internet and from a wide
4c08dd
variety of machine architectures.
4c08dd
4c08dd
4c08dd
%package server
4c08dd
Summary:        Implements the server side of the SPICE protocol
4c08dd
Group:          System Environment/Libraries
4c08dd
Obsoletes:      spice-client < %{version}-%{release}
4c08dd
4c08dd
%description server
4c08dd
The Simple Protocol for Independent Computing Environments (SPICE) is
4c08dd
a remote display system built for virtual environments which allows
4c08dd
you to view a computing 'desktop' environment not only on the machine
4c08dd
where it is running, but from anywhere on the Internet and from a wide
4c08dd
variety of machine architectures.
4c08dd
4c08dd
This package contains the run-time libraries for any application that wishes
4c08dd
to be a SPICE server.
4c08dd
4c08dd
4c08dd
%package server-devel
4c08dd
Summary:        Header files, libraries and development documentation for spice-server
4c08dd
Group:          Development/Libraries
4c08dd
Requires:       %{name}-server%{?_isa} = %{version}-%{release}
4c08dd
Requires:       pkgconfig
4c08dd
Requires:       spice-protocol >= 0.12.3
4c08dd
4c08dd
%description server-devel
4c08dd
This package contains the header files, static libraries and development
4c08dd
documentation for spice-server. If you like to develop programs
4c08dd
using spice-server, you will need to install spice-server-devel.
4c08dd
4c08dd
4c08dd
%prep
4c08dd
%setup -q
4c08dd
%patch1 -p1
4c08dd
%patch2 -p1
4c08dd
%patch3 -p1
4c08dd
%patch4 -p1
4c08dd
%patch5 -p1
4c08dd
%patch6 -p1
4c08dd
%patch7 -p1
4c08dd
%patch8 -p1
4c08dd
%patch9 -p1
4c08dd
%patch10 -p1
20333d
%patch11 -p1
20333d
%patch12 -p1
20333d
%patch13 -p1
20333d
%patch14 -p1
20333d
%patch15 -p1
20333d
%patch16 -p1
20333d
%patch17 -p1
20333d
%patch18 -p1
20333d
%patch19 -p1
0e7ea9
%patch20 -p1
fce154
%patch21 -p1
fce154
%patch22 -p1
fce154
%patch23 -p1
fce154
%patch24 -p1
fce154
%patch25 -p1
fce154
%patch26 -p1
fce154
%patch27 -p1
fce154
%patch28 -p1
fce154
%patch29 -p1
fce154
%patch30 -p1
fce154
%patch31 -p1
fce154
%patch32 -p1
fce154
%patch33 -p1
fce154
%patch34 -p1
fce154
%patch35 -p1
fce154
%patch36 -p1
fce154
%patch37 -p1
11e32f
%patch38 -p1
73b8f2
%patch39 -p1
73b8f2
%patch40 -p1
73b8f2
%patch41 -p1
73b8f2
%patch42 -p1
73b8f2
%patch43 -p1
73b8f2
%patch44 -p1
73b8f2
%patch45 -p1
73b8f2
%patch46 -p1
73b8f2
%patch47 -p1
73b8f2
%patch48 -p1
73b8f2
%patch49 -p1
73b8f2
%patch50 -p1
73b8f2
%patch51 -p1
73b8f2
%patch52 -p1
73b8f2
%patch53 -p1
73b8f2
%patch54 -p1
73b8f2
%patch55 -p1
73b8f2
%patch56 -p1
73b8f2
%patch57 -p1
4c08dd
4c08dd
4c08dd
%build
4c08dd
%define configure_client --disable-client
4c08dd
%configure --enable-smartcard %{configure_client}
4c08dd
make %{?_smp_mflags} WARN_CFLAGS='' V=1
4c08dd
4c08dd
4c08dd
%install
4c08dd
make DESTDIR=%{buildroot} install
4c08dd
rm -f %{buildroot}%{_libdir}/libspice-server.a
4c08dd
rm -f %{buildroot}%{_libdir}/libspice-server.la
4c08dd
mkdir -p %{buildroot}%{_libexecdir}
4c08dd
4c08dd
4c08dd
%post server -p /sbin/ldconfig
4c08dd
%postun server -p /sbin/ldconfig
4c08dd
4c08dd
4c08dd
%files server
4c08dd
%doc COPYING README NEWS
4c08dd
%{_libdir}/libspice-server.so.1*
4c08dd
4c08dd
%files server-devel
4c08dd
%{_includedir}/spice-server
4c08dd
%{_libdir}/libspice-server.so
4c08dd
%{_libdir}/pkgconfig/spice-server.pc
4c08dd
4c08dd
4c08dd
%changelog
73b8f2
* Wed Sep 23 2015 Frediano Ziglio <fziglio@redhat.com> 0.12.4-9.3
73b8f2
- CVE-2015-5260 CVE-2015-5261 fixed various security flaws
73b8f2
  Resolves: rhbz#1262771
73b8f2
73b8f2
* Tue Sep 15 2015 Frediano Ziglio <fziglio@redhat.com> 0.12.4-9.2
73b8f2
- Validate surface_id
73b8f2
  Resolves: rhbz#1262771
73b8f2
11e32f
* Tue Jul 21 2015 Christophe Fergeau <cfergeau@redhat.com> 0.12.4-9.1
11e32f
- Avoid race conditions reading monitor configs from guest. This race could
11e32f
  trigger memory corruption host-side
11e32f
  Resolves: rhbz#1239127
11e32f
fce154
* Mon Jan 05 2015 Marc-Andre Lureau <marcandre.lureau@redhat.com> 0.12.4-9
fce154
- Allow recent TLS/SSL methods, block SSLv2/SSLv3. Resolves: rhbz#1175540
fce154
fce154
* Tue Oct 21 2014 Christophe Fergeau <cfergeau@redhat.com> 0.12.4-8
fce154
- Fix defects reported by Coverity
fce154
  Resolves: rhbz#885717
fce154
- Validate surface bounding box sent from QXL driver
fce154
  Resolves: rhbz#1052856
fce154
- Fix assertion sometimes happening during migration while a client is
fce154
  connected
fce154
  Resolves: rhbz#1035184
fce154
- Fix crash when restarting VM with old client
fce154
  Resolves: rhbz#1145919
fce154
fce154
* Thu Sep 18 2014 Christophe Fergeau <cfergeau@redhat.com> 0.12.4-7
fce154
- Fix assert in mjpeg_encoder_adjust_params_to_bit_rate()
fce154
  Resolves: rhbz#1086823
fce154
- Fix "Spice-ERROR **: reds.c:1464:reds_send_link_ack: assertion
fce154
  `link->link_mess->channel_type == SPICE_CHANNEL_MAIN' failed" assertion
fce154
  Resolves: rhbz#1058625
fce154
- Lower a monitor-config warning to debug level
fce154
  Resolves: rhbz#1119220
fce154
- mjpeg: Don't warn on unsupported image formats
fce154
  Resolves: rhbz#1070028
fce154
fce154
* Thu Aug 07 2014 Marc-Andre Lureau <marcandre.lureau@redhat.com> 0.12.4-6
fce154
- Fix invalid surface clearing
fce154
  Resolves: rhbz#1029646
0e7ea9
20333d
* Wed Jan 29 2014 Christophe Fergeau <cfergeau@redhat.com> 0.12.4-5
20333d
- Fix qemu crash during migration with reboot
20333d
  Resolves: rhbz#1016795
20333d
- Monitor whether the client is alive
20333d
  Resolves: rhbz#1016790
20333d
4c08dd
* Tue Oct 15 2013 Christophe Fergeau <cfergeau@redhat.com> 0.12.4-3
4c08dd
- Fix spice-server crash when client sends a password which is too long
4c08dd
  Resolves: CVE-2013-4282
4c08dd
4c08dd
* Fri Sep 13 2013 Christophe Fergeau <cfergeau@redhat.com> 0.12.4-2
4c08dd
- Add upstream patch fixing rhbz#995041
4c08dd
4c08dd
* Fri Aug  2 2013 Hans de Goede <hdegoede@redhat.com> - 0.12.4-1
4c08dd
- Add patches from upstream git to fix sound-channel-free crash (rhbz#986407)
4c08dd
- Add Obsoletes for dropped spice-client sub-package
4c08dd
20333d
* Mon Jul 22 2013 Yonit Halperin <yhalperi@redhat.com> 0.12.4-1
4c08dd
- New upstream release 0.12.4
4c08dd
- Require libjpeg-turbo-devel instead of libjpeg-devel
4c08dd
- Remove "BuildRequires: spice-protocol" from spice-server
4c08dd
- Add "Requires: spice-protocol" to spice-server-devel.
4c08dd
4c08dd
* Thu May 23 2013 Christophe Fergeau <cfergeau@redhat.com> 0.12.3-2
4c08dd
- Stop building spicec, it's obsolete and superseded by remote-viewer
4c08dd
  (part of virt-viewer)
4c08dd
4c08dd
* Tue May 21 2013 Christophe Fergeau <cfergeau@redhat.com> 0.12.3-1
4c08dd
- New upstream release 0.12.3
4c08dd
- Drop all patches (they were all upstreamed)
4c08dd
4c08dd
* Mon Apr 15 2013 Hans de Goede <hdegoede@redhat.com> - 0.12.2-4
4c08dd
- Add fix from upstream for a crash when the guest uses RGBA (rhbz#952242)
4c08dd
4c08dd
* Thu Mar 07 2013 Adam Jackson <ajax@redhat.com> 0.12.2-4
4c08dd
- Rebuild for new libsasl2 soname in F19
4c08dd
4c08dd
* Mon Jan 21 2013 Hans de Goede <hdegoede@redhat.com> - 0.12.2-3
4c08dd
- Add a number of misc. bug-fixes from upstream
4c08dd
4c08dd
* Fri Dec 21 2012 Adam Tkac <atkac redhat com> - 0.12.2-2
4c08dd
- rebuild against new libjpeg
4c08dd
4c08dd
* Thu Dec 20 2012 Hans de Goede <hdegoede@redhat.com> - 0.12.2-1
4c08dd
- New upstream release 0.12.2
4c08dd
4c08dd
* Fri Sep 28 2012 Hans de Goede <hdegoede@redhat.com> - 0.12.0-1
4c08dd
- New upstream release 0.12.0
4c08dd
- Some minor spec file cleanups
4c08dd
- Enable building on arm
4c08dd
4c08dd
* Thu Sep 6 2012 Soren Sandmann <ssp@redhat.com> - 0.11.3-1
4c08dd
- BuildRequire pyparsing
4c08dd
4c08dd
* Thu Sep 6 2012 Soren Sandmann <ssp@redhat.com> - 0.11.3-1
4c08dd
- Add capability patches
4c08dd
- Add capability patches to the included copy of spice-protocol
4c08dd
4c08dd
    Please see the comment above Patch6 and Patch7
4c08dd
    regarding this situation.
4c08dd
4c08dd
* Thu Sep 6 2012 Soren Sandmann <ssp@redhat.com> - 0.11.3-1
4c08dd
- Update to 0.11.3 and drop upstreamed patches
4c08dd
- BuildRequire spice-protocol 0.12.1
4c08dd
4c08dd
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-6
4c08dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4c08dd
4c08dd
* Mon May 14 2012 Alon Levy <alevy@redhat.com>
4c08dd
- Fix mjpeg memory leak and bad behavior.
4c08dd
- Add usbredir to list of channels for security purposes. (#819484)
4c08dd
4c08dd
* Sun May 13 2012 Alon Levy <alevy@redhat.com>
4c08dd
- Add double free fix. (#808936)
4c08dd
4c08dd
* Tue Apr 24 2012 Alon Levy <alevy@redhat.com>
4c08dd
- Add 32 bit fixes from git master. (#815717)
4c08dd
4c08dd
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-2
4c08dd
- Rebuilt for c++ ABI breakage
4c08dd
4c08dd
* Mon Jan 23 2012 Hans de Goede <hdegoede@redhat.com> - 0.10.1-1
4c08dd
- New upstream release 0.10.1
4c08dd
4c08dd
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
4c08dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
4c08dd
4c08dd
* Thu Nov 10 2011 Alon Levy <alevy@redhat.com> - 0.10.0-1
4c08dd
- New upstream release 0.10.0
4c08dd
- support spice-server.i686
4c08dd
4c08dd
* Wed Sep 28 2011 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.1-2
4c08dd
- Provides spice-xpi-client alternative in spice-client
4c08dd
4c08dd
* Thu Aug 25 2011 Hans de Goede <hdegoede@redhat.com> - 0.9.1-1
4c08dd
- New upstream release 0.9.1
4c08dd
4c08dd
* Mon Jul 25 2011 Marc-André Lureau <marcandre.lureau@redhat.com> - 0.9.0-1
4c08dd
- New upstream release 0.9.0
4c08dd
4c08dd
* Wed Apr 20 2011 Hans de Goede <hdegoede@redhat.com> - 0.8.1-1
4c08dd
- New upstream release 0.8.1
4c08dd
4c08dd
* Fri Mar 11 2011 Hans de Goede <hdegoede@redhat.com> - 0.8.0-2
4c08dd
- Fix being unable to send ctrl+alt+key when release mouse is bound to
4c08dd
  ctrl+alt (which can happen when used from RHEV-M)
4c08dd
4c08dd
* Tue Mar  1 2011 Hans de Goede <hdegoede@redhat.com> - 0.8.0-1
4c08dd
- New upstream release 0.8.0
4c08dd
4c08dd
* Fri Feb 11 2011 Hans de Goede <hdegoede@redhat.com> - 0.7.3-1
4c08dd
- New upstream release 0.7.3
4c08dd
4c08dd
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.2-2
4c08dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
4c08dd
4c08dd
* Wed Jan 19 2011 Hans de Goede <hdegoede@redhat.com> - 0.7.2-1
4c08dd
- New upstream release 0.7.2
4c08dd
4c08dd
* Fri Dec 17 2010 Hans de Goede <hdegoede@redhat.com> - 0.7.1-1
4c08dd
- New upstream release 0.7.1
4c08dd
- Drop all patches (all upstreamed)
4c08dd
- Enable smartcard (CAC) support
4c08dd
4c08dd
* Wed Nov 17 2010 Hans de Goede <hdegoede@redhat.com> - 0.6.3-4
4c08dd
- Fix the info layer not showing when used through the XPI
4c08dd
- Do not let the connection gui flash by when a hostname has been specified
4c08dd
  on the cmdline
4c08dd
- Fix spice client locking up when dealing with XIM input (#654265)
4c08dd
- Fix modifier keys getting stuck (#655048)
4c08dd
- Fix spice client crashing when dealing with XIM ibus input (#655836)
4c08dd
- Fix spice client only showing a white screen in full screen mode
4c08dd
4c08dd
* Sat Nov  6 2010 Hans de Goede <hdegoede@redhat.com> - 0.6.3-3
4c08dd
- Log to ~/.spicec/cegui.log rather then to CEGUI.log in the cwd, this
4c08dd
  fixes spicec from aborting when run in a non writable dir (#650253)
4c08dd
4c08dd
* Fri Nov  5 2010 Hans de Goede <hdegoede@redhat.com> - 0.6.3-2
4c08dd
- Various bugfixes from upstream git:
4c08dd
  - Make spicec work together with the Firefox XPI for RHEV-M
4c08dd
  - Make sure the spicec window gets properly raised when first shown
4c08dd
4c08dd
* Mon Oct 18 2010 Hans de Goede <hdegoede@redhat.com> - 0.6.3-1
4c08dd
- Update to 0.6.3
4c08dd
- Enable GUI
4c08dd
4c08dd
* Thu Sep 30 2010 Gerd Hoffmann <kraxel@redhat.com> - 0.6.1-1
4c08dd
- Update to 0.6.1.
4c08dd
4c08dd
* Tue Aug 31 2010 Alexander Larsson <alexl@redhat.com> - 0.6.0-1
4c08dd
- Update to 0.6.0 (stable release)
4c08dd
4c08dd
* Tue Jul 20 2010 Alexander Larsson <alexl@redhat.com> - 0.5.3-1
4c08dd
- Update to 0.5.3
4c08dd
4c08dd
* Tue Jul 13 2010 Gerd Hoffmann <kraxel@redhat.com> - 0.5.2-4
4c08dd
- Quote %% in changelog to avoid macro expansion.
4c08dd
4c08dd
* Mon Jul 12 2010 Gerd Hoffmann <kraxel@redhat.com> - 0.5.2-3
4c08dd
- %%configure handles CFLAGS automatically, no need to fiddle
4c08dd
  with %%{optflags} manually.
4c08dd
4c08dd
* Mon Jul 12 2010 Gerd Hoffmann <kraxel@redhat.com> - 0.5.2-2
4c08dd
- Fix license: LGPL.
4c08dd
- Cleanup specfile, drop bits not needed any more with
4c08dd
  recent rpm versions (F13+).
4c08dd
- Use optflags as-is.
4c08dd
-
4c08dd
4c08dd
* Fri Jul 9 2010 Gerd Hoffmann <kraxel@redhat.com> - 0.5.2-1
4c08dd
- initial package.
4c08dd