Removed dependancies when openchange is disabled

pull/64/head
Ludovic Marcotte 2014-10-14 09:02:15 -04:00
parent 1a8aa5a587
commit 81ff6bebfe
1 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,9 @@
# We disable OpenChange builds on el5 since it's prehistoric
%define enable_openchange 1
%{?el5:%define enable_openchange 0}
%{!?sogo_major_version: %global sogo_major_version %(/bin/echo %{sogo_version} | /bin/cut -f 1 -d .)}
%if %{sogo_major_version} >= 2
%if %enable_openchange
%global oc_build_depends samba4 openchange
%endif
@ -36,10 +40,6 @@ BuildRequires: gcc-objc gnustep-base gnustep-make sope%{sope_major_version}%{so
%{?!el5:Requires: lasso}
%{?!el5:BuildRequires: lasso-devel}
# We disable OpenChange builds on el5 since it's prehistoric
%define enable_openchange 1
%{?el5:%define enable_openchange 0}
%description
SOGo is a groupware server built around OpenGroupware.org (OGo) and
the SOPE application server. It focuses on scalability.