%define beta %nil %define scmrev %nil Name: sogo Version: 5.8.4 %if "%scmrev" == "" %if "%beta" != "" Release: 0.%{beta}.1 %else Release: 1 %endif Source0: https://packages.sogo.nu/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-update-autoreply.service Source15: sogo-update-autoreply.timer Source16: sogo.service Source17: sogo.sysusers Source1000: %{name}.rpmlintrc Patch0: sogo-5.1.0-no-Lusrlib.patch Patch1: sogo-5.8.0-compile.patch Patch2: sogo-5.8.0-fix-sogo-tool-update-autoreply.patch Patch3: SOGo-5.8.2-clang16.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: pkgconfig(ldap) 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 %{S:10} %{S:11} %{S:12} %{S:13} %{S:14} %{S:15} %{S:16} %{buildroot}%{_unitdir} mkdir -p %{buildroot}%{_tmpfilesdir} cat >%{buildroot}%{_tmpfilesdir}/sogo.conf <