Drop dependencies not available or too only on EL8

This commit is contained in:
Orion Poplawski 2024-05-16 21:14:21 -06:00
commit f739ae5124

View file

@ -18,20 +18,50 @@
%endif
%ifarch x86_64
%if 0%{?el8}
%bcond_with svtav1
%bcond_with mfx
%bcond_with vmaf
%else
%bcond_without svtav1
%bcond_without mfx
%bcond_without vmaf
%endif
%else
%bcond_with svtav1
%bcond_with mfx
%bcond_with vmaf
%endif
%if 0%{?el8}
%bcond_with bluray
%bcond_with fdk-aac
%bcond_with lilv
%bcond_with opencore
%bcond_with rav1e
%bcond_with rist
%bcond_with shaderc
%bcond_with vo-amrwbenc
%else
%bcond_without bluray
%bcond_without fdk-aac
%bcond_without lilv
%bcond_without opencore
%bcond_without rav1e
%bcond_without rist
%bcond_without shaderc
%bcond_without vo-amrwbenc
%endif
%if 0%{?el8}
%bcond_with dc1394
%else
%ifarch s390 s390x
%bcond_with dc1394
%else
%bcond_without dc1394
%endif
%endif
%if 0%{?rhel}
# Disable dependencies not offered in RHEL/EPEL
@ -151,7 +181,9 @@ Requires: libswresample%{?pkg_suffix}%{_isa} = %{version}-%{release}
Requires: libswscale%{?pkg_suffix}%{_isa} = %{version}-%{release}
BuildRequires: AMF-devel
%if %{with fdk-aac}
BuildRequires: fdk-aac-free-devel
%endif
%if %{with flite}
BuildRequires: flite-devel >= 2.2
%endif
@ -193,7 +225,9 @@ BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(lcms2) >= 2.13
%endif
BuildRequires: pkgconfig(libass)
%if %{with bluray}
BuildRequires: pkgconfig(libbluray)
%endif
BuildRequires: pkgconfig(libbs2b)
BuildRequires: pkgconfig(libcdio)
BuildRequires: pkgconfig(libcdio_paranoia)
@ -213,7 +247,9 @@ BuildRequires: pkgconfig(libplacebo) >= 4.192.0
%endif
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(librabbitmq)
%if %{with rist}
BuildRequires: pkgconfig(librist)
%endif
BuildRequires: pkgconfig(librsvg-2.0)
BuildRequires: pkgconfig(libssh)
BuildRequires: pkgconfig(libv4l2)
@ -223,19 +259,27 @@ BuildRequires: pkgconfig(libva-x11)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(libzmq)
%if %{with lilv}
BuildRequires: pkgconfig(lilv-0)
%endif
BuildRequires: pkgconfig(lv2)
BuildRequires: pkgconfig(netcdf)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(openal)
%if %{with opencore-amrnb}
BuildRequires: pkgconfig(opencore-amrnb)
%endif
BuildRequires: pkgconfig(OpenCL)
BuildRequires: pkgconfig(opus)
%if %{with rav1e}
BuildRequires: pkgconfig(rav1e)
%endif
BuildRequires: pkgconfig(rubberband)
BuildRequires: pkgconfig(schroedinger-1.0)
BuildRequires: pkgconfig(sdl2)
%if %{with shaderc}
BuildRequires: pkgconfig(shaderc) >= 2019.1
%endif
BuildRequires: pkgconfig(smbclient)
BuildRequires: pkgconfig(snappy)
BuildRequires: pkgconfig(soxr)
@ -248,7 +292,9 @@ BuildRequires: pkgconfig(vapoursynth)
BuildRequires: pkgconfig(vdpau)
BuildRequires: pkgconfig(vidstab)
BuildRequires: pkgconfig(vorbis)
%if %{with vo-amrwbenc}
BuildRequires: pkgconfig(vo-amrwbenc)
%endif
BuildRequires: pkgconfig(vpx)
BuildRequires: pkgconfig(vulkan)
BuildRequires: pkgconfig(wavpack)
@ -608,12 +654,16 @@ cp -a doc/examples/{*.c,Makefile,README} _doc/examples/
%if %{with lcms2}
--enable-lcms2 \
%endif
%if %{with shaderc}
--enable-libshaderc \
%endif
--enable-vulkan \
--disable-cuda-sdk \
--enable-libaom \
--enable-libass \
%if %{with bluray}
--enable-libbluray \
%endif
--enable-libbs2b \
--enable-libcaca \
--enable-libcdio \
@ -623,7 +673,9 @@ cp -a doc/examples/{*.c,Makefile,README} _doc/examples/
--enable-libdc1394 \
%endif
--enable-libdrm \
%if %{with fdk-aac}
--enable-libfdk-aac \
%endif
%if %{with flite}
--enable-libflite \
%endif
@ -650,8 +702,12 @@ cp -a doc/examples/{*.c,Makefile,README} _doc/examples/
%endif
--enable-libpulse \
--enable-librabbitmq \
%if %{with rav1e}
--enable-librav1e \
%endif
%if %{with placebo}
--enable-librist \
%endif
--enable-librsvg \
--enable-librubberband \
--enable-libsnappy \
@ -683,12 +739,18 @@ cp -a doc/examples/{*.c,Makefile,README} _doc/examples/
%if %{with mfx}
--enable-libmfx \
%endif
%if %{with lilv}
--enable-lv2 \
%endif
--enable-vaapi \
--enable-vdpau \
%if %{with opencore}
--enable-libopencore-amrnb \
--enable-libopencore-amrwb \
%endif
%if %{with vo-amrwbenc}
--enable-libvo-amrwbenc \
%endif
%if %{with x264}
--enable-libx264 \
%endif