From 15dcd56ae3251bab8e0c643c91d1c3d5af6a7510 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Mon, 11 Sep 2023 16:57:21 -0400 Subject: [PATCH] Disable VPL/QSV plugin on non-x86_64 --- obs-studio.spec | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/obs-studio.spec b/obs-studio.spec index 9a0437b..6fad5bd 100644 --- a/obs-studio.spec +++ b/obs-studio.spec @@ -5,6 +5,13 @@ %bcond_without lua_scripting %endif +%ifarch x86_64 +# VPL/QSV is only available on x86_64 +%bcond_without vpl +%else +%bcond_with vpl +%endif + # VLC is not yet in Fedora %bcond_with vlc # x264 is not in Fedora @@ -93,7 +100,9 @@ BuildRequires: libxkbcommon-devel BuildRequires: luajit-devel %endif BuildRequires: mbedtls-devel +%if %{with vpl} BuildRequires: oneVPL-devel +%endif BuildRequires: pciutils-devel BuildRequires: pipewire-devel BuildRequires: pipewire-jack-audio-connection-kit-devel @@ -201,6 +210,12 @@ mv plugins/obs-x264/CMakeLists.txt plugins/obs-x264/CMakeLists.txt.disabled touch plugins/obs-x264/CMakeLists.txt %endif +%if ! %{with vpl} +# disable unusable qsv plugin +mv plugins/obs-qsv11/CMakeLists.txt plugins/obs-qsv11/CMakeLists.txt.disabled +touch plugins/obs-qsv11/CMakeLists.txt +%endif + # remove -Werror flag to mitigate FTBFS with ffmpeg 5.1 sed -e 's|-Werror-implicit-function-declaration||g' -i cmake/Modules/CompilerConfig.cmake sed -e '/-Werror/d' -i cmake/Modules/CompilerConfig.cmake