From 4960e7e66a154f856101d4a48d6092970b4fcd9a Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 6 Mar 2023 16:57:52 +0100 Subject: [PATCH] Do not build ffmpeg plugins for RHEL --- alsa-plugins.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/alsa-plugins.spec b/alsa-plugins.spec index dee2e0e..99b18c4 100644 --- a/alsa-plugins.spec +++ b/alsa-plugins.spec @@ -1,7 +1,9 @@ %if 0%{?rhel} %bcond_with jack +%bcond_with ffmpeg %else %bcond_without jack +%bcond_without ffmpeg %endif Name: alsa-plugins @@ -136,6 +138,7 @@ License: LGPLv2+ This plugin supports Audio Video Transport Protocol (AVTP) as specified in IEEE 1722-2016 spec. AVTP is part of the Audio/Video Broadcast using TSN. +%if %{with ffmpeg} %package a52 BuildRequires: ffmpeg-free-devel Obsoletes: alsa-plugins-freeworld-a52 <= %{version}-%{release} @@ -155,6 +158,7 @@ License: LGPLv2+ %description lavrate The plugin uses ffmpeg audio resample library to convert audio rates. +%endif %prep %autosetup -n %{name}-%{version}%{?prever} -p1 @@ -305,6 +309,7 @@ find %{buildroot} -name "*.la" -delete %license COPYING COPYING.GPL %{_libdir}/alsa-lib/libasound_module_pcm_aaf.so +%if %{with ffmpeg} %files a52 %license COPYING COPYING.GPL %doc doc/a52.txt @@ -330,6 +335,7 @@ find %{buildroot} -name "*.la" -delete %{_libdir}/alsa-lib/libasound_module_rate_lavrate_faster.so %{_libdir}/alsa-lib/libasound_module_rate_lavrate_high.so %{_libdir}/alsa-lib/libasound_module_rate_lavrate_higher.so +%endif %changelog * Wed Jan 18 2023 Fedora Release Engineering - 1.2.7.1-3