Projects
Kontact:4.13:Git
libkolabxml
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 7
View file
_service:set_version:libkolabxml.spec
Added
@@ -0,0 +1,478 @@ +# Needed for opensuse build system +%if 0%{?opensuse_bs} +#!BuildIgnore: fedora-logos-httpd +#!BuildIgnore: httpd +%endif + +%{?!mono_arches: %global mono_arches %{ix86} x86_64 sparc sparcv9 ia64 %{arm} alpha s390x ppc ppc64} + +%ifarch %{mono_arches} +# No linux system is actually using the csharp bindings +%global with_csharp 0 +%endif +%global with_java 1 +%global with_php 1 +%global with_python 1 + +%if 0%{?with_php} > 0 +%if 0%{?suse_version} +%global php php5 +%{!?php_extdir: %global php_extdir %{_libdir}/php5/extensions} +%{!?php_inidir: %global php_inidir %{_sysconfdir}/php5/conf.d/} +%else +%global php php +%{!?php_extdir: %global php_extdir %{_libdir}/php/modules} +%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d/} +%endif +%{!?php_apiver: %global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)} +%endif + +%if 0%{?with_python} > 0 +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%endif + +# Filter out private python and php libs. Does not work on EPEL5, +# therefor we use it conditionally +%if 0%{?with_php} > 0 +%if 0%{?with_python} > 0 +%{?filter_setup: +%filter_provides_in %{python_sitearch}/.*\.so$ +%filter_provides_in %{php_extdir}/.*\.so$ +%filter_setup +} +%else +%{?filter_setup: +%filter_provides_in %{php_extdir}/.*\.so$ +%filter_setup +} +%endif +%else +%if 0%{?with_python} > 0 +%{?filter_setup: +%filter_provides_in %{python_sitearch}/.*\.so$ +%filter_setup +} +%endif +%endif + +%if 0%{?suse_version} +Name: libkolabxml1 +%else +Name: libkolabxml +%endif +Version: 1.2.git.1430828216 +Release: 0%{?dist} +Summary: Kolab XML format collection parser library + +Group: System Environment/Libraries +License: LGPLv3+ +URL: http://www.kolab.org + +# From fa555615bd732cdc7fef56bf617e57d1bcf174fd +Source0: http://git.kolab.org/libkolabxml/snapshot/libkolabxml-%{version}.tar.gz + +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: boost-devel +BuildRequires: cmake >= 2.6 +BuildRequires: e2fsprogs-devel +BuildRequires: gcc-c++ +BuildRequires: libcurl-devel +%if 0%{?suse_version} +BuildRequires: qt-devel +%else +BuildRequires: qt4-devel +%endif +BuildRequires: swig +BuildRequires: uuid-devel +BuildRequires: xsd + +%if 0%{?suse_version} +BuildRequires: libxerces-c-devel +%else +BuildRequires: xerces-c-devel +%endif + +Provides: libkolabxml%{?_isa} = %{version} + +%if 0%{?with_csharp} < 1 +Obsoletes: csharp-kolabformat < %{version}-%{release} +Provides: csharp-kolabformat = %{version}-%{release} +%endif + +%if 0%{?with_java} < 1 +Obsoletes: java-kolabformat < %{version}-%{release} +Provides: java-kolabformat = %{version}-%{release} +%endif + +%if 0%{?with_php} < 1 +Obsoletes: php-kolabformat < %{version}-%{release} +Provides: php-kolabformat = %{version}-%{release} +%endif + +%if 0%{?with_python} < 1 +Obsoletes: python-kolabformat < %{version}-%{release} +Provides: python-kolabformat = %{version}-%{release} +%endif + +%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. + +%if 0%{?suse_version} +%package -n libkolabxml-devel +%else +%package devel +%endif +Summary: Kolab XML library development headers +Group: Development/Libraries +Requires: libkolabxml%{?_isa} = %{version} +Requires: boost-devel +Requires: cmake >= 2.6 +Requires: e2fsprogs-devel +Requires: gcc-c++ +Requires: libcurl-devel +%if 0%{?with_php} > 0 +Requires: php-devel >= 5.3 +%endif +%if 0%{?with_python} > 0 +Requires: python-devel +%endif +%if 0%{?suse_version} +Requires: qt-devel +%else +Requires: qt4-devel +%endif +Requires: swig +Requires: uuid-devel +%if 0%{?suse_version} +Requires: libxerces-c-devel +%else +Requires: xerces-c-devel +%endif +Requires: xsd + +%if 0%{?suse_version} +%description -n libkolabxml-devel +%else +%description devel +%endif +Development headers for the Kolab XML libraries. + +%if 0%{?with_csharp} > 0 +%package -n csharp-kolabformat +Summary: C# Bindings for libkolabxml +Group: System Environment/Libraries +Requires: libkolabxml%{?_isa} = %{version} +%if 0%{?suse_version} +Obsoletes: mono-%{name} < %{version} +Provides: mono-%{name} = %{version} +%endif +BuildRequires: mono-core + +%description -n csharp-kolabformat +C# bindings for libkolabxml +%endif + +%if 0%{?with_java} > 0 +%package -n java-kolabformat +Summary: Java Bindings for libkolabxml +Group: System Environment/Libraries +Requires: libkolabxml%{?_isa} = %{version} +%if 0%{?suse_version} +Obsoletes: java-%{name} < %{version} +Provides: java-%{name} = %{version} +%endif + +%description -n java-kolabformat +Java bindings for libkolabxml +%endif + +%if 0%{?with_php} > 0 +%package -n php-kolabformat +Summary: PHP bindings for libkolabxml +Group: System Environment/Libraries +Requires: libkolabxml%{?_isa} = %{version} +%if 0%{?rhel} > 5 || 0%{?fedora} > 15 +Requires: php(zend-abi) = %{php_zend_api}
View file
libkolabxml.spec
Added
@@ -0,0 +1,478 @@ +# Needed for opensuse build system +%if 0%{?opensuse_bs} +#!BuildIgnore: fedora-logos-httpd +#!BuildIgnore: httpd +%endif + +%{?!mono_arches: %global mono_arches %{ix86} x86_64 sparc sparcv9 ia64 %{arm} alpha s390x ppc ppc64} + +%ifarch %{mono_arches} +# No linux system is actually using the csharp bindings +%global with_csharp 0 +%endif +%global with_java 1 +%global with_php 1 +%global with_python 1 + +%if 0%{?with_php} > 0 +%if 0%{?suse_version} +%global php php5 +%{!?php_extdir: %global php_extdir %{_libdir}/php5/extensions} +%{!?php_inidir: %global php_inidir %{_sysconfdir}/php5/conf.d/} +%else +%global php php +%{!?php_extdir: %global php_extdir %{_libdir}/php/modules} +%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d/} +%endif +%{!?php_apiver: %global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)} +%endif + +%if 0%{?with_python} > 0 +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%endif + +# Filter out private python and php libs. Does not work on EPEL5, +# therefor we use it conditionally +%if 0%{?with_php} > 0 +%if 0%{?with_python} > 0 +%{?filter_setup: +%filter_provides_in %{python_sitearch}/.*\.so$ +%filter_provides_in %{php_extdir}/.*\.so$ +%filter_setup +} +%else +%{?filter_setup: +%filter_provides_in %{php_extdir}/.*\.so$ +%filter_setup +} +%endif +%else +%if 0%{?with_python} > 0 +%{?filter_setup: +%filter_provides_in %{python_sitearch}/.*\.so$ +%filter_setup +} +%endif +%endif + +%if 0%{?suse_version} +Name: libkolabxml1 +%else +Name: libkolabxml +%endif +Version: 1.2 +Release: 0.1.git%{?dist} +Summary: Kolab XML format collection parser library + +Group: System Environment/Libraries +License: LGPLv3+ +URL: http://www.kolab.org + +# From fa555615bd732cdc7fef56bf617e57d1bcf174fd +Source0: http://git.kolab.org/libkolabxml/snapshot/libkolabxml-%{version}.tar.gz + +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + +BuildRequires: boost-devel +BuildRequires: cmake >= 2.6 +BuildRequires: e2fsprogs-devel +BuildRequires: gcc-c++ +BuildRequires: libcurl-devel +%if 0%{?suse_version} +BuildRequires: qt-devel +%else +BuildRequires: qt4-devel +%endif +BuildRequires: swig +BuildRequires: uuid-devel +BuildRequires: xsd + +%if 0%{?suse_version} +BuildRequires: libxerces-c-devel +%else +BuildRequires: xerces-c-devel +%endif + +Provides: libkolabxml%{?_isa} = %{version} + +%if 0%{?with_csharp} < 1 +Obsoletes: csharp-kolabformat < %{version}-%{release} +Provides: csharp-kolabformat = %{version}-%{release} +%endif + +%if 0%{?with_java} < 1 +Obsoletes: java-kolabformat < %{version}-%{release} +Provides: java-kolabformat = %{version}-%{release} +%endif + +%if 0%{?with_php} < 1 +Obsoletes: php-kolabformat < %{version}-%{release} +Provides: php-kolabformat = %{version}-%{release} +%endif + +%if 0%{?with_python} < 1 +Obsoletes: python-kolabformat < %{version}-%{release} +Provides: python-kolabformat = %{version}-%{release} +%endif + +%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. + +%if 0%{?suse_version} +%package -n libkolabxml-devel +%else +%package devel +%endif +Summary: Kolab XML library development headers +Group: Development/Libraries +Requires: libkolabxml%{?_isa} = %{version} +Requires: boost-devel +Requires: cmake >= 2.6 +Requires: e2fsprogs-devel +Requires: gcc-c++ +Requires: libcurl-devel +%if 0%{?with_php} > 0 +Requires: php-devel >= 5.3 +%endif +%if 0%{?with_python} > 0 +Requires: python-devel +%endif +%if 0%{?suse_version} +Requires: qt-devel +%else +Requires: qt4-devel +%endif +Requires: swig +Requires: uuid-devel +%if 0%{?suse_version} +Requires: libxerces-c-devel +%else +Requires: xerces-c-devel +%endif +Requires: xsd + +%if 0%{?suse_version} +%description -n libkolabxml-devel +%else +%description devel +%endif +Development headers for the Kolab XML libraries. + +%if 0%{?with_csharp} > 0 +%package -n csharp-kolabformat +Summary: C# Bindings for libkolabxml +Group: System Environment/Libraries +Requires: libkolabxml%{?_isa} = %{version} +%if 0%{?suse_version} +Obsoletes: mono-%{name} < %{version} +Provides: mono-%{name} = %{version} +%endif +BuildRequires: mono-core + +%description -n csharp-kolabformat +C# bindings for libkolabxml +%endif + +%if 0%{?with_java} > 0 +%package -n java-kolabformat +Summary: Java Bindings for libkolabxml +Group: System Environment/Libraries +Requires: libkolabxml%{?_isa} = %{version} +%if 0%{?suse_version} +Obsoletes: java-%{name} < %{version} +Provides: java-%{name} = %{version} +%endif + +%description -n java-kolabformat +Java bindings for libkolabxml +%endif + +%if 0%{?with_php} > 0 +%package -n php-kolabformat +Summary: PHP bindings for libkolabxml +Group: System Environment/Libraries +Requires: libkolabxml%{?_isa} = %{version} +%if 0%{?rhel} > 5 || 0%{?fedora} > 15 +Requires: php(zend-abi) = %{php_zend_api}
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.