Add conditionals for Fedora releases < 35.
This commit is contained in:
parent
9c6bc45ad6
commit
7fcb2219a0
|
@ -13,8 +13,12 @@ Patch0: Field3D-imath.patch
|
|||
BuildRequires: cmake gcc-c++ doxygen
|
||||
BuildRequires: hdf5-devel
|
||||
BuildRequires: boost-devel
|
||||
%if 0%{?fedora} > 34
|
||||
BuildRequires: imath-devel
|
||||
BuildRequires: openexr-devel
|
||||
%else
|
||||
BuildRequires: OpenEXR-devel
|
||||
%endif
|
||||
|
||||
Requires: hdf5 = %{_hdf5_version}
|
||||
|
||||
|
@ -37,7 +41,7 @@ Development headers and documentation for %{name}.
|
|||
%prep
|
||||
# Patch is only needed for openexr 3.0 / imath 3.0
|
||||
# https://github.com/imageworks/Field3D/issues/101
|
||||
%if %{fedora} >= 35
|
||||
%if %{fedora} > 34
|
||||
%autosetup -p1
|
||||
%else
|
||||
%autosetup
|
||||
|
|
Loading…
Reference in New Issue