mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-03 18:32:18 +00:00
b81a95d71e
* feat: Split NVIDIA into current and legacy branches (#8402)
* feat: Split NVIDIA into current and legacy branches
* cleanup: Module variant no longer applicable
* fix: Some sources and anda.hcl files I missed
* fix: More
* chore: Bump release on packages that had changed dependencies
* chore: Bump release on all non-legacy packages
* fix: Oops
* More cleanup for kernel/kernel open changes
* cleanup: Weird line
* fix: Missed that
(cherry picked from commit 853f4a5829)
Signed-off-by: GildedRoach <GildedRoach@users.noreply.github.com>
* fix: Yeet i386
---------
Signed-off-by: GildedRoach <GildedRoach@users.noreply.github.com>
77 lines
2.0 KiB
RPMSpec
77 lines
2.0 KiB
RPMSpec
%global commit0 2e204c67d4401292905f6afb4832a7e7df9ce53a
|
|
%global date 20251125
|
|
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
|
|
|
|
%global upstream_name nvidia-vaapi-driver
|
|
|
|
%ifarch %ix86
|
|
%global build_cflags %{__build_flags_lang_c} %{?_distro_extra_cflags} -Wno-error=format=
|
|
%endif
|
|
|
|
Name: libva-nvidia-driver
|
|
Epoch: 1
|
|
Version: 0.0.14%{!?tag:^%{date}git%{shortcommit0}}
|
|
Release: 2%?dist
|
|
Summary: VA-API user mode driver for Nvidia GPUs
|
|
License: MIT
|
|
URL: https://github.com/elFarto/%{upstream_name}
|
|
|
|
%if "%{?shortcommit0}"
|
|
Source0: %{url}/archive/%{commit0}/%{upstream_name}-%{commit0}.tar.gz#/%{upstream_name}-%{shortcommit0}.tar.gz
|
|
%else
|
|
Source0: %{url}/archive/v%{version}/%{upstream_name}-%{version}.tar.gz
|
|
%endif
|
|
|
|
BuildRequires: gcc
|
|
BuildRequires: meson >= 0.58.0
|
|
BuildRequires: pkgconfig(egl)
|
|
BuildRequires: pkgconfig(ffnvcodec) >= 11.1.5.1
|
|
%if 0%{?fedora} || 0%{?rhel} >= 9
|
|
BuildRequires: pkgconfig(gstreamer-codecparsers-1.0)
|
|
%endif
|
|
BuildRequires: pkgconfig(libdrm) >= 2.4.60
|
|
BuildRequires: pkgconfig(libva) >= 1.8.0
|
|
|
|
Conflicts: libva-vdpau-driver%{?_isa}
|
|
Obsoletes: %{upstream_name} < 0.0.10-3
|
|
Provides: %{upstream_name} = %{version}-%{release}
|
|
# Alternative name that better describes the API involved
|
|
Provides: nvdec-vaapi-driver = %{version}-%{release}
|
|
|
|
Requires: mesa-filesystem
|
|
%if 0%{?fedora}
|
|
%ifarch x86_64
|
|
Requires: (%{name}(x86-32) = %{?epoch:%{epoch}:}%{version}-%{release} if steam(x86-32))
|
|
%endif
|
|
%endif
|
|
|
|
%description
|
|
This is a 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
|
|
%if "%{?shortcommit0}"
|
|
%autosetup -p1 -n %{upstream_name}-%{commit0}
|
|
%else
|
|
%autosetup -p1 -n %{upstream_name}-%{version}
|
|
%endif
|
|
|
|
%build
|
|
%meson
|
|
%meson_build
|
|
|
|
%install
|
|
%meson_install
|
|
|
|
%check
|
|
%meson_test
|
|
|
|
%files
|
|
%license COPYING
|
|
%doc README.md
|
|
%{_libdir}/dri/nvidia_drv_video.so
|
|
|
|
%changelog
|
|
%autochangelog
|