%define beta %nil %define scmrev %nil Name: sogo Version: 5.5.0 %if "%scmrev" == "" %if "%beta" != "" Release: 0.%{beta}.1 %else Release: 1 %endif Source0: https://packages.inverse.ca/SOGo/sources/SOGo-%version%beta.tar.gz %else Release: 1 Source0: SOGo-%scmrev.tar.xz %endif Source10: sogo-email-alarms.service Source11: sogo-email-alarms.timer Source12: sogo-expire-sessions.service Source13: sogo-expire-sessions.timer Source14: sogo.service Source1000: %{name}.rpmlintrc Patch0: sogo-5.1.0-no-Lusrlib.patch Summary: The SOGo groupware server URL: http://sogo.nu/ License: GPL/LGPL v2+ Group: System/Servers BuildRequires: gnustep-make >= 2.6.2-3 BuildRequires: gnustep-base-devel gnustep-gui-devel BuildRequires: pkgconfig(libobjc) BuildRequires: sope-devel BuildRequires: hostname BuildRequires: pkgconfig(libmemcached) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libsasl2) BuildRequires: pkgconfig(openssl) BuildRequires: pkgconfig(libzip) BuildRequires: openldap-devel BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libsodium) BuildRequires: pkgconfig(libytnef) >= 2.0 BuildRequires: systemd-rpm-macros %description SOGo is fully supported and trusted groupware server with a focus on scalability and open standards. SOGo is released under the GNU GPL/LGPL v2 and above. SOGo provides a rich AJAX-based Web interface and supports multiple native clients through the use of standard protocols such as CalDAV, CardDAV and GroupDAV. SOGo is the missing component of your infrastructure; it sits in the middle of your servers to offer your users a uniform and complete interface to access their information. It has been deployed in production environments where thousands of users are involved. %package devel Summary: Development files for SOGo Group: Development/C Requires: %{name} = %{EVRD} %description devel Development files for SOGo -- needed if you wish to develop or compile SOGo plugins. %prep %autosetup -p1 -n SOGo-%{version} # Not autoconf, even though it looks similar # --enable-debug (the default) uses -O0, we don't want that ./configure --disable-debug %build %make_build GNUSTEP_INSTALLATION_DOMAIN=SYSTEM messages=yes %install %make_install GNUSTEP_INSTALLATION_DOMAIN=SYSTEM mkdir -p %{buildroot}%{_unitdir} cp %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_tmpfilesdir} cat >%{buildroot}%{_tmpfilesdir}/sogo.conf <