Blame SPECS/xorg-x11-drv-qxl.spec

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