[libkolabxml: 2/32] New packaging for libkolabxml

Jeroen van Meeuwen kanarip at fedoraproject.org
Tue Jun 26 15:08:55 UTC 2012


commit f2e9e75ee00c5e96d4280f7142d762d61ee58ba6
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Tue Apr 10 02:57:45 2012 +0100

    New packaging for libkolabxml

 libkolabxml.spec |  153 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 153 insertions(+), 0 deletions(-)
---
diff --git a/libkolabxml.spec b/libkolabxml.spec
new file mode 100644
index 0000000..fcea0b1
--- /dev/null
+++ b/libkolabxml.spec
@@ -0,0 +1,153 @@
+Name:           libkolabxml
+Version:        0.3
+Release:        0.1%{?dist}
+Summary:        Kolab XML format collection parser library
+
+Group:          System/Libraries
+License:        LGPLv3+
+URL:            http://www.kolab.org
+Source0:        http://git.kolab.org/libkolabxml/snapshot/%{name}-%{version}.tar.gz
+BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+
+%if 0%{?rhel} < 6 && 0%{?fedora} < 15
+BuildRequires:  boost141-devel
+%else
+BuildRequires:  boost-devel
+%endif
+BuildRequires:  cmake >= 2.6
+BuildRequires:  e2fsprogs-devel
+BuildRequires:  gcc-c++
+%if 0%{?rhel} > 6 || 0%{?fedora} >= 16
+BuildRequires:  kdelibs-devel
+BuildRequires:  kdepimlibs-devel
+%endif
+%if 0%{?rhel} > 5
+BuildRequires:  libuuid-devel
+%endif
+BuildRequires:  php-devel >= 5.3
+BuildRequires:  python-devel
+BuildRequires:  qt-devel >= 3
+BuildRequires:  swig
+#%if 0%{?rhel} <= 6 || 0%{?fedora} < 15
+#BuildRequires:  uuid-devel
+#%endif
+BuildRequires:  xerces-c-devel
+BuildRequires:  xsd
+
+%description
+The libkolabxml parsing library interprets Kolab XML formats (xCal, xCard) with
+bindings for Python, PHP and other languages. The language bindings are available
+through sub-packages.
+
+%package devel
+Summary:        Kolab XML library development headers
+Group:          System/Libraries
+Requires:       %{name} = %{version}-%{release}
+%if 0%{?rhel} < 6 && 0%{?fedora} < 15
+Requires:  boost141-devel
+%else
+Requires:  boost-devel
+%endif
+Requires:  cmake >= 2.6
+Requires:  e2fsprogs-devel
+Requires:  gcc-c++
+%if 0%{?rhel} > 6 || 0%{?fedora} >= 16
+Requires:  kdelibs-devel
+Requires:  kdepimlibs-devel
+%endif
+%if 0%{?rhel} > 5
+Requires:  libuuid-devel
+%endif
+Requires:  php-devel >= 5.3
+Requires:  python-devel
+Requires:  qt-devel >= 3
+Requires:  swig
+#%if 0%{?rhel} <= 6 || 0%{?fedora} < 15
+#Requires:  uuid-devel
+#%endif
+Requires:  xerces-c-devel
+Requires:  xsd
+
+%description devel
+Development headers for the Kolab XML libraries
+
+%package -n php-kolabformat
+Summary:        PHP bindings for libkolabxml
+Group:          System/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description -n php-kolabformat
+The PHP kolabformat package offers a comprehensible PHP library using the
+bindings provided through libkolabxml.
+
+%package -n python-kolabformat
+Summary:        Python bindings for libkolabxml
+Group:          System/Libraries
+Requires:       %{name} = %{version}-%{release}
+
+%description -n python-kolabformat
+The PyKolab format package offers a comprehensive Python library using the
+bindings provided through libkolabxml.
+
+%prep
+%setup -q
+
+%build
+rm -rf build
+mkdir -p build
+pushd build
+%{cmake} -Wno-fatal-errors -Wno-errors \
+    -DCMAKE_SKIP_RPATH=ON \
+%if 0%{?rhel} <= 6 && 0%{?fedora} < 15
+    -DBOOST_LIBRARYDIR=%{_libdir}/boost141 \
+    -DBOOST_INCLUDEDIR=%{_includedir}/boost141 \
+    -DBoost_ADDITIONAL_VERSIONS="1.41;1.41.0" \
+%endif
+    -DPYTHON_INCLUDE_DIRS=%{python_include} \
+    -DKOLAB_CSHARP_INSTALL_DIR=ext/csharp \
+    -DKOLAB_JAVA_INSTALL_DIR=ext/java \
+    -DKOLAB_PHP_INSTALL_DIR=%{php_extdir} \
+    -DKOLAB_PYTHON_INSTALL_DIR=%{python_sitearch} \
+    ..
+make
+popd
+
+%install
+rm -rf %{buildroot}
+pushd build
+make install DESTDIR=%{buildroot}
+popd
+
+#%check
+#export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{_builddir}/%{name}-%{version}/c++/build/lib
+#export PYTHON_PATH=$PYTHON_PATH:%{builddir}/%{name}-%{version}/
+#make quicktest
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc DEVELOPMENT INSTALL
+%{_libdir}/*.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}
+%{_libdir}/*.so
+%exclude %{_datadir}/apps/cmake/modules/FindKolabInternal.cmake
+
+%files -n php-kolabformat
+%defattr(-,root,root,-)
+%{php_extdir}/kolabformat.php
+%{php_extdir}/kolabformat.so
+
+%files -n python-kolabformat
+%defattr(-,root,root,-)
+%{python_sitearch}/kolabformat.py*
+%{python_sitearch}/_kolabformat.so
+
+%changelog
+* Mon Apr  9 2012 Jeroen van Meeuwen <vanmeeuwen at kolabsys.com> - 0.3-0.1
+- First package
+


More information about the scm-commits mailing list