diff --git a/libvmime.spec b/libvmime.spec index 2c59dc7..817f3b7 100644 --- a/libvmime.spec +++ b/libvmime.spec @@ -41,7 +41,9 @@ BuildRequires: doxygen BuildRequires: gcc-c++ BuildRequires: inkscape BuildRequires: libgnutls-devel +%if 0%{?is_opensuse} BuildRequires: libgsasl-devel +%endif BuildRequires: libopenssl-devel BuildRequires: pkg-config BuildRequires: postfix @@ -113,7 +115,9 @@ cf="%optflags -DVMIME_ALWAYS_GENERATE_7BIT_PARAMETER=1" export PATH="$PATH:/usr/sbin" cmake . \ -DVMIME_BUILD_SAMPLES:BOOL=OFF \ +%if 0%{?is_opensuse} -DVMIME_HAVE_SASL_SUPPORT:BOOL=ON \ +%endif -DVMIME_HAVE_TLS_SUPPORT:BOOL=ON \ -DVMIME_BUILD_STATIC_LIBRARY:BOOL=OFF \ -DCMAKE_RELEASE_TYPE:STRING="RelWithDebInfo" \