commit 4aec616376dea1cf6f351d923fa1ed0939dce620
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Sun Aug 7 23:19:17 2022 +0200
Apply ffmpeg workaround only for F37+.
obs-studio.spec | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/obs-studio.spec b/obs-studio.spec
index d1a7f9e..7518703 100644
--- a/obs-studio.spec
+++ b/obs-studio.spec
@@ -99,7 +99,9 @@ sed -i 's|OBS_MULTIARCH_SUFFIX|LIB_SUFFIX|g'
cmake/Modules/ObsHelpers.cmake
tar -xf %{SOURCE1} -C plugins/obs-vst --strip-components=1
# Fix ffmpeg 5.1 FTBFS
+%if 0%{?fedora} && 0%{?fedora} >= 37
sed -e 's/-Werror-implicit-function-declaration//g' -i CMakeLists.txt
+%endif
%build
%cmake -DOBS_VERSION_OVERRIDE=%{version} \