%define beta %nil %define scmrev %nil # Apparently we can't create debug packages for objective-c %define debug_package %nil Name: sogo Version: 4.0.7 %if "%scmrev" == "" %if "%beta" != "" Release: 1.%beta.1 %else Release: 1 %endif Source0: http://www.sogo.nu/files/downloads/SOGo/Sources/SOGo-%version%beta.tar.gz %else Release: 1.%scmrev.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 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: gcc-objc sope-devel BuildRequires: pkgconfig(libmemcached) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libsasl2) BuildRequires: openssl-devel BuildRequires: openldap-devel BuildRequires: pkgconfig(libxml-2.0) %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 = %version-%release %description devel Development files for SOGo -- needed if you wish to develop or compile SOGo plugins. %track prog sogo = { version = %{version} url = http://www.sogo.nu/downloads/backend.html regex = SOGo-(__VER__)\.tar\.gz } %prep %setup -q -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 %?_smp_mflags GNUSTEP_INSTALLATION_DOMAIN=SYSTEM %install rm -rf $RPM_BUILD_ROOT make %?_smp_mflags install DESTDIR="$RPM_BUILD_ROOT" GNUSTEP_INSTALLATION_DOMAIN=SYSTEM mkdir -p %{buildroot}/lib/systemd/system cp %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{buildroot}/lib/systemd/system/ mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d cat >%{buildroot}%{_sysconfdir}/tmpfiles.d/sogo.conf <