File kolab-utils.spec of Package kolab-utils
#
# spec file for package kolab-utils
#
# Copyright (c) 2014-2023 Aeneas Jaissle <aj@ajaissle.de>
# Copyright (c) 2012 Kolab Systems AG, Zuerich, Switzerland.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://issues.kolab.org/
#
%bcond_with kde
Name: kolab-utils
Version: 3.1.4
Release: 0
Summary: Kolab Utilities
Group: Productivity/Networking/Other
License: GPL-2.0+
Url: https://kolab.org
Source0: https://cgit.kolab.org/%{name}/snapshot/%{name}-%{version}.tar.gz
Source1: kolab-freebusy.cron
%if 0%{?suse_version} >= 1500
BuildRequires: libboost_atomic-devel
%else
BuildRequires: boost-devel >= 1.4.1
%endif
BuildRequires: cmake >= 2.6
BuildRequires: cron
BuildRequires: libcurl-devel
%if %{with kde}
BuildRequires: libkdepimlibs4-devel >= 4.9
%else
BuildRequires: libcalendaring-devel
%endif
BuildRequires: libkolab-devel >= 0.6
BuildRequires: libqt4-devel
Requires: cron
Requires: kolab-freebusy >= 1.0
%description
Kolab is a secure, scalable and reliable groupware server. It is formed by a
number of well-known and proven components and adds intelligent interaction between them.
This package provides utilities for Kolab.
%prep
%setup -q
%build
%cmake \
-DLibkolab_DIR=%{_libdir}/cmake/Libkolab \
-DLibkolabxml_DIR=%{_libdir}/cmake/Libkolabxml \
%if %{with kde}
-DUSE_LIBCALENDARING=FALSE
%else
-DUSE_LIBCALENDARING=TRUE
%endif
make %{?_smp_mflags}
%install
%cmake_install
mkdir -p %{buildroot}/%{_localstatedir}/lib/kolab-freebusy/
mkdir -p %{buildroot}/%{_sysconfdir}/cron.d/
install -pm 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/cron.d/kolab-freebusy
%files
%config(noreplace) %{_sysconfdir}/cron.d/kolab-freebusy
%{_bindir}/kolab-formatupgrade
%{_bindir}/kolab-freebusyd
%{_bindir}/kolab-migration
%{_libdir}/libkolabutils.so
%attr(0750,root,www) %dir %{_localstatedir}/lib/kolab-freebusy
%changelog