1 Summary: Kolab Object Handling Library
6 URL: http://git.kolab.org/libkolab
7 Source0: http://git.kolab.org/libkolab/snapshot/%{name}-%{version}.tar.gz
8 BuildRequires: curl-devel
9 BuildRequires: kde4-kdepimlibs-devel
10 BuildRequires: libcalendaring-devel
11 BuildRequires: libkolabxml-devel >= 0.7
12 BuildRequires: php-devel
13 BuildRequires: python-devel
14 BuildRequires: qt-devel
17 The libkolab library is an advanced library to handle Kolab objects.
20 Summary: Kolab library development headers
21 BuildRequires: kde4-kdepimlibs-devel >= 4.8
22 BuildRequires: libcalendaring-devel
23 Requires: %{name} = %{version}-%{release}
24 Requires: libkolabxml-devel >= 0.7
27 Requires: python-devel
30 Development headers for the Kolab object libraries.
33 Summary: PHP Bindings for libkolab
35 Requires: %{name} = %{version}-%{release}
36 Requires: php(api) = %{php_core_api}
37 Requires: php(zend-abi) = %{php_zend_api}
39 %description -n php-kolab
40 PHP Bindings for libkolab
42 %package -n python-kolab
43 Summary: Python bindings for libkolab
45 Requires: %{name} = %{version}-%{release}
47 %description -n python-kolab
48 Python bindings for libkolab
57 %{cmake} -Wno-fatal-errors -Wno-errors \
58 -DINCLUDE_INSTALL_DIR=%{_includedir} \
59 %if 0%{?rhel} < 7 && 0%{?fedora} < 17
60 -DUSE_LIBCALENDARING=ON \
63 -DPHP_INSTALL_DIR=%{php_extdir} \
64 -DPYTHON_BINDINGS=ON \
65 -DPYTHON_INSTALL_DIR=%{py_sitedir} \
71 rm -rf $RPM_BUILD_ROOT
73 %{__make} install DESTDIR=$RPM_BUILD_ROOT
79 ./calendaringtest || :
83 ./kcalconversiontest || :
88 rm -rf $RPM_BUILD_ROOT
90 %post -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
95 %defattr(644,root,root,755)
96 %{_libdir}/%{name}.so.0
97 %{_libdir}/%{name}.so.0.3
100 %defattr(644,root,root,755)
101 %{_libdir}/%{name}.so
102 %{_libdir}/cmake/Libkolab
106 %defattr(644,root,root,755)
107 %{php_extdir}/calendaring.php
108 %{php_extdir}/calendaring.so
109 %{php_extdir}/icalendar.php
110 %{php_extdir}/icalendar.so
112 %files -n python-kolab
113 %defattr(644,root,root,755)
114 %{py_sitedir}/_calendaring.so
115 %{py_sitedir}/calendaring.py*
116 %{py_sitedir}/_icalendar.so
117 %{py_sitedir}/icalendar.py*