]> git.pld-linux.org Git - packages/qt5-qtwebengine.git/commitdiff
apply ffmpeg 5 patches only when building with ffmpeg >= 5
authorJan Palus <atler@pld-linux.org>
Fri, 22 Dec 2023 20:17:27 +0000 (21:17 +0100)
committerJan Palus <atler@pld-linux.org>
Fri, 22 Dec 2023 20:17:27 +0000 (21:17 +0100)
they break build against ffmpeg 4

qt5-qtwebengine.spec

index 45979900f4e1de4678dc3b2d114159d45b832c7e..ace947793c73a955cc1f7256454d77b11ad84e45 100644 (file)
@@ -122,6 +122,8 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                qt5bindir       %(qtpaths-qt5 --binaries-dir)
 
+%define                ffmpeg_ver      %(rpm -q --qf=%%{V} ffmpeg-devel)
+
 %description
 Qt is a cross-platform application and UI framework. Using Qt, you can
 write web-enabled applications once and deploy them across desktop,
@@ -285,10 +287,12 @@ PrzykĹ‚ady do biblioteki Qt5 WebEngine.
 %endif
 %patch1 -p1
 %patch2 -p1
-%patch3 -p1 -d src/3rdparty
 %patch4 -p1 -d src/3rdparty
 %patch5 -p1 -d src/3rdparty/chromium
+%if %{_ver_ge "%ffmpeg_ver" "5"}
+%patch3 -p1 -d src/3rdparty
 %patch6 -p1 -d src/3rdparty/chromium
+%endif
 
 %{qt5bindir}/syncqt.pl -version %{version}
 
This page took 0.077379 seconds and 4 git commands to generate.