Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
server:Kolab:UNSTABLE
libkolabxml
libkolabxml.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libkolabxml.spec of Package libkolabxml
# # spec file for package libkolabxml # # Copyright (c) 2023 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define php_name %(php -r "print 'php' . PHP_MAJOR_VERSION;") %define php_major %(php -r "print PHP_MAJOR_VERSION;") %global php_extdir %{_libdir}/%{php_name}/extensions %global php_confdir %{_sysconfdir}/%{php_name}/conf.d %define libname %{name}1 %bcond_without java %bcond_without mono %bcond_without php %bcond_without python %bcond_without tests Name: libkolabxml Version: 1.1.6 Release: 0 Summary: Kolab XML Format Schema Definitions Library License: LGPL-3.0-or-later Group: Development/Libraries/C and C++ URL: https://kolab.org/about/libkolabxml Source: %{name}-%{version}.tar.gz # PATCH-FIX-UPSTREAM Patch0: 0001-Make-sure-boost-is-found-when-using-libkolabxml.patch # PATCH-FIX-OPENSUSE -- support PHP7, PHP8 Patch1: libkolabxml-1.1.6-PHP7+8.patch # PATCH-FIX-UPSTREAM -- unrequired dependency on ECMConfig Patch2: libkolabxml-1.1.6-ECM-not_needed.patch BuildRequires: gcc-c++ BuildRequires: libcurl-devel BuildRequires: libxerces-c-devel >= 3.0 BuildRequires: pkgconfig BuildRequires: swig >= 2.0 BuildRequires: xsd >= 3.0 %if 0%{?suse_version} >= 1500 BuildRequires: cmake >= 3.0 BuildRequires: libboost_atomic-devel BuildRequires: libboost_program_options-devel BuildRequires: libboost_system-devel BuildRequires: libboost_thread-devel %else BuildRequires: boost-devel >= 1.4.1 BuildRequires: cmake >= 2.8 %endif %if %{with java} BuildRequires: java-devel %endif %if %{with mono} BuildRequires: mono-devel %endif %if %{with php} BuildRequires: php-devel >= 5.3 %endif %if %{with python} BuildRequires: python3-devel %endif %if %{with tests} BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5Test) %endif %description Libkolabxml serves as a serialization/de-serialization library for the the Kolab XML Format Features: - Based on official standards: - Todos/Events/Journals are fully xCal compliant - Contacts/Distributionlists are fully xCard compliant - Can model everything which is used in the Kolab XML Format 2.0, Kontact and Roundcube. - Easily extensible - Canonical storage format - Supports Todos/Events/Journals/Contacts/Distribution Lists/Notes/Configurations %package -n %{libname} Summary: Kolab XML Format Schema Definitions Library Group: System/Libraries %description -n %{libname} Libkolabxml serves as a serialization/de-serialization library for the the Kolab XML Format Features: - Based on official standards: - Todos/Events/Journals are fully xCal compliant - Contacts/Distributionlists are fully xCard compliant - Can model everything which is used in the Kolab XML Format 2.0, Kontact and Roundcube. - Easily extensible - Canonical storage format - Supports Todos/Events/Journals/Contacts/Distribution Lists/Notes/Configurations %package devel Summary: Kolab XML Format Schema Definitions Library Group: Development/Libraries/C and C++ Requires: %{libname} = %{version} %if 0%{?suse_version} >= 1500 BuildRequires: cmake >= 3.0 Requires: libboost_chrono-devel Requires: libboost_date_time-devel Requires: libboost_system-devel Requires: libboost_thread-devel %else BuildRequires: boost-devel >= 1.4.1 %endif %description devel Libkolabxml serves as a serialization/de-serialization library for the the Kolab XML Format Features: - Based on official standards: - Todos/Events/Journals are fully xCal compliant - Contacts/Distributionlists are fully xCard compliant - Can model everything which is used in the Kolab XML Format 2.0, Kontact and Roundcube. - Easily extensible - Canonical storage format - Supports Todos/Events/Journals/Contacts/Distribution Lists/Notes/Configurations %package -n java-%{libname} Summary: Java bindings for %{name} Group: Development/Languages/Java Requires: %{libname} = %{version} Provides: java-kolabformat = %{version} %description -n java-%{libname} Libkolabxml serves as a serialization/de-serialization library for the the Kolab XML Format Features: - Based on official standards: - Todos/Events/Journals are fully xCal compliant - Contacts/Distributionlists are fully xCard compliant - Can model everything which is used in the Kolab XML Format 2.0, Kontact and Roundcube. - Easily extensible - Canonical storage format - Supports Todos/Events/Journals/Contacts/Distribution Lists/Notes/Configurations This package provides the java bindings for Libkolabxml %package -n mono-%{libname} Summary: Mono (C#) bindings for %{name} Group: Development/Languages/Other Requires: %{libname} = %{version} Provides: csharp-kolabformat = %{version} %description -n mono-%{libname} Libkolabxml serves as a serialization/de-serialization library for the the Kolab XML Format Features: - Based on official standards: - Todos/Events/Journals are fully xCal compliant - Contacts/Distributionlists are fully xCard compliant - Can model everything which is used in the Kolab XML Format 2.0, Kontact and Roundcube. - Easily extensible - Canonical storage format - Supports Todos/Events/Journals/Contacts/Distribution Lists/Notes/Configurations This package provides the mono (C#) bindings for Libkolabxml %package -n %{php_name}-%{libname} Summary: PHP bindings for %{name} Group: Development/Languages/Other Requires: %{libname} = %{version} Provides: php-%{libname} = %{version} Provides: php-kolabformat = %{version} %description -n %{php_name}-%{libname} Libkolabxml serves as a serialization/de-serialization library for the the Kolab XML Format Features: - Based on official standards: - Todos/Events/Journals are fully xCal compliant - Contacts/Distributionlists are fully xCard compliant - Can model everything which is used in the Kolab XML Format 2.0, Kontact and Roundcube. - Easily extensible - Canonical storage format - Supports Todos/Events/Journals/Contacts/Distribution Lists/Notes/Configurations This package provides the php bindings for Libkolabxml %package -n python3-%{libname} Summary: Python bindings for %{name} Group: Development/Languages/Python Requires: %{libname} = %{version} Provides: python3-kolabformat = %{version} %description -n python3-%{libname} Libkolabxml serves as a serialization/de-serialization library for the the Kolab XML Format Features: - Based on official standards: - Todos/Events/Journals are fully xCal compliant - Contacts/Distributionlists are fully xCard compliant - Can model everything which is used in the Kolab XML Format 2.0, Kontact and Roundcube. - Easily extensible - Canonical storage format - Supports Todos/Events/Journals/Contacts/Distribution Lists/Notes/Configurations This package provides the python bindings for Libkolabxml %prep %setup -q %if 0%{?suse_version} >= 1500 %patch0 -p1 %endif %patch1 -p1 %patch2 -p1 %build # Tests require X server and net # no-undefined does not work as the php bindings are "magic" %cmake \ -DCMAKE_EXE_LINKER_FLAGS=-Wl,--as-needed \ -DCMAKE_MODULE_LINKER_FLAGS=-Wl,--as-needed \ -DCMAKE_SHARED_LINKER_FLAGS=-Wl,--as-needed \ -DQT5_BUILD=TRUE \ %if %{with java} -DJAVA_BINDINGS=TRUE -DJAVA_INSTALL_DIR=%{_jnidir} \ %endif %if %{with mono} -DCSHARP_BINDINGS=TRUE -DCSHARP_INSTALL_DIR=%{_libdir}/mono/ \ %endif %if %{with php} -DPHP_BINDINGS=TRUE -DPHP_INSTALL_DIR=%{php_extdir} -DPHP_MAJOR=%{php_major} \ %endif %if %{with python} -DPYTHON_BINDINGS=TRUE -DPYTHON_INSTALL_DIR=%{python3_sitearch} \ %endif %if %{with tests} -DBUILD_TESTS=TRUE \ %else -DBUILD_TESTS=FALSE %endif make %{?_smp_mflags} %install %cmake_install %if %{with php} %if 0%{?suse_version} < 1599 # SWIG prior to 4.1 builds a .php wrapper to load the PHP extensions. # With SWIG 4.1 (present in current Tumbleweed), PHP wrapping is now done entirely via PHP's C API mkdir -p %{buildroot}/%{_datadir}/%{php_name} mv %{buildroot}/%{php_extdir}/kolabformat.php %{buildroot}/%{_datadir}/%{php_name}/kolabformat.php %endif mkdir -p %{buildroot}/%{php_confdir}/ cat >%{buildroot}/%{php_confdir}/kolabformat.ini <<EOF extension=kolabformat.so EOF %endif %if %{with tests} %check export LD_LIBRARY_PATH=$(pwd)/build/src/ cd build/ ctest -V ||: %endif %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} %license COPYING %doc AUTHORS README %{_libdir}/libkolabxml.so.* %files devel %doc DEVELOPMENT %dir %{_libdir}/cmake/ %{_libdir}/cmake/Libkolabxml/ %{_libdir}/libkolabxml.so %{_includedir}/kolabxml/ %if %{with java} %files -n java-%{libname} %license COPYING %dir %{_libdir}/java/ %{_libdir}/java/* %endif %if %{with mono} %files -n mono-%{libname} %license COPYING %{_libdir}/mono/* %endif %if %{with php} %files -n %{php_name}-%{libname} %license COPYING %config(noreplace) %{php_confdir}/kolabformat.ini %if 0%{?suse_version} < 1599 %{_datadir}/%{php_name}/kolabformat.php %endif %{php_extdir}/kolabformat.so %endif %if %{with python} %files -n python3-%{libname} %license COPYING %{python3_sitearch}/_kolabformat.so %{python3_sitearch}/kolabformat.py* %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor