[packaging] Branch 'dev/el6-with-libcalendaring' - libkolab.spec

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Sat Jul 28 12:36:05 CEST 2012


 libkolab.spec |   34 ++++++++++++++++++++++++++++++++++
 1 file changed, 34 insertions(+)

New commits:
commit a9dbe9faca63eb44663831046da2c1cc238e456a
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Sat Jul 28 12:36:00 2012 +0200

    Add sub-packages for PHP and Python bindings

diff --git a/libkolab.spec b/libkolab.spec
index 013a378..5d1956a 100644
--- a/libkolab.spec
+++ b/libkolab.spec
@@ -35,6 +35,28 @@ Requires:       python-devel
 %description devel
 Development headers for the Kolab object libraries.
 
+%package -n php-kolab
+Summary:        PHP Bindings for libkolab
+Group:          System Environment/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+%if 0%{?rhel} > 5 || 0%{?fedora} > 15
+Requires:       php(zend-abi) = %{php_zend_api}
+Requires:       php(api) = %{php_core_api}
+%else
+Requires:       php-api = %{php_apiver}
+%endif
+
+%description -n php-kolab
+PHP Bindings for libkolab
+
+%package -n python-kolab
+Summary:        Python bindings for libkolab
+Group:          System Environment/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description -n python-kolab
+Python bindings for libkolab
+
 %prep
 %setup -q
 
@@ -77,6 +99,18 @@ rm -rf %{buildroot}
 %{_libdir}/cmake/Libkolab
 %{_includedir}/kolab
 
+%files -n php-kolab
+%{php_extdir}/calendaring.php
+%{php_extdir}/calendaring.so
+%{php_extdir}/icalendar.php
+%{php_extdir}/icalendar.so
+
+%files -n python-kolab
+%{python_sitearch}/_calendaring.so
+%{python_sitearch}/calendaring.py*
+%{python_sitearch}/_icalendar.so
+%{python_sitearch}/icalendar.py*
+
 %changelog
 * Sat Jul 28 2012 Jeroen van Meeuwen <vanmeeuwen at kolabsys.com> - 0.3-6
 - Build for el6 with libcalendaring




More information about the packaging-commits mailing list