From 33d2a269dc7970c27372dc6a85e2a1ee951d4b82 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Mon, 24 Apr 2023 13:50:47 -0400 Subject: [PATCH] Disable ffmpeg by default in RHEL builds The ffmpeg plugin can be built separately as an EPEL-specific package. --- qt6-qtmultimedia.spec | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qt6-qtmultimedia.spec b/qt6-qtmultimedia.spec index 36bfe5f..d085f3b 100644 --- a/qt6-qtmultimedia.spec +++ b/qt6-qtmultimedia.spec @@ -8,6 +8,12 @@ %global gst 1.0 %endif +%if 0%{?rhel} && ! 0%{?epel} +%bcond_with ffmpeg +%else +%bcond_without ffmpeg +%endif + #global unstable 1 %if 0%{?unstable} %global prerelease rc2 @@ -55,12 +61,15 @@ BuildRequires: pkgconfig(gstreamer-pbutils-%{gst}) BuildRequires: pkgconfig(gstreamer-plugins-bad-%{gst}) BuildRequires: pkgconfig(gstreamer-video-%{gst}) BuildRequires: pkgconfig(libpulse) pkgconfig(libpulse-mainloop-glib) +%if %{with ffmpeg} BuildRequires: ffmpeg-free-devel BuildRequires: libavcodec-free-devel BuildRequires: libavutil-free-devel BuildRequires: libavformat-free-devel BuildRequires: libswscale-free-devel BuildRequires: libswresample-free-devel +BuildRequires: pkgconfig(libva) pkgconfig(libva-drm) +%endif %if 0%{?openal} BuildRequires: pkgconfig(openal) %endif @@ -135,7 +144,9 @@ popd %{_qt6_archdatadir}/qml/QtMultimedia/ %dir %{_qt6_plugindir}/multimedia %{_qt6_plugindir}/multimedia/libgstreamermediaplugin.so +%if %{with ffmpeg} %{_qt6_plugindir}/multimedia/libffmpegmediaplugin.so +%endif %files devel %{_qt6_headerdir}/QtMultimedia/