diff --git a/vtk.spec b/vtk.spec index 1de7a13..e1a24a5 100644 --- a/vtk.spec +++ b/vtk.spec @@ -5,6 +5,9 @@ # '_ZZNSt8__detail18__to_chars_10_implIjEEvPcjT_E8__digits@@LLVM_11' %global _lto_cflags %{nil} +# There is a circular dep with opencascade +%bcond bootstrap 0 + # OSMesa and X support are mutually exclusive. # TODO - buid separate OSMesa version if desired %bcond_with OSMesa @@ -142,7 +145,9 @@ BuildRequires: lz4-devel BuildRequires: mariadb-connector-c-devel %{?with_OSMesa:BuildRequires: mesa-libOSMesa-devel} BuildRequires: netcdf-cxx-devel +%if %{without bootstrap} BuildRequires: opencascade-devel +%endif BuildRequires: openslide-devel # Currently does not provide OpenVDBConfig.cmake #BuildRequires: openvdb-devel @@ -243,7 +248,9 @@ Requires: mariadb-connector-c-devel%{?_isa} \ Requires: mesa-libOSMesa-devel%{?_isa} \ %endif \ Requires: netcdf-cxx-devel%{?_isa} \ +%if %{without bootstrap} \ Requires: opencascade-devel%{?_isa} \ +%endif \ Requires: openslide-devel%{?_isa} \ #Requires: openvdb-devel%{?_isa} \ Requires: openvr-devel%{?_isa} \ @@ -618,6 +625,9 @@ find vtk-examples -type f | xargs chmod -R a-x -DVTK_MODULE_ENABLE_VTK_ImagingOpenGL2:STRING=YES \\\ -DVTK_MODULE_ENABLE_VTK_InfovisBoost:STRING=YES \\\ -DVTK_MODULE_ENABLE_VTK_InfovisBoostGraphAlgorithms:STRING=YES \\\ +%if %{with bootstrap} \ + -DVTK_MODULE_ENABLE_VTK_IOOCCT:STRING=NO \\\ +%endif \ -DVTK_MODULE_ENABLE_VTK_IOFDS:STRING=YES \\\ -DVTK_MODULE_ENABLE_VTK_IOH5part:STRING=YES \\\ -DVTK_MODULE_ENABLE_VTK_IOH5Rage:STRING=YES \\\