File libva-utils.spec of Package libva-utils
#
# spec file for package libva-utils
#
# 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/
#
Name: libva-utils
Version: 2.0.0
Release: 0
Summary: A collection of utilities and examples to exercise VA-API
License: MIT AND EPL-1.0
Group: Development/Tools/Other
Url: https://github.com/01org/libva-utils
Source0: https://github.com/01org/libva-utils/releases/download/%{version}/%{name}-%{version}.tar.bz2
Source1: https://github.com/01org/libva-utils/releases/download/%{version}/%{name}-%{version}.tar.bz2.sha1sum
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libdrm) >= 2.4
BuildRequires: pkgconfig(libva) >= 1.0.0
BuildRequires: pkgconfig(libva-drm)
BuildRequires: pkgconfig(libva-wayland)
BuildRequires: pkgconfig(libva-x11) >= 0.39.4
BuildRequires: pkgconfig(wayland-client) >= 1.11.0
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
Provides: vaapi-tools = %{version}
Obsoletes: vaapi-tools < %{version}
Provides: vaapi-wayland-tools = %{version}
Obsoletes: vaapi-wayland-tools < %{version}
%description
libva-utils is a collection of utilities and examples to exercise VA-API in accordance with the libva project. --enable-tests (default = no) provides a suite of unit-tests based on Google Test Framework. A driver implementation is necessary to properly operate.
%prep
%setup -q -n %{name}-%{version}
%build
%configure \
--enable-drm \
--enable-wayland \
--enable-x11 \
%{nil}
make %{?_smp_mflags}
%install
make install DESTDIR=%{buildroot}
%files
%doc COPYING NEWS
%{_bindir}/avcenc
%{_bindir}/h264encode
%{_bindir}/jpegenc
%{_bindir}/loadjpeg
%{_bindir}/mpeg2vaenc
%{_bindir}/mpeg2vldemo
%{_bindir}/putsurface
%{_bindir}/putsurface_wayland
%{_bindir}/vainfo
%{_bindir}/vavpp
%{_bindir}/vp9enc
%changelog