# Conditional build:
%bcond_with glamor Glamor acceleration
%bcond_without sna SandyBridge's New Acceleration (also for older generations)
+%bcond_without dri3 DRI3 support
#
%define libdrm_ver 2.4.41
%define pixman_ver 0.28.0
Summary(pl.UTF-8): Sterownik obrazu X.org dla zintegrowanych układów graficznych Intela
Name: xorg-driver-video-intel
Version: 2.99.917
-Release: 1
+Release: 5
License: MIT
Group: X11/Applications
Source0: http://xorg.freedesktop.org/releases/individual/driver/xf86-video-intel-%{version}.tar.bz2
# Source0-md5: fa196a66e52c0c624fe5d350af7a5e7b
URL: http://xorg.freedesktop.org/
+Patch0: %{name}-xserver_1_8_0.patch
+Patch1: git.patch
BuildRequires: Mesa-libGL-devel
#BuildRequires: autoconf >= 2.63
#BuildRequires: automake >= 1:1.10.2-2
BuildRequires: xorg-lib-libXvMC-devel
BuildRequires: xorg-lib-libpciaccess-devel >= 0.10
BuildRequires: xorg-proto-dri2proto-devel >= 2.6
+%{?with_dri3:BuildRequires: xorg-proto-dri3proto-devel}
BuildRequires: xorg-proto-fontsproto-devel
BuildRequires: xorg-proto-glproto-devel
BuildRequires: xorg-proto-randrproto-devel
%prep
%setup -q -n xf86-video-intel-%{version}
+%patch0 -p1
+%patch1 -p1
%build
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure \
--disable-silent-rules \
%{?with_glamor:--enable-glamor} \
--with-default-accel=%{?with_sna:sna}%{!?with_sna:uxa} \
--enable-uxa \
- --enable-sna%{!?with_sna:=no}
+ --enable-sna%{!?with_sna:=no} \
+ %{__enable_disable dri3}
%{__make}