Hello community,
here is the log from the commit of package libkolabxml for openSUSE:Factory checked in at 2013-01-17 11:16:43
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libkolabxml (Old)
and /work/SRC/openSUSE:Factory/.libkolabxml.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libkolabxml", Maintainer is ""
Changes:
--------
--- /work/SRC/openSUSE:Factory/libkolabxml/libkolabxml.changes 2012-11-28 10:51:11.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.libkolabxml.new/libkolabxml.changes 2013-01-17 13:18:20.000000000 +0100
@@ -1,0 +2,11 @@
+Mon Jan 14 08:27:18 UTC 2013 - aj@ajaissle.de
+
+- Disabled php and mono bindings for SLES to fix the SLES build
+
+-------------------------------------------------------------------
+Thu Dec 20 00:16:20 UTC 2012 - aj@ajaissle.de
+
+- Added Patch: fix_php5_bindings.diff to fix php bindings
+ * Patch to hack src/php/CMakeList.cmake to find PHP5 on openSUSE
+
+-------------------------------------------------------------------
New:
----
fix_php5_bindings.diff
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ libkolabxml.spec ++++++
--- /var/tmp/diff_new_pack.oCidIR/_old 2013-01-17 13:18:21.000000000 +0100
+++ /var/tmp/diff_new_pack.oCidIR/_new 2013-01-17 13:18:21.000000000 +0100
@@ -25,8 +25,10 @@
Group: Development/Libraries/C and C++
Url: http://wiki.kolab.org/Libkolabxml
Source: http://mirror.kolabsys.com/pub/releases/%{name}-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE fix_php5_bindings.diff
+Patch0: fix_php5_bindings.diff
BuildRequires: boost-devel
-BuildRequires: cmake
+BuildRequires: cmake >= 2.6
BuildRequires: gcc-c++
BuildRequires: gcc-java
BuildRequires: java-openjdk
@@ -34,8 +36,12 @@
BuildRequires: libqt4-devel
BuildRequires: libxerces-c-devel
BuildRequires: mono-devel
-# FIXME: doesn't build
-# BuildRequires: php5-devel
+# ToDo: Fix SLE_11_SP2 CSHARP and PHP bindings
+#%%if 0%{?sles_version} == 0
+BuildRequires: php5-devel
+#%%else
+#BuildRequires: php53-devel
+#%%endif
BuildRequires: pkgconfig
BuildRequires: python-devel
BuildRequires: swig
@@ -91,6 +97,7 @@
%package -n java-%{name}%{soname}
Summary: Java bindings for %{name}
Group: Development/Languages/Java
+Provides: java-kolabformat = %{version}
%description -n java-%{name}%{soname}
Libkolabxml serves as a serialization/de-serialization library for the the Kolab XML Format
@@ -109,6 +116,7 @@
%package -n mono-%{name}%{soname}
Summary: Mono (C#) bindings for %{name}
Group: Development/Languages/Mono
+Provides: csharp-kolabformat = %{version}
%description -n mono-%{name}%{soname}
Libkolabxml serves as a serialization/de-serialization library for the the Kolab XML Format
@@ -126,7 +134,8 @@
%package -n php-%{name}%{soname}
Summary: PHP bindings for %{name}
-Group: Development/Languages/PHP
+Group: Development/Languages/Other
+Provides: php-kolabformat = %{version}
%description -n php-%{name}%{soname}
Libkolabxml serves as a serialization/de-serialization library for the the Kolab XML Format
@@ -145,6 +154,7 @@
%package -n python-%{name}%{soname}
Summary: Python bindings for %{name}
Group: Development/Languages/Python
+Provides: python-kolabformat = %{version}
%description -n python-%{name}%{soname}
Libkolabxml serves as a serialization/de-serialization library for the the Kolab XML Format
@@ -160,9 +170,9 @@
This package provides the python bindings for Libkolabxml
-
%prep
%setup -q
+%patch0 -p0
%build
export CXXFLAGS="%{optflags}"
@@ -175,7 +185,10 @@
-DLIB_INSTALL_DIR=%{_lib} \
-DCMAKE_SKIP_RPATH=TRUE \
-DJAVA_BINDINGS=TRUE -DJAVA_INSTALL_DIR=%{_jnidir} \
+%if 0%{?sles_version} == 0
-DCSHARP_BINDINGS=TRUE -DCSHARP_INSTALL_DIR=%{_prefix}/lib/mono/ \
+ -DPHP_BINDINGS=TRUE \
+%endif
-DPYTHON_BINDINGS=TRUE -DPYTHON_INSTALL_DIR=%{python_sitearch} \
..
@@ -185,6 +198,19 @@
cd build
make DESTDIR=%{buildroot} install
+%if 0%{?sles_version} == 0
+ %define php_extension_dir %( %{_bindir}/php-config --extension-dir | sed -e 's#\\n##' )
+ %define php_inidir /etc/php5/conf.d
+
+ mkdir -p %{buildroot}/%{_datadir}/php5
+ mv %{buildroot}/%{php_extension_dir}/kolabformat.php %{buildroot}/%{_datadir}/php5/kolabformat.php
+
+ mkdir -p %{buildroot}/%{php_inidir}/
+cat >%{buildroot}/%{php_inidir}/kolabformat.ini <