File gstreamer-plugins-vaapi.spec of Package gstreamer-plugins-vaapi

# spec file for package gstreamer-plugins-vaapi
# Copyright (c) 2018 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 gst_branch 1.0

Name:           gstreamer-plugins-vaapi
Version:        1.12.5
Release:        0
Summary:        Gstreamer VA-API plugins
License:        LGPL-2.1-or-later
Group:          Productivity/Multimedia/Other
# PATCH-FIX-UPSTREAM gst-vaapi-wayland-dont-poll-no-pending-frames.patch bgo#795224 -- wayland: don't poll if there are no pending frames
Patch0:         gst-vaapi-wayland-dont-poll-no-pending-frames.patch
# PATCH-FIX-UPSTREAM gst-vaapi-egl-mark-context-wrapped.patch bgo#795391 -- libs: egl: utils: mark context as wrapped when it is
Patch1:         gst-vaapi-egl-mark-context-wrapped.patch
# PATCH-FIX-UPSTREAM gst-vaapi-add-zero-as-valid-value.patch bgo#793829 -- libs: encoder: add zero as valid value for periodic keyframe.
Patch2:         gst-vaapi-add-zero-as-valid-value.patch

BuildRequires:  Mesa-devel
BuildRequires:  Mesa-libGLESv3-devel
BuildRequires:  gtk-doc
BuildRequires:  pkgconfig
BuildRequires:  vaapi-wayland-tools
BuildRequires:  yasm
BuildRequires:  pkgconfig(egl)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(gstreamer-1.0) >= 1.12.0
BuildRequires:  pkgconfig(gstreamer-codecparsers-1.0) >= 1.12.0
BuildRequires:  pkgconfig(gstreamer-plugins-bad-1.0) >= 1.12.0
BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0) >= 1.12.0
BuildRequires:  pkgconfig(libdrm)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(libva) >= 0.30.4
BuildRequires:  pkgconfig(libva-drm) >= 0.33.0
BuildRequires:  pkgconfig(libva-glx)
BuildRequires:  pkgconfig(libva-wayland)
BuildRequires:  pkgconfig(libva-x11)
BuildRequires:  pkgconfig(vpx)
BuildRequires:  pkgconfig(wayland-client) >= 1.0.2
BuildRequires:  pkgconfig(wayland-cursor)
BuildRequires:  pkgconfig(wayland-egl)
BuildRequires:  pkgconfig(wayland-scanner)
BuildRequires:  pkgconfig(wayland-server)
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(xrender)
ExclusiveArch:  %{ix86} x86_64

gstreamer-vaapi is a collection of GStreamer plugins and helper libraries that allow hardware accelerated video decoding through VA-API.

%package doc
Summary:        Documentation for gstreamer-plugins-vaapi
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description doc
This package contains documentation for gstreamer-plugins-vaapi.

%autosetup -n gstreamer-vaapi-%{version} -p1

%configure \
	--disable-static \
	--enable-egl \
	--enable-encoders \
	--enable-drm \
	--enable-glx \
	--enable-wayland \
	--enable-x11 \
make %{?_smp_mflags}

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

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

%license COPYING.LIB

%files doc

openSUSE Build Service is sponsored by