#
# Conditional build:
%bcond_without tests # build without tests
-%bcond_without php # PHP bindings
+%bcond_with php # PHP bindings
%bcond_without python # Python bindings
-%define php_name php55
+%define php_name php56
Summary: Kolab Object Handling Library
Name: libkolab
-Version: 0.5.0
-Release: 2
+Version: 0.6.0
+Release: 14
License: LGPL v3+
Group: Libraries
Source0: http://mirror.kolabsys.com/pub/releases/%{name}-%{version}.tar.gz
-# Source0-md5: 38da4b0918e8585ab935ae02bc321aa0
+# Source0-md5: 3c4fc1fec2dfcc0841f29de8f6ff0cd3
+Patch0: 0002-Make-libkolab-compile-with-upstream-kdepimlibs.patch
URL: http://git.kolab.org/libkolab
BuildRequires: QtCore-devel
BuildRequires: curl-devel
BuildRequires: kde4-kdepimlibs-devel >= 4.8
-BuildRequires: libkolabxml-devel >= 1.0
+BuildRequires: libkolabxml-devel >= 1.1
BuildRequires: qt4-build
BuildRequires: rpmbuild(macros) >= 1.600
BuildRequires: swig
%if %{with php}
BuildRequires: %{php_name}-devel
BuildRequires: %{php_name}-cli
+%if %{with tests}
+BuildRequires: %{php_name}-pcre
+%endif
BuildRequires: %{php_name}-program
BuildRequires: swig-php
%endif
%prep
%setup -q
+%patch0 -p1
%build
install -d build