Flag for conditional openchange build

pull/60/head
Ludovic Marcotte 2014-10-08 09:35:50 -04:00
parent 3e2de9701c
commit f1919d10ed
1 changed files with 5 additions and 1 deletions

View File

@ -36,6 +36,10 @@ 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.
@ -333,7 +337,7 @@ rm -fr ${RPM_BUILD_ROOT}
%{_includedir}/NGCards
%{_libdir}/sogo/libNGCards.so*
%if %{sogo_major_version} >= 2
%if %enable_openchange
%files openchange-backend
%defattr(-,root,root,-)
%{_libdir}/GNUstep/SOGo/*.MAPIStore