%global tarball xf86-video-qxl %global moduledir %(pkg-config xorg-server --variable=moduledir ) %global driverdir %{moduledir}/drivers %undefine _hardened_build # Xspice is x86_64 and ARM only since spice-server is x86_64 / ARM only %ifarch x86_64 %{arm} aarch64 %define with_xspice (0%{?fedora} || 0%{?rhel} > 6) %else %define with_xspice 0 %endif Name: xorg-x11-drv-qxl Version: 0.1.5 Release: 201808061259.5.spice.nightly%{?dist} Summary: Xorg X11 qxl video driver Group: User Interface/X Hardware Support License: MIT Source0: xf86-video-qxl-0.1.5.tar.bz2 BuildRequires: pkgconfig BuildRequires: xorg-x11-server-devel >= 1.1.0-1 BuildRequires: spice-protocol >= 0.12.1 BuildRequires: libdrm-devel >= 2.4.46-1 %ifarch x86_64 %{arm} aarch64 BuildRequires: spice-server-devel >= 0.8.0 %endif BuildRequires: glib2-devel BuildRequires: libtool BuildRequires: libudev-devel BuildRequires: libXfont-devel BuildRequires: libXfont2-devel # Do not force specific version of the X server to make the installation easier # Requires: Xorg %(xserver-sdk-abi-requires ansic) # Requires: Xorg %(xserver-sdk-abi-requires videodrv) %description X.Org X11 qxl video driver. %if %{with_xspice} %package -n xorg-x11-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: xorg-x11-server-Xorg Requires: python >= 2.6 %description -n xorg-x11-server-Xspice XSpice is both an X and a Spice server. %endif %prep %setup -q -n xf86-video-qxl-0.1.5 %build autoreconf -ivf %if %{with_xspice} %define enable_xspice --enable-xspice %endif %configure --disable-static %{?enable_xspice} make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT INSTALL='install -p' # FIXME: Remove all libtool archives (*.la) from modules directory. This # should be fixed in upstream Makefile.am or whatever. find $RPM_BUILD_ROOT -regex ".*\.la$" | xargs rm -f -- %ifarch x86_64 %{arm} aarch64 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/X11 install -p -m 644 examples/spiceqxl.xorg.conf.example $RPM_BUILD_ROOT%{_sysconfdir}/X11/spiceqxl.xorg.conf # 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 %if !%{with_xspice} rm -f $RPM_BUILD_ROOT%{_sysconfdir}/X11/spiceqxl.xorg.conf %endif %endif %files %doc COPYING README %{driverdir}/qxl_drv.so %if %{with_xspice} %files -n xorg-x11-server-Xspice %doc COPYING README.xspice README examples/spiceqxl.xorg.conf.example %config(noreplace) %{_sysconfdir}/X11/spiceqxl.xorg.conf %{_bindir}/Xspice %{driverdir}/spiceqxl_drv.so %endif %changelog * Mon Aug 6 2018 SPICE Development Team - 0.1.5-201808061259.5.spice.nightly - Build from git commmit ee8f904ab0d590c741e640e9548c472e6a58b3cc in @spice/nightly copr