From a38892833e20f6ca8d6378ad139c58e07c9f0d33 Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Wed, 2 Oct 2024 04:56:28 -0400 Subject: [PATCH] Fix chromaprint bcond --- ffmpeg.spec | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/ffmpeg.spec b/ffmpeg.spec index 872a489..fe44857 100644 --- a/ffmpeg.spec +++ b/ffmpeg.spec @@ -2,9 +2,6 @@ %bcond upstream_tarball 0 %bcond all_codecs 0 -# Break dependency cycles by disabling certain optional dependencies. -%bcond bootstrap 0 - # If you want to do a build with the upstream source tarball, then set the # pkg_suffix to %%nil. We can't handle this with a conditional, as srpm # generation would not take it into account. @@ -32,11 +29,16 @@ %endif %if 0%{?rhel} -# Disable dependencies not offered in RHEL/EPEL +# Disable dependencies not available or wanted on RHEL/EPEL +%bcond chromaprint 0 %else +# Break chromaprint dependency cycle (Fedora-only): +# ffmpeg (libavcodec-free) → chromaprint → ffmpeg +%bcond chromaprint %{?_with_bootstrap:0}%{!?_with_bootstrap:1} +%endif -# Disable some features because RHEL 9 packages are too old %if 0%{?rhel} && 0%{?rhel} <= 9 +# Disable some features because RHEL 9 packages are too old %bcond flite 0 %bcond lcms2 0 %bcond placebo 0 @@ -46,17 +48,6 @@ %bcond placebo 1 %endif -%endif - -# Break chromaprint dependency cycle (Fedora-only): -# ffmpeg (libavcodec-free) → chromaprint → ffmpeg -%if %{with bootstrap} -%bcond chromaprint 0 -%else -%bcond chromaprint 1 -%endif - - %if %{with all_codecs} %bcond evc 1 %bcond rtmp 1 @@ -88,7 +79,7 @@ Name: ffmpeg %global pkg_name %{name}%{?pkg_suffix} Version: 7.0.2 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A complete solution to record, convert and stream audio and video License: GPL-3.0-or-later URL: https://ffmpeg.org/ @@ -860,6 +851,9 @@ rm -rf %{buildroot}%{_datadir}/%{name}/examples %{_mandir}/man3/libswscale.3* %changelog +* Wed Oct 02 2024 Neal Gompa - 7.0.2-4 +- Fix chromaprint bcond + * Wed Sep 25 2024 Michel Lind - 7.0.2-3 - Disable omxil completely, it's now retired - Rebuild for tesseract-5.4.1-3 (soversion change from 5.4.1 to just 5.4)