diff --git a/libheif.spec b/libheif.spec index fada7b0..64270bd 100644 --- a/libheif.spec +++ b/libheif.spec @@ -24,6 +24,8 @@ BuildRequires: pkgconfig(libjpeg) BuildRequires: pkgconfig(libpng) %if ! (0%{?rhel} && 0%{?rhel} <= 9) BuildRequires: pkgconfig(rav1e) +%endif +%if ! ((0%{?rhel} && 0%{?rhel} <= 9) || (0%{?fedora} && 0%{?fedora} < 38)) BuildRequires: pkgconfig(SvtAv1Enc) %endif @@ -38,6 +40,8 @@ file format decoder and encoder. %dir %{_libdir}/%{name} %if ! (0%{?rhel} && 0%{?rhel} < 9) %{_libdir}/%{name}/%{name}-rav1e.so +%endif +%if ! ((0%{?rhel} && 0%{?rhel} <= 9) || (0%{?fedora} && 0%{?fedora} < 38)) %{_libdir}/%{name}/%{name}-svtenc.so %endif