Conditionalize fdk-aac use on F31+

... so we don't accidentally end up enabling this on F30 and creating a
mess with gstreamer1-plugins-bad-nonfree conflicts there.
This commit is contained in:
Kalev Lember 2019-09-23 11:10:55 +02:00
parent b36e670df1
commit 6bf3ad8766

View File

@ -42,7 +42,9 @@ BuildRequires: gobject-introspection-devel >= %{_gobject_introspection}
BuildRequires: bzip2-devel
BuildRequires: exempi-devel
%if 0%{?fedora} >= 31
BuildRequires: fdk-aac-free-devel
%endif
BuildRequires: gsm-devel
BuildRequires: jasper-devel
BuildRequires: ladspa-devel
@ -109,8 +111,10 @@ BuildRequires: zvbi-devel
BuildRequires: OpenEXR-devel
%endif
%if 0%{?fedora} >= 31
# libgstfdkaac.so used to be shipped in -nonfree
Obsoletes: gstreamer1-plugins-bad-nonfree < 1.16.0-3
%endif
%description
GStreamer is a streaming media framework, based on graphs of elements which
@ -317,7 +321,9 @@ find $RPM_BUILD_ROOT -name '*.la' -exec rm -fv {} ';'
%{_libdir}/gstreamer-%{majorminor}/libgstfbdevsink.so
%endif
%if 0%{?fedora} >= 31
%{_libdir}/gstreamer-%{majorminor}/libgstfdkaac.so
%endif
%{_libdir}/gstreamer-%{majorminor}/libgstfestival.so
%{_libdir}/gstreamer-%{majorminor}/libgstfieldanalysis.so
%{_libdir}/gstreamer-%{majorminor}/libgstfreeverb.so