From d044a1e073ae0345fb43f5a36b7c2189d20ffb6a Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Thu, 16 Mar 2023 09:00:03 -0400 Subject: [PATCH] packaging/rpm: Enable FFmpeg support on Fedora 36+ and RHEL 9+ Since Fedora Linux 36, an FFmpeg implementation is provided in the base distribution as "ffmpeg-free". This implementation is sufficient for building FreeRDP with FFmpeg support. This implementation is also available in Fedora Extra Packages for Enterprise Linux (EPEL) for Red Hat Enterprise Linux 9 and derivatives. Thus, enable FFmpeg support when building for those distributions. --- packaging/rpm/freerdp-nightly.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packaging/rpm/freerdp-nightly.spec b/packaging/rpm/freerdp-nightly.spec index 5f1f1effd..98c32a51c 100644 --- a/packaging/rpm/freerdp-nightly.spec +++ b/packaging/rpm/freerdp-nightly.spec @@ -89,6 +89,10 @@ BuildRequires: wayland-devel BuildRequires: libwayland-client-devel %endif +%if 0%{?fedora} >= 36 || 0%{?rhel} >= 9 +BuildRequires: ffmpeg-free-devel +%endif + BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -119,7 +123,7 @@ cp %{_topdir}/SOURCES/source_version freerdp-nightly-%{version}/.source_version -DWITH_CUPS=ON \ -DWITH_PCSC=ON \ -DWITH_JPEG=ON \ -%if %{defined suse_version} +%if 0%{?fedora} >= 36 || 0%{?rhel} >= 9 || 0%{?suse_version} -DWITH_FFMPEG=ON \ -DWITH_DSP_FFMPEG=ON \ %endif