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

#
# spec file for package vaapi-intel-driver
#
# Copyright (c) 2017 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 srcname intel-vaapi-driver

Name:           vaapi-intel-driver
Version:        1.7.3
Release:        0
Summary:        Intel Driver for Video Acceleration (VA) API for Linux
License:        MIT and EPL-1.0
Group:          System/Libraries
Url:            https://github.com/01org/intel-vaapi-driver
Source0:        https://github.com/01org/intel-vaapi-driver/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
Source1:        baselibs.conf
Patch1:         u_wayland-includes.diff
# Intel graphics hardware only available on these platforms
ExclusiveArch:  %ix86 x86_64
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  xz
BuildRequires:  pkgconfig(egl)
BuildRequires:  pkgconfig(libdrm) >= 2.4.45
BuildRequires:  pkgconfig(libdrm_intel)
BuildRequires:  pkgconfig(libva-x11) >= 0.39.4

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

%prep
%setup -q -n %{srcname}-%{version}
%patch -P 1 -p1

%build
autoreconf -fi
%configure \
    --disable-silent-rules \
%if 0%{?suse_version} <= 1315 && !0%{?is_opensuse}
    --disable-wayland \
%endif
    --disable-static
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot}

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

%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