File vaapi-intel-driver.spec of Package vaapi-intel-driver

#
# spec file for package vaapi-intel-driver
#
# Copyright (c) 2013 SUSE LINUX Products 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 srcname libva-intel-driver

Name:           vaapi-intel-driver
Version:        1.2.0
Release:        0
Summary:        Intel Driver for Video Acceleration (VA) API for Linux
License:        MIT and EPL-1.0
Group:          System/Libraries
Url:            http://freedesktop.org/wiki/Software/vaapi
Source0:        http://www.freedesktop.org/software/vaapi/releases/%{srcname}/%{srcname}-%{version}.tar.bz2
# Intel graphics hardware only available on these platforms
ExclusiveArch:  %ix86 x86_64
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  xz
BuildRequires:  pkgconfig(libdrm) >= 2.4.45
BuildRequires:  pkgconfig(libdrm_intel)
BuildRequires:  pkgconfig(libva-x11) >= 0.34.0

%description
Intel Driver for Libva is a library providing the VA API video acceleration API.

%prep
%setup -q -n %{srcname}-%{version}

%build
autoreconf -fiv
%configure --disable-silent-rules --disable-static --with-pic
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot}

find %{buildroot} -name "*.la" -delete

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%dir %{_libdir}/dri
%{_libdir}/dri/i965_drv_video.so

%changelog
openSUSE Build Service is sponsored by