LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File xf86-video-intel.spec of Package xf86-video-intel (Project home:tiwai:media-sdk:full)

#
# 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 http://bugs.opensuse.org/
#


%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
Url:            http://x.org/wiki/IntelGraphicsDriver/

#Git-Clone:	git://anongit.freedesktop.org/xorg/driver/xf86-video-intel
#Git-Web:	http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/
# http://xorg.freedesktop.org/releases/individual/driver/
Source0:        %{name}-%{version}.tar.bz2
Source99:       baselibs.conf

%if %glamor
Requires:       glamor
%endif
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) >= 1.0.99.901
BuildRequires:  pkgconfig(xproto)
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(xrender)
BuildRequires:  pkgconfig(xtst)
BuildRequires:  pkgconfig(xvmc)
%if %glamor
BuildRequires:  pkgconfig(glamor)
%endif
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

%x11_abi_videodrv_req

%description
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.

%prep
%setup -q

%build
###	--enable-dri3 \

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

%install

%make_install

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

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%if %{backlighthelper}
%defattr(-,polkitd,polkitd)
%dir %{_datadir}/polkit-1
%dir %{_datadir}/polkit-1/actions
%endif

%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README
%ifarch %{ix86}
%{_libdir}/libI810XvMC.so*
%endif
%{_libdir}/libIntelXvMC.so*
%dir %{_libdir}/xorg/modules/drivers
%{_libdir}/xorg/modules/drivers/intel_drv.so
%{_bindir}/intel-virtual-output

%{_datadir}/man/man4/intel.4%{?ext_man}
%{_datadir}/man/man4/intel-virtual-output.4%{?ext_man}

%if %{backlighthelper}
%_libexecdir/xf86-video-intel-backlight-helper
%{_datadir}/polkit-1/actions/org.x.xf86-video-intel.backlight-helper.policy
%endif

%changelog