%define upname xf86-video-nouveau %define snapshot %{nil} %define _disable_ld_no_undefined 1 Summary: Accelerated open source driver for NVIDIA cards Name: x11-driver-video-nouveau Version: 1.0.18.4 %if "%snapshot" == "" Release: 2 # Use maintainded Xlibre version instead of deprecated freedesktop Source0: https://github.com/X11Libre/xf86-video-nouveau/archive/xlibre-xf86-video-nouveau-%{version}.tar.gz #Source0: https://xorg.freedesktop.org/archive/individual/driver/%{upname}-%{version}.tar.xz %else Release: 0.%snapshot.1 # rm -rf xf86-video-nouveau && git clone git://anongit.freedesktop.org/git/nouveau/xf86-video-nouveau/ && cd xf86-video-nouveau/ # git archive --prefix=xf86-video-nouveau-$(date +%Y%m%d)/ --format=tar HEAD | xz > ../xf86-video-nouveau-$(date +%Y%m%d).tar.xz Source0: %{upname}-%{snapshot}.tar.xz %endif Group: System/X11 License: MIT URL: https://nouveau.freedesktop.org/ BuildRequires: pkgconfig(libdrm) >= 2.4.35 BuildRequires: x11-proto-devel >= 1.0.0 BuildRequires: pkgconfig(xorg-server) >= 1.19 BuildRequires: x11-util-macros >= 1.0.1 BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(udev) >= 186 BuildRequires: libdrm-common BuildRequires: autoconf BuildRequires: automake BuildSystem: autotools Requires: udev Conflicts: xorg-x11-server < 7.0 # No DKMS package for now; nouveau module is in main kernel. # If needed, DKMS package may be resurrected, but work is needed to make it # build with the new linux-2.6 tree of nouveau. Obsoletes: dkms-nouveau < 0.0.13-0.20090600 Requires: kmod(nouveau) Requires: x11-server-common %(xserver-sdk-abi-requires videodrv) # No firmware needed: Obsoletes: nouveau-firmware < 20091212-2 # (tpg) these are needed to get vdpau works out of box Requires: %{_lib}dri-drivers %description The nouveau project aims to build high-quality, open source drivers for NVIDIA cards. %prep -a autoreconf -fiv %files %{_libdir}/xorg/modules/xlibre-*.*/drivers/nouveau_drv.so %doc %{_mandir}/man4/nouveau*