File xf86-video-qxl.spec of Package xf86-video-qxl

# spec file for package xf86-video-qxl
# Copyright (c) 2020 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

# Xspice is x86_64 only since spice-server is x86_64 only
%ifarch x86_64
%if %{suse_version} >= 1230
%bcond_without xspice
%bcond_with xspice
%bcond_with xspice

Name:           xf86-video-qxl
Version:        0.1.5
Release:        0
Summary:        QXL virtual GPU video driver for the Xorg X server
License:        MIT
Group:          System/X11/Servers/XF86_4
Patch0:         n_hardcode_libdrm_cflags.patch
Patch1:         n_disable-surfaces-on-kms.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(fontsproto)
BuildRequires:  pkgconfig(libcacard)
BuildRequires:  pkgconfig(libpcsclite)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(pciaccess) >= 0.10
BuildRequires:  pkgconfig(randrproto)
BuildRequires:  pkgconfig(renderproto)
BuildRequires:  pkgconfig(spice-protocol) >= 0.12.2
BuildRequires:  pkgconfig(videoproto)
BuildRequires:  pkgconfig(xf86dgaproto)
BuildRequires:  pkgconfig(xfont2)
BuildRequires:  pkgconfig(xorg-macros) >= 1.4
BuildRequires:  pkgconfig(xorg-server) >=
BuildRequires:  pkgconfig(xproto)
Supplements:    modalias(xorg-x11-server:pci:v00001B36d*sv*sd*bc03sc*i*)
# This was part of the xorg-x11-driver-video package up to version 7.6
Conflicts:      xorg-x11-driver-video <= 7.6
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExcludeArch:    s390 s390x

qxl is an Xorg driver for QXL virtual GPU as found in the spice project.

%if %{with xspice}
%package -n    xorg-x11-server-Xspice
Summary:        XSpice is an X server that can be accessed by a Spice client
Group:          System/X11/Servers/XF86_4
Requires:       python >= 2.6
BuildRequires:  pkgconfig(spice-server) >= 0.6.3

%description -n xorg-x11-server-Xspice
XSpice is both an X and a Spice server that can be accessed by a Spice client.

%setup -q
%patch0 -p0
%patch1 -p1

autoreconf -fi
%configure \
%if 0%{?with_xspice}
    --enable-xspice \

make %{?_smp_mflags}

%if %{with xspice}
# FIXME: upstream installs this file by default, we install it elsewhere.
# upstream should just not install it and let dist package deal with
# doc/examples.
rm -f $RPM_BUILD_ROOT/usr/share/doc/xf86-video-qxl/spiceqxl.xorg.conf.example
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print

%dir %{_libdir}/xorg/modules/drivers

%if %{with xspice}
%files -n xorg-x11-server-Xspice
%doc COPYING README.xspice README examples/spiceqxl.xorg.conf.example
%dir %{_libdir}/pcsc/
%dir %{_libdir}/pcsc/drivers/
%dir %{_libdir}/pcsc/drivers/serial/

openSUSE Build Service is sponsored by