ae4e7e
%global tarball xf86-video-qxl
ae4e7e
%global moduledir %(pkg-config xorg-server --variable=moduledir )
ae4e7e
%global driverdir %{moduledir}/drivers
ae4e7e
ae4e7e
# Xspice is x86_64 only since spice-server is x86_64 only
ae4e7e
%ifarch x86_64
ae4e7e
%define with_xspice (0%{?fedora} || 0%{?rhel} > 6)
ae4e7e
%else
ae4e7e
%define with_xspice 0
ae4e7e
%endif
ae4e7e
ae4e7e
#% global gitdate 20130703
ae4e7e
%global gitversion 8b03ec16
ae4e7e
ae4e7e
%if 0%{?gitdate}
ae4e7e
ae4e7e
%define gver .%{gitdate}git%{gitversion}
ae4e7e
%endif
ae4e7e
ae4e7e
Summary:   Xorg X11 qxl video driver
ae4e7e
Name:      xorg-x11-drv-qxl
ae4e7e
ae4e7e
Version:   0.1.5
ae4e7e
ae4e7e
Release:   5%{?gver}%{?dist}
ae4e7e
URL:       http://www.x.org
ae4e7e
Source0:   http://xorg.freedesktop.org/releases/individual/driver/%{tarball}-%{version}.tar.bz2
ae4e7e
ae4e7e
#Source0: %{tarball}-%{gitdate}.tar.bz2
ae4e7e
ae4e7e
Patch1: 0001-worst-hack-of-all-time-to-qxl-driver.patch
ae4e7e
Patch2: 0002-modesetting-Validate-the-atom-for-enum-properties.patch
ae4e7e
Patch3: 0003-qxl-call-provider-init.patch
ae4e7e
Patch4: 0004-qxl-Initialize-prev-field-while-dup-surface-list.patch
ae4e7e
Patch5: 0005-kms-call-LeaveVT-on-shutdown.patch
ae4e7e
ae4e7e
License:   MIT
ae4e7e
Group:     User Interface/X Hardware Support
ae4e7e
ae4e7e
ExcludeArch: s390 s390x
ae4e7e
ae4e7e
BuildRequires: git-core
ae4e7e
BuildRequires: pkgconfig
ae4e7e
BuildRequires: xorg-x11-server-devel >= 1.1.0-1
ae4e7e
BuildRequires: spice-protocol >= 0.12.1
ae4e7e
BuildRequires: libdrm-devel >= 2.4.46-1
ae4e7e
BuildRequires: libXfont2-devel
ae4e7e
ae4e7e
%ifarch x86_64
ae4e7e
BuildRequires: spice-server-devel >= 0.8.0
ae4e7e
%endif
ae4e7e
BuildRequires: glib2-devel
ae4e7e
BuildRequires: libtool
ae4e7e
BuildRequires: libudev-devel
ae4e7e
ae4e7e
Requires: Xorg %(xserver-sdk-abi-requires ansic)
ae4e7e
Requires: Xorg %(xserver-sdk-abi-requires videodrv)
ae4e7e
ae4e7e
%description 
ae4e7e
X.Org X11 qxl video driver.
ae4e7e
ae4e7e
%if %{with_xspice}
ae4e7e
%package -n    xorg-x11-server-Xspice
ae4e7e
Summary:       XSpice is an X server that can be accessed by a Spice client
ae4e7e
Requires:      Xorg %(xserver-sdk-abi-requires ansic)
ae4e7e
Requires:      Xorg %(xserver-sdk-abi-requires videodrv)
ae4e7e
Requires:      xorg-x11-server-Xorg
ae4e7e
Requires:      python >= 2.6
ae4e7e
ae4e7e
%description -n xorg-x11-server-Xspice
ae4e7e
XSpice is both an X and a Spice server.
ae4e7e
%endif
ae4e7e
ae4e7e
%prep
ae4e7e
%autosetup -S git_am -n %{tarball}-%{?gitdate:%{gitdate}}%{!?gitdate:%{version}}
ae4e7e
ae4e7e
%build
ae4e7e
autoreconf -f -i
ae4e7e
%if %{with_xspice}
ae4e7e
%define enable_xspice --enable-xspice
ae4e7e
%endif
ae4e7e
%configure --disable-static %{?enable_xspice}
ae4e7e
make %{?_smp_mflags}
ae4e7e
ae4e7e
ae4e7e
%install
ae4e7e
make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p'
ae4e7e
ae4e7e
# FIXME: Remove all libtool archives (*.la) from modules directory.  This
ae4e7e
# should be fixed in upstream Makefile.am or whatever.
ae4e7e
find $RPM_BUILD_ROOT -regex ".*\.la$" | xargs rm -f --
ae4e7e
ae4e7e
%ifarch x86_64
ae4e7e
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11
ae4e7e
install -p -m 644 examples/spiceqxl.xorg.conf.example \
ae4e7e
    $RPM_BUILD_ROOT%{_sysconfdir}/X11/spiceqxl.xorg.conf
ae4e7e
# FIXME: upstream installs this file by default, we install it elsewhere.
ae4e7e
# upstream should just not install it and let dist package deal with
ae4e7e
# doc/examples.
ae4e7e
rm -f $RPM_BUILD_ROOT/usr/share/doc/xf86-video-qxl/spiceqxl.xorg.conf.example
ae4e7e
%if !%{with_xspice}
ae4e7e
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/X11/spiceqxl.xorg.conf
ae4e7e
%endif
ae4e7e
%endif
ae4e7e
ae4e7e
ae4e7e
%files
ae4e7e
%defattr(-,root,root,-)
ae4e7e
%doc COPYING README
ae4e7e
%{driverdir}/qxl_drv.so
ae4e7e
ae4e7e
%if %{with_xspice}
ae4e7e
%files -n xorg-x11-server-Xspice
ae4e7e
%defattr(-,root,root,-)
ae4e7e
%doc COPYING README.xspice README examples/spiceqxl.xorg.conf.example
ae4e7e
%config(noreplace) %{_sysconfdir}/X11/spiceqxl.xorg.conf
ae4e7e
%{_bindir}/Xspice
ae4e7e
%{driverdir}/spiceqxl_drv.so
ae4e7e
%endif
ae4e7e
ae4e7e
ae4e7e
%changelog
ae4e7e
* Tue Mar 19 2019 Victor Toso <victortoso@redhat.com> - 0.1.5-5
ae4e7e
- Fix crash due uninitialized pointer
ae4e7e
  Resolves: rhbz#1690453
ae4e7e
- Call LeaveVt on shutdown to avoid racy situations
ae4e7e
  Resolves: rhbz#1640918
ae4e7e
ae4e7e
* Wed May 30 2018 Adam Jackson <ajax@redhat.com> - 0.1.5-4.1
ae4e7e
- Rebuild for xserver 1.20
ae4e7e
ae4e7e
* Thu May 17 2018 Christophe Fergeau <cfergeau@redhat.com> - 0.1.5-4
ae4e7e
- Fix crash when multiple QXL devices are in use
ae4e7e
  Resolves: rhbz#1428340
ae4e7e
ae4e7e
* Mon Jun 19 2017 Adam Jackson <ajax@redhat.com> - 0.1.5-3
ae4e7e
- Validate RANDR output property atoms
ae4e7e
ae4e7e
* Wed Feb 01 2017 Adam Jackson <ajax@redhat.com> - 0.1.5-2
ae4e7e
- Rebuild for 1.19 ABI
ae4e7e
ae4e7e
* Tue Jan 24 2017 Christophe Fergeau <cfergeau@redhat.com> 0.1.5-1
ae4e7e
- Rebase to xorg-x11-drv-qxl 0.1.5
ae4e7e
  Resolves: rhbz#1401656
ae4e7e
  Related: rhbz#1398296
ae4e7e
ae4e7e
* Fri Aug 28 2015 Christophe Fergeau <cfergeau@redhat.com> 0.1.1-18
ae4e7e
- Rebuild after tagging rebased xorg-x11-server in the build root
ae4e7e
  Related: rhbz#1221909
ae4e7e
ae4e7e
* Wed Aug 26 2015 Christophe Fergeau <cfergeau@redhat.com> 0.1.1-17
ae4e7e
- Fix freeze in xfig when entering space character
ae4e7e
  Resolves: rhbz#1221909
ae4e7e
- Fix memory leak
ae4e7e
  Resolves: rhbz#1222038
ae4e7e
- Fix cursor leak causing a crash when running RHEL6 anaconda in a VM
ae4e7e
  Resolves: rhbz#1222040
ae4e7e
ae4e7e
* Fri May 22 2015 Marc-Andre Lureau <marcandre.lureau@redhat.com> - 0.1.1-16
ae4e7e
- Fix glitches when restarting X server
ae4e7e
  Resolves: rhbz#1102175
ae4e7e
- Fix restarting X server
ae4e7e
  Resolves: rhbz#1185807
ae4e7e
ae4e7e
* Tue May 19 2015 Jonathon Jongsma <jjongsma@redhat.com> - 0.1.1-15
ae4e7e
- Update drm properties correctly
ae4e7e
  Resolves: rhbz#1153377
ae4e7e
ae4e7e
* Fri May 15 2015 Christophe Fergeau <cfergeau@redhat.com> 0.1.1-14
ae4e7e
- Add upstream patch fixing aarch64 build
ae4e7e
  Resolves: rhbz#1221328
ae4e7e
ae4e7e
* Wed May 13 2015 Adam Jackson <ajax@redhat.com> 0.1.1-13
ae4e7e
- Rebuild for xserver 1.17
ae4e7e
ae4e7e
* Thu Nov 20 2014 Marc-Andre Lureau <mlureau@redhat.com> 0.1.1-12
ae4e7e
- Try to fallback to previous working configuration if
ae4e7e
  drmModeSetCrtc() failed.
ae4e7e
  Resolves: rhbz#1127552
ae4e7e
ae4e7e
* Thu Oct 23 2014 Christophe Fergeau <cfergeau@redhat.com> 0.1.1-11
ae4e7e
- Fix crash when attempting to call CrtcRotate
ae4e7e
  Resolves: rhbz#1067709
ae4e7e
ae4e7e
* Thu Oct 23 2014 Christophe Fergeau <cfergeau@redhat.com> 0.1.1-10
ae4e7e
- Fix mouse cursor disappearing when changing guest resolution
ae4e7e
  Resolves: rhbz#1030531
ae4e7e
ae4e7e
* Tue Mar 11 2014 Soren Sandmann <ssp@redhat.com> 0.1.1-9
ae4e7e
- Disable surfaces by default -- bug 1070984 
ae4e7e
ae4e7e
* Tue Jan 14 2014 Dave Airlie <airlied@redhat.com> 0.1.1-8
ae4e7e
- grab patches from F20 - fix dates
ae4e7e
ae4e7e
* Mon Jan 13 2014 Adam Jackson <ajax@redhat.com> - 0.1.1-7
ae4e7e
- 1.15 ABI rebuild
ae4e7e
ae4e7e
* Tue Dec 17 2013 Adam Jackson <ajax@redhat.com> - 0.1.1-6
ae4e7e
- 1.15RC4 ABI rebuild
ae4e7e
ae4e7e
* Wed Nov 20 2013 Adam Jackson <ajax@redhat.com> - 0.1.1-5
ae4e7e
- 1.15RC2 ABI rebuild
ae4e7e
ae4e7e
* Wed Nov 06 2013 Adam Jackson <ajax@redhat.com> - 0.1.1-4
ae4e7e
- 1.15RC1 ABI rebuild
ae4e7e
ae4e7e
* Fri Oct 25 2013 Adam Jackson <ajax@redhat.com> - 0.1.1-3
ae4e7e
- ABI rebuild
ae4e7e
ae4e7e
* Thu Oct 24 2013 Adam Jackson <ajax@redhat.com> 0.1.1-2
ae4e7e
- Drop qxl rev 1 patches
ae4e7e
ae4e7e
* Mon Oct 21 2013 Alon Levy <alevy@redhat.com> - 0.1.1-1
ae4e7e
- New upstream release
ae4e7e
- Fixes to said release to work with suid issues (upstream)
ae4e7e
ae4e7e
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-0.14.20130514git77a1594
ae4e7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ae4e7e
ae4e7e
* Wed Jul 03 2013 Dave Airlie <airlied@redhat.com> 0.1.1-0.13
ae4e7e
- resnapshot upstream to pick up a few patches
ae4e7e
- add userspace patch to use new kernel hotspot interface (#974662)
ae4e7e
ae4e7e
* Wed Jul 03 2013 Dave Airlie <airlied@redhat.com> 0.1.1-0.12
ae4e7e
- add support for udev event catching - for dynamic resize from kernel
ae4e7e
ae4e7e
* Tue Jul 02 2013 Dave Airlie <airlied@redhat.com> 0.1.1-0.11
ae4e7e
- helps if you apply the patch (#978612)
ae4e7e
ae4e7e
* Sat Jun 29 2013 Dave Airlie <airlied@redhat.com> 0.1.1-0.10
ae4e7e
- fix another resize issue due (#978612)
ae4e7e
ae4e7e
* Tue Jun 18 2013 Dave Airlie <airlied@redhat.com> 0.1.1-0.9
ae4e7e
- disable composite/a8 surfaces for KMS (#974198)
ae4e7e
ae4e7e
* Tue May 28 2013 Dave Airlie <airlied@redhat.com> 0.1.1-0.8
ae4e7e
- fix 32-bit (#965101)
ae4e7e
ae4e7e
* Tue May 14 2013 Dave Airlie <airlied@redhat.com> 0.1.1-0.7
ae4e7e
- resnapshot - fixes randr under KMS
ae4e7e
ae4e7e
* Tue May 14 2013 Daniel Mach <dmach@redhat.com> - 0.1.1-0.6
ae4e7e
- Fix with_xspice macro definition (airlied - cherrypick)
ae4e7e
ae4e7e
* Tue May 7 2013 Alon Levy <alevy@redhat.com> 0.1.1-0.5
ae4e7e
- Add Xspice fixes and dfps (upstream a474a71..77a1594)
ae4e7e
ae4e7e
* Tue Mar 19 2013 Adam Jackson <ajax@redhat.com> 0.1.1-0.4
ae4e7e
- Less RHEL customization
ae4e7e
ae4e7e
* Tue Mar 12 2013 Dave Airlie <airlied@redhat.com> 0.1.1-0.3.20130312gita474a71
ae4e7e
- add KMS support to userspace driver
ae4e7e
ae4e7e
* Thu Mar 07 2013 Peter Hutterer <peter.hutterer@redhat.com> - 0.1.1-0.2.20130306git9d45cc5
ae4e7e
- ABI rebuild
ae4e7e
ae4e7e
* Wed Mar 06 2013 Dave Airlie <airlied@redhat.com> 0.1.1-0.1
ae4e7e
- bump to get UMS bo abstraction in - kms coming soon
ae4e7e
ae4e7e
* Fri Feb 15 2013 Peter Hutterer <peter.hutterer@redhat.com> - 0.1.0-4
ae4e7e
- ABI rebuild
ae4e7e
ae4e7e
* Fri Feb 15 2013 Peter Hutterer <peter.hutterer@redhat.com> - 0.1.0-3
ae4e7e
- ABI rebuild
ae4e7e
ae4e7e
* Thu Jan 10 2013 Adam Jackson <ajax@redhat.com> - 0.1.0-2
ae4e7e
- ABI rebuild
ae4e7e
ae4e7e
* Sat Sep 22 2012 Soren Sandmann <ssp@redhat.com> 0.1.0-1
ae4e7e
- Upstream 0.1.0
ae4e7e
ae4e7e
* Wed Aug 29 2012 Adam Jackson <ajax@redhat.com> 0.0.22-6
ae4e7e
- Exclude Xspice from RHEL6 builds
ae4e7e
ae4e7e
* Sun Aug 26 2012 Alon Levy <alevy@redhat.com>
ae4e7e
- fix uxa_xorg_enable_disable_fb_access - 0.0.22-5.20120718gitde6620788 (#844463)
ae4e7e
ae4e7e
* Thu Aug 23 2012 Alon Levy <alevy@redhat.com>
ae4e7e
- fix break from introduction of screen privates - 0.0.22-4.20120718gitde6620788 (#844463)
ae4e7e
ae4e7e
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.22-3.20120718gitde6620788
ae4e7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ae4e7e
ae4e7e
* Wed Jul 18 2012 Dave Airlie <airlied@redhat.com> 0.0.22-2.20120718gitde6620788
ae4e7e
- git snapshot for new server API
ae4e7e
ae4e7e
* Thu Apr 05 2012 Adam Jackson <ajax@redhat.com> - 0.0.22-1
ae4e7e
- RHEL arch exclude updates
ae4e7e
ae4e7e
* Thu Mar 15 2012 Soren Sandmann <ssp@redhat.com> - 0.22.0
ae4e7e
- Upstream 0.0.17
ae4e7e
ae4e7e
* Sat Feb 11 2012 Peter Hutterer <peter.hutterer@redhat.com> - 0.0.21-16
ae4e7e
- ABI rebuild
ae4e7e
ae4e7e
* Fri Feb 10 2012 Peter Hutterer <peter.hutterer@redhat.com> - 0.0.21-15
ae4e7e
- ABI rebuild
ae4e7e
ae4e7e
* Tue Jan 24 2012 Peter Hutterer <peter.hutterer@redhat.com> - 0.0.21-14
ae4e7e
- ABI rebuild
ae4e7e
ae4e7e
* Fri Jan 13 2012 Marc-André Lureau <mlureau@redhat.com> 0.0.21-13
ae4e7e
- Add 0011-support-_ASYNC-io-calls-and-interrupt-handling-busy-.patch
ae4e7e
  to use async calls
ae4e7e
ae4e7e
* Wed Jan 04 2012 Adam Jackson <ajax@redhat.com> 0.0.21-12
ae4e7e
- qxl-0.0.16-ftbfs.patch: Fix some FTBFS.
ae4e7e
ae4e7e
* Wed Nov 16 2011 Adam Jackson <ajax@redhat.com> 0.0.21-11
ae4e7e
- qxl-0.0.16-vgahw.patch: API compat for xserver 1.12 (#753928)
ae4e7e
ae4e7e
* Mon Nov 14 2011 Adam Jackson <ajax@redhat.com> - 0.0.21-10
ae4e7e
- ABI rebuild
ae4e7e
ae4e7e
* Wed Nov 09 2011 Adam Jackson <ajax@redhat.com> - 0.0.21-9
ae4e7e
- ABI rebuild
ae4e7e
ae4e7e
* Fri Oct 28 2011 Soren Sandmann <ssp@redhat.com> - 0.0.21-8
ae4e7e
- Bump release
ae4e7e
ae4e7e
* Fri Oct 28 2011 Soren Sandmann <ssp@redhat.com> - 0.0.21-7
ae4e7e
- Add patch to translate access regions according to drawable offset
ae4e7e
  Bug 731245.
ae4e7e
ae4e7e
* Thu Oct 27 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.21-7
ae4e7e
- Rebuilt for glibc bug#747377
ae4e7e
ae4e7e
* Wed Oct 26 2011 Soren Sandmann <ssp@redhat.com> - 0.0.21-6
ae4e7e
- Add patch to confine access regions to the bounds of the drawable.
ae4e7e
  Bug 731245.
ae4e7e
ae4e7e
* Mon Sep 12 2011 Hans de Goede <hdegoede@redhat.com> - 0.0.21-5
ae4e7e
- Rebase to latest upstream release
ae4e7e
- Enable building of the Xspice X-server and put it in its own
ae4e7e
  xorg-x11-server-Xspice package
ae4e7e
ae4e7e
* Thu Aug 18 2011 Adam Jackson <ajax@redhat.com> - 0.0.21-4
ae4e7e
- Rebuild for xserver 1.11 ABI
ae4e7e
ae4e7e
* Wed Apr 20 2011 Hans de Goede <hdegoede@redhat.com> 0.0.21-3
ae4e7e
- Add various bugfixes from upstream git
ae4e7e
- Fixes VT-switching (rhbz#696711)
ae4e7e
- Add support for old qxl device (from rhel6 branch) (rhbz#642153)
ae4e7e
ae4e7e
* Mon Mar 07 2011 Dave Airlie <airlied@redhat.com> 0.0.21-2
ae4e7e
- Bump to for abi rebuild
ae4e7e
ae4e7e
* Sat Feb 12 2011 Soren Sandmann <ssp@redhat.com> 0.0.21-1
ae4e7e
- New version number to make sure upgrading works
ae4e7e
ae4e7e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.13-2
ae4e7e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ae4e7e
ae4e7e
* Wed Jan 26 2011 Soren Sandmann <ssp@redhat.com> 0.0.13-1
ae4e7e
- Update to 0.0.13 with surfaces
ae4e7e
ae4e7e
* Mon Dec 06 2010 Adam Jackson <ajax@redhat.com> 0.0.20.f14b-10
ae4e7e
- Rebuild for new server ABI.
ae4e7e
ae4e7e
* Wed Oct 27 2010 Adam Jackson <ajax@redhat.com> 0.0.20.f14b-8
ae4e7e
- Add ABI requires magic (#542742)
ae4e7e
ae4e7e
* Sun Oct 17 2010 Hans de Goede <hdegoede@redhat.com> 0.0.20.f14b-7
ae4e7e
- Fix notification bubbles under gnome not showing (backport from the
ae4e7e
  surface-fixes branch)
ae4e7e
ae4e7e
* Sun Oct 17 2010 Hans de Goede <hdegoede@redhat.com> 0.0.20.f14b-6
ae4e7e
- Fix a pointer casting bug which causes the qxl driver to trigger an
ae4e7e
  assertion in the qxl device terminating the entire virtual machine
ae4e7e
ae4e7e
* Mon Oct 11 2010 Hans de Goede <hdegoede@redhat.com> 0.0.20.f14b-5
ae4e7e
- Don't access the qxl device when our vt is not focussed, this fixes
ae4e7e
  Xorg crashing when switching to a text vc
ae4e7e
ae4e7e
* Sun Oct 10 2010 Hans de Goede <hdegoede@redhat.com> 0.0.20.f14b-4
ae4e7e
- Fix the driver not working on qxl devices with a framebuffer of 8MB
ae4e7e
ae4e7e
* Sat Oct  9 2010 Hans de Goede <hdegoede@redhat.com> 0.0.20.f14b-3
ae4e7e
- Add support for using resolutions > 1024x768 without needing an xorg.conf
ae4e7e
- Restore textmode font when switching back to a textmode virtual console
ae4e7e
ae4e7e
* Fri Oct 08 2010 Jesse Keating <jkeating@redhat.com> - 0.0.20.f14b-2.1
ae4e7e
- Rebuild for gcc bug 634757
ae4e7e
ae4e7e
* Tue Sep 14 2010 Soren Sandmann <ssp@redhat.com> 0.0.20.f14b-2
ae4e7e
- Patch to fix it up for the new privates ABI (I had apparently been
ae4e7e
  testing with a too old X server).
ae4e7e
ae4e7e
* Tue Sep 14 2010 Soren Sandmann <ssp@redhat.com> 0.0.20.f14b-1
ae4e7e
- Add support for new device
ae4e7e
ae4e7e
* Sat Mar 13 2010 Dave Airlie <airlied@redhat.com> 0.0.12-2
ae4e7e
- fix bug in qxl with asserts
ae4e7e
ae4e7e
* Sat Mar 13 2010 Dave Airlie <airlied@redhat.com> 0.0.12-1
ae4e7e
- rebase to 0.0.12 release - fix some 16-bit bugs
ae4e7e
ae4e7e
* Mon Jan 11 2010 Dave Airlie <airlied@redhat.com> 0.0.9-0.1
ae4e7e
- Initial public release 0.0.9