%global moduledir %(pkg-config xorg-server --variable=moduledir ) %global driverdir %{moduledir}/drivers %global oldname xorg-x11-drv-qxl %global reponame xf86-video-qxl %undefine _hardened_build # Xspice is x86_64 and ARM only since spice-server is x86_64 / ARM only %ifarch %{ix86} x86_64 %{arm} aarch64 %define with_xspice 1 %else %define with_xspice 0 %endif Summary: XLibre qxl X11 video driver Name: xlibre-xf86-video-qxl Version: 0.1.6.1 Release: 1%{?dist} URL: https://github.com/X11Libre/%{reponame} License: MIT Source0: https://github.com/X11Libre/%{reponame}/archive/refs/tags/%{name}-%{version}.tar.gz Patch1: 0001-worst-hack-of-all-time-to-qxl-driver.patch # This shebang patch is currently downstream-only Patch2: 0005-Xspice-Adjust-shebang-to-explicitly-mention-python3.patch ExcludeArch: s390 s390x BuildRequires: autoconf BuildRequires: automake BuildRequires: make BuildRequires: gcc BuildRequires: git-core BuildRequires: libtool BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libdrm) >= 2.4.46 BuildRequires: pkgconfig(libudev) BuildRequires: pkgconfig(xfont2) BuildRequires: pkgconfig(xorg-server) >= 1.0.99.901 BuildRequires: pkgconfig(pciaccess) >= 0.10 BuildRequires: pkgconfig(spice-protocol) >= 0.12.0 %if %{with_xspice} BuildRequires: pkgconfig(libcacard) BuildRequires: pkgconfig(libpcsclite) BuildRequires: pkgconfig(spice-server) >= 0.6.3 %endif Requires: Xorg %(xserver-sdk-abi-requires ansic) Requires: Xorg %(xserver-sdk-abi-requires videodrv) Provides: %{oldname} = %{version}-%{release} Obsoletes: %{oldname} < %{version}-%{release} %description XLibre qxl X11 video driver. %if %{with_xspice} %package -n xlibre-server-Xspice Summary: XSpice is an X server that can be accessed by a Spice client Requires: Xorg %(xserver-sdk-abi-requires ansic) Requires: Xorg %(xserver-sdk-abi-requires videodrv) Requires: xlibre-server-Xorg Requires: pcsc-lite-ccid Provides: xorg-x11-server-Xspice = %{version}-%{release} Obsoletes: xorg-x11-server-Xspice < %{version}-%{release} %description -n xlibre-server-Xspice XSpice is both an X and a Spice server. %endif %prep %setup -q -n %{reponame}-%{name}-%{version} %patch -P1 -p1 -b .worst-hack-of-all-time %patch -P2 -p1 -b .Xspice-python3-shebang %build autoreconf -vif %if %{with_xspice} %define enable_xspice --enable-ccid --enable-xspice %endif %configure --disable-static %{?enable_xspice} --with-xorg-module-dir="%{moduledir}" %make_build %install %make_install find %{buildroot} -name "*.la" -delete rm -f %{buildroot}/usr/share/doc/xf86-video-qxl/spiceqxl.xorg.conf.example %if %{with_xspice} mkdir -p %{buildroot}%{_sysconfdir}/X11 install -p -m 644 examples/spiceqxl.xorg.conf.example \ %{buildroot}%{_sysconfdir}/X11/spiceqxl.xorg.conf %endif %files %doc COPYING README.md %{driverdir}/qxl_drv.so %if %{with_xspice} %files -n xlibre-server-Xspice %doc COPYING README.xspice README.md examples/spiceqxl.xorg.conf.example %config(noreplace) %{_sysconfdir}/X11/spiceqxl.xorg.conf %{_bindir}/Xspice %{driverdir}/spiceqxl_drv.so %{_libdir}/pcsc/drivers/serial/libspiceccid.so* %endif %changelog * Thu Aug 14 2025 Kevin Kofler - 0.1.6.1-1 - Switch upstream to the X11Libre GitHub project - Rename package from xorg-x11-drv-qxl to xlibre-xf86-video-qxl - Do not use %%autosetup * Fri Jul 25 2025 Fedora Release Engineering - 0.1.6-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Sun Jan 19 2025 Fedora Release Engineering - 0.1.6-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Mon Sep 30 2024 Simone Caronni - 0.1.6-6 - Clean up SPEC file. - Enable Spice Smart Card support. - Trim changelog. * Fri Sep 27 2024 Sérgio Basto - 0.1.6-5 - Rebuild for rebase of xorg-server to versions 21.1.x * Sat Jul 20 2024 Fedora Release Engineering - 0.1.6-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Sat Jan 27 2024 Fedora Release Engineering - 0.1.6-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sat Jul 22 2023 Fedora Release Engineering - 0.1.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Tue Jan 24 2023 Peter Hutterer - 0.1.6-1 - qxl 0.1.6 * Sat Jan 21 2023 Fedora Release Engineering - 0.1.5-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Wed Jan 11 2023 Olivier Fourdan - 0.1.5-23 - Fix build with recent Xorg (#2047132) * Sat Jul 23 2022 Fedora Release Engineering - 0.1.5-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Sat Jan 22 2022 Fedora Release Engineering - 0.1.5-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild