Disable openexr on epel 9

This commit is contained in:
Sérgio M. Basto 2024-01-21 16:48:42 +00:00
parent 0aedf9d836
commit 7cdfc99aae

View File

@ -51,6 +51,12 @@
%bcond_with java %bcond_with java
%endif %endif
%if 0%{?fedora}
%bcond_without openexr
%else
%bcond_with openexr
%endif
%bcond_without va %bcond_without va
%bcond_without vulkan %bcond_without vulkan
@ -125,10 +131,14 @@ BuildRequires: libpng-devel
BuildRequires: libtiff-devel BuildRequires: libtiff-devel
BuildRequires: libGL-devel BuildRequires: libGL-devel
BuildRequires: libv4l-devel BuildRequires: libv4l-devel
%{?with_openexr:
BuildRequires: OpenEXR-devel BuildRequires: OpenEXR-devel
}
%{?with_openni: %{?with_openni:
BuildRequires: openni-devel BuildRequires: openni-devel
%if 0%{?fedora}
BuildRequires: openni-primesense BuildRequires: openni-primesense
%endif
} }
%{?with_tbb: %{?with_tbb:
BuildRequires: tbb-devel BuildRequires: tbb-devel
@ -434,7 +444,8 @@ install -pm 0644 %{S:4} .cache/ade/
%endif %endif
-DOpenGL_GL_PREFERENCE=GLVND \ -DOpenGL_GL_PREFERENCE=GLVND \
-DWITH_GDAL=ON \ -DWITH_GDAL=ON \
-DWITH_OPENEXR=ON \ %{?with_openexr: -DWITH_OPENEXR=ON} \
%{!?with_openexr: -DWITH_OPENEXR=OFF} \
-DCMAKE_SKIP_RPATH=ON \ -DCMAKE_SKIP_RPATH=ON \
-DWITH_CAROTENE=OFF \ -DWITH_CAROTENE=OFF \
%ifarch x86_64 %{ix86} %ifarch x86_64 %{ix86}