File nvidia-vaapi-driver.spec of Package nvidia-vaapi-driver
#
# spec file for package nvidia-vaapi-driver
#
# Copyright (c) 2023 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/
#
Name: nvidia-vaapi-driver
Version: 0.0.13
Release: 0
Summary: A VA-API implemention using NVIDIA's NVDEC
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
License: MIT
URL: https://github.com/elFarto/nvidia-vaapi-driver
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1: nvidia-vaapi-driver.sh
BuildRequires: meson
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(libva)
BuildRequires: pkgconfig(ffnvcodec)
BuildRequires: pkgconfig(gstreamer-codecparsers-1.0)
Conflicts: libva-vdpau-driver
%description
This is an VA-API implementation that uses NVDEC as a backend.
This implementation is specifically designed to be used by Firefox for accelerated decode of web content,
and may not operate correctly in other applications.
%prep
%autosetup
%build
%meson
%meson_build
%install
%meson_install
install -Dm644 %{SOURCE1} -t %{buildroot}%{_sysconfdir}/profile.d
%files
%license COPYING
%doc README.md
%config %{_sysconfdir}/profile.d/nvidia-vaapi-driver.sh
%dir %{_libdir}/dri/
%{_libdir}/dri/nvidia_drv_video.so
%changelog