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