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

# spec file for package xf86-video-intel
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

%define glamor 0
%define backlighthelper 0

Name:           xf86-video-intel
Version:        2.99.917
Release:        0
Summary:        Intel video driver for the Xorg X server
License:        MIT
Group:          System/X11/Servers/XF86_4

#Git-Clone:	git://
Source0:        %{name}-%{version}.tar.bz2
Source99:       baselibs.conf

%if %glamor
Requires:       glamor
Recommends:     vaapi-intel-driver
Recommends:     intel-gpu-tools
BuildRequires:  Mesa-libGL-devel
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(dri2proto) >= 2.6
BuildRequires:  pkgconfig(fontsproto)
BuildRequires:  pkgconfig(libdrm) >= 2.4.24
BuildRequires:  pkgconfig(libdrm_intel) >= 2.4.29
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(pciaccess) >= 0.10
BuildRequires:  pkgconfig(pixman-1)
BuildRequires:  pkgconfig(randrproto)
BuildRequires:  pkgconfig(renderproto)
BuildRequires:  pkgconfig(valgrind)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(x11-xcb)
BuildRequires:  pkgconfig(xcb-aux)
BuildRequires:  pkgconfig(xcb-dri2)
BuildRequires:  pkgconfig(xcursor)
BuildRequires:  pkgconfig(xdamage)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xextproto)
BuildRequires:  pkgconfig(xf86driproto)
BuildRequires:  pkgconfig(xfixes)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  pkgconfig(xorg-macros) >= 1.8
BuildRequires:  pkgconfig(xorg-server) >=
BuildRequires:  pkgconfig(xproto)
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(xrender)
BuildRequires:  pkgconfig(xtst)
BuildRequires:  pkgconfig(xvmc)
%if %glamor
BuildRequires:  pkgconfig(glamor)
Supplements:    modalias(xorg-x11-server:pci:v00008086d*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
Provides:       intel-i810-xorg-x11 = %{version}
Obsoletes:      intel-i810-xorg-x11 < %{version}
Provides:       xorg-x11-driver-video-intel = %{version}
Obsoletes:      xorg-x11-driver-video-intel < %{version}
# No Provides, as we technically don't provide the binaries
Obsoletes:      855resolution
Obsoletes:      915resolution
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
ExclusiveArch:  %ix86 x86_64


intel is an Xorg driver for Intel integrated video cards.

The driver supports depths 8, 15, 16 and 24. All visual types are
supported in depth 8. For the i810/i815 other depths support the
TrueColor and DirectColor visuals. For the i830M and later, only the
TrueColor visual is supported for depths greater than 8. The driver
supports hardware accelerated 3D via the Direct Rendering Infrastructure
(DRI), but only in depth 16 for the i810/i815 and depths 16 and 24 for
the 830M and later.

%setup -q

###	--enable-dri3 \

autoreconf -fi
%configure \
%if %{backlighthelper}
	--enable-backlight-helper \
	--disable-backlight-helper \
%ifnarch %{ix86}
	--enable-kms-only \
%if %glamor
	--enable-glamor \
make %{?_smp_mflags}



find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%if %{backlighthelper}
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions

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


%if %{backlighthelper}