Do not build ffmpeg plugins for RHEL

This commit is contained in:
Jaroslav Kysela 2023-03-06 16:57:52 +01:00
parent 113c4a7a2a
commit 4960e7e66a

View File

@ -1,7 +1,9 @@
%if 0%{?rhel} %if 0%{?rhel}
%bcond_with jack %bcond_with jack
%bcond_with ffmpeg
%else %else
%bcond_without jack %bcond_without jack
%bcond_without ffmpeg
%endif %endif
Name: alsa-plugins Name: alsa-plugins
@ -136,6 +138,7 @@ License: LGPLv2+
This plugin supports Audio Video Transport Protocol (AVTP) as specified in 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. IEEE 1722-2016 spec. AVTP is part of the Audio/Video Broadcast using TSN.
%if %{with ffmpeg}
%package a52 %package a52
BuildRequires: ffmpeg-free-devel BuildRequires: ffmpeg-free-devel
Obsoletes: alsa-plugins-freeworld-a52 <= %{version}-%{release} Obsoletes: alsa-plugins-freeworld-a52 <= %{version}-%{release}
@ -155,6 +158,7 @@ License: LGPLv2+
%description lavrate %description lavrate
The plugin uses ffmpeg audio resample library to convert audio rates. The plugin uses ffmpeg audio resample library to convert audio rates.
%endif
%prep %prep
%autosetup -n %{name}-%{version}%{?prever} -p1 %autosetup -n %{name}-%{version}%{?prever} -p1
@ -305,6 +309,7 @@ find %{buildroot} -name "*.la" -delete
%license COPYING COPYING.GPL %license COPYING COPYING.GPL
%{_libdir}/alsa-lib/libasound_module_pcm_aaf.so %{_libdir}/alsa-lib/libasound_module_pcm_aaf.so
%if %{with ffmpeg}
%files a52 %files a52
%license COPYING COPYING.GPL %license COPYING COPYING.GPL
%doc doc/a52.txt %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_faster.so
%{_libdir}/alsa-lib/libasound_module_rate_lavrate_high.so %{_libdir}/alsa-lib/libasound_module_rate_lavrate_high.so
%{_libdir}/alsa-lib/libasound_module_rate_lavrate_higher.so %{_libdir}/alsa-lib/libasound_module_rate_lavrate_higher.so
%endif
%changelog %changelog
* Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.7.1-3 * Wed Jan 18 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.7.1-3