diff --git a/qgis.spec b/qgis.spec index abe0334..9b0c4bd 100644 --- a/qgis.spec +++ b/qgis.spec @@ -16,6 +16,7 @@ # %bcond_without grass +%bcond_with otb Name: qgis Version: 3.8.2 @@ -55,7 +56,9 @@ BuildRequires: libqscintilla_qt5-devel BuildRequires: libspatialindex-devel BuildRequires: ocl-icd-devel BuildRequires: opencl-cpp-headers -#BuildRequires: otb-devel +%if %{with grass} +BuildRequires: otb-devel +%endif BuildRequires: pkgconfig BuildRequires: poppler-tools BuildRequires: python-qscintilla-qt5-sip