File libvpl-tools.spec of Package libvpl-tools
#
# spec file for package libvpl-tools
#
# Copyright (c) 2024 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define _lver 1_0_0
Name: libvpl-tools
Version: 1.4.0
Release: 0
Summary: Intel Video Processing Library (Intel VPL) Tools
License: MIT
URL: https://intel.github.io/libvpl
Source0: https://github.com/intel/libvpl-tools/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0: %{name}-use-system-gtest.patch
Patch1: u_gcc15.patch
BuildRequires: cmake
BuildRequires: gcc-c++
BuildRequires: gtest
BuildRequires: pkgconfig
BuildRequires: pkgconfig(libdrm) >= 2.4.91
BuildRequires: pkgconfig(libva) >= 1.2
BuildRequires: pkgconfig(libva-drm) >= 1.2
BuildRequires: pkgconfig(libva-x11) >= 1.10.0
BuildRequires: pkgconfig(pciaccess)
BuildRequires: pkgconfig(vpl) >= 2.11.0
BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(wayland-protocols) >= 1.15
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(x11-xcb)
BuildRequires: pkgconfig(xcb)
BuildRequires: pkgconfig(xcb-dri3)
BuildRequires: pkgconfig(xcb-present)
ExclusiveArch: x86_64
%description
Intel Video Processing Library (Intel VPL) tools provide access to hardware
accelerated video decode, encode, and frame processing capabilities on Intel
GPUs from the command line.
The tools require the Intel VPL base library and a runtime library installed.
Current runtime implementations:
- Intel VPL GPU Runtime for use on Intel Iris Xe graphics and newer
- Intel Media SDK for use on legacy Intel graphics
%package vpl-tools-static
Summary: Static librarys for %{name}
Requires: libcttmetrics%{_lver} = %{version}
Requires: libvpl_wayland%{_lver} = %{version}
%description vpl-tools-static
Package contains static librarys.
%package -n libcttmetrics%{_lver}
Summary: Runtime library for libvpl-tools
%description -n libcttmetrics%{_lver}
Contains runtime library for %{name} (cttmetrics)
%package -n libvpl_wayland%{_lver}
Summary: Runtime library for libvpl-tools
%description -n libvpl_wayland%{_lver}
Contains runtime library for %{name} (vpl_wayland)
%prep
%autosetup -p1
# delete bundled googletest
rm -rf ext/*
%build
%cmake \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=ON \
-DBUILD_TESTS=ON \
-DTOOLS_ENABLE_OPENCL=ON
%cmake_build
%install
%cmake_install
%check
%ctest
%ldconfig_scriptlets -n libcttmetrics%{_lver}
%ldconfig_scriptlets -n libvpl_wayland%{_lver}
%files
%license LICENSE
%doc README.md third-party-programs.txt
%{_bindir}/system_analyzer
%{_bindir}/val-surface-sharing
%{_bindir}/vpl-import-export
%{_bindir}/vpl-inspect
%{_bindir}/sample_decode
%{_bindir}/sample_vpp
%{_bindir}/sample_encode
%{_bindir}/sample_multi_transcode
%{_bindir}/metrics_monitor
%files vpl-tools-static
%{_libdir}/libcttmetrics.so
%{_libdir}/vpl-tools/libvpl_wayland.so
%files -n libcttmetrics%{_lver}
%{_libdir}/libcttmetrics.so.*
%files -n libvpl_wayland%{_lver}
%dir %{_libdir}/vpl-tools
%{_libdir}/vpl-tools/libvpl_wayland.so.*
%changelog