From fa6957091f63420c19b7dd0dfca34c46b012ee5d Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Mon, 29 Sep 2025 15:26:17 +0200 Subject: [PATCH] Exclude lc3 on RHEL --- ffmpeg.spec | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ffmpeg.spec b/ffmpeg.spec index 7118f4f..e7e9061 100644 --- a/ffmpeg.spec +++ b/ffmpeg.spec @@ -37,11 +37,13 @@ # Disable dependencies not available or wanted on RHEL/EPEL %bcond chromaprint 0 %bcond flite 0 +%bcond lc3 0 %else # Break chromaprint dependency cycle (Fedora-only): # ffmpeg (libavcodec-free) → chromaprint → ffmpeg %bcond chromaprint %{?_with_bootstrap:0}%{!?_with_bootstrap:1} %bcond flite 1 +%bcond lc3 1 %endif %if 0%{?rhel} && 0%{?rhel} <= 9 @@ -164,7 +166,9 @@ BuildRequires: pkgconfig(gnutls) BuildRequires: pkgconfig(harfbuzz) BuildRequires: pkgconfig(libilbc) BuildRequires: pkgconfig(jack) -BuildRequires: pkgconfig(lc3) +%if %{with lc3} +BuildRequires: pkgconfig(lc3) >= 1.1.0 +%endif %if %{with lcms2} BuildRequires: pkgconfig(lcms2) >= 2.13 %endif @@ -629,7 +633,9 @@ cp -a doc/examples/{*.c,Makefile,README} _doc/examples/ --enable-libklvanc \ --disable-liblensfun \ --disable-liblcevc-dec \ +%if %{with lc3} --enable-liblc3 \ +%endif --enable-libmodplug \ --enable-libmp3lame \ --enable-libmysofa \