# # spec file for package libical # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # 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 http://bugs.opensuse.org/ # %define sonum 3 Name: libical Version: 3.0.5 Release: 0 Summary: An Implementation of Basic iCAL Protocols License: MPL-2.0 OR LGPL-2.1-only Group: Development/Libraries/C and C++ Url: http://sourceforge.net/projects/freeassociation/ #Git-Clone: https://github.com/libical/libical Source: https://github.com/libical/libical/releases/download/v%{version}/%{name}-%{version}.tar.gz Source2: baselibs.conf Source3: libical-rpmlintrc Patch1: 0001-vcc.y-factor-out-hexdigit-conversion.patch Patch2: 0002-vcc.y-fix-infinite-loop-with-lower-case-hex-digits.patch Patch3: 0003-vcc.y-fix-infinite-loop-with-non-hex-digits.patch Patch4: 0004-vobject.c-vCard-Unicode-reading-support.patch Patch5: 0005-vcc.y-do-not-ignore-field-separator-in-QUOTED-PRINTA.patch BuildRequires: cmake >= 3.1 BuildRequires: gcc-c++ BuildRequires: gtk-doc BuildRequires: pkgconfig BuildRequires: vala BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(gobject-2.0) BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(icu-i18n) BuildRequires: pkgconfig(libxml-2.0) %description Libical is an implementation of the IETF's iCalendar calendaring and scheduling protocols (RFC 2445, 2446, and 2447). It parses iCal components and provides a C API for manipulating the component properties, parameters, and subcomponents. %package -n %{name}%{sonum} Summary: An Implementation of Basic iCAL Protocols Group: System/Libraries Provides: %{name} = %{version} Obsoletes: %{name} < %{version} %description -n %{name}%{sonum} Libical is an implementation of the IETF's iCalendar calendaring and scheduling protocols (RFC 2445, 2446, and 2447). It parses iCal components and provides a C API for manipulating the component properties, parameters, and subcomponents. %package devel Summary: Development files for libical, an implementation of basic iCAL protocols Group: Development/Libraries/C and C++ Requires: %{name}%{sonum} = %{version} %description devel Libical is an implementation of the IETF's iCalendar Calendaring and Scheduling protocols. (RFC 2445, 2446, and 2447). It parses iCal components and provides a C API for manipulating the component properties, parameters, and subcomponents. %package doc Summary: Example source code for programs to use libical Group: Documentation/Other %if 0%{?suse_version} >= 1120 BuildArch: noarch %endif %description doc Libical is an implementation of the IETF's iCalendar calendaring and scheduling protocols (RFC 2445, 2446, and 2447). It parses iCal components and provides a C API for manipulating the component properties, parameters, and subcomponents. %package glib%{sonum} Summary: GObject wrapper for libical library Group: System/Libraries Requires: %{name}%{sonum} = %{version} %description glib%{sonum} This package provides a GObject wrapper for libical library with support of GObject Introspection. %package glib-devel Summary: Development files for building against %{name}-glib%{sonum} Group: Development/Libraries/C and C++ Requires: %{name}%{sonum} = %{version} Requires: %{name}-glib%{sonum} = %{version} %description glib-devel Development files for building against %{name}-glib%{sonum}. %package glib-doc Summary: Documentation files for %{name}-glib%{sonum} Group: Documentation/Other %if 0%{?suse_version} >= 1120 BuildArch: noarch %endif %description glib-doc Documentation files for %{name}-glib%{sonum} %prep %autosetup -p1 %build %cmake \ -DICAL_ALLOW_EMPTY_PROPERTIES=true \ -DICAL_GLIB=true \ -DGOBJECT_INTROSPECTION=true \ -DICAL_GLIB_VAPI=true \ -DSHARED_ONLY=true make -j1 %install %cmake_install rm examples/CMakeLists.txt %post -n %{name}%{sonum} -p /sbin/ldconfig %postun -n %{name}%{sonum} -p /sbin/ldconfig %files -n %{name}%{sonum} %license COPYING %doc AUTHORS ReadMe.txt ReleaseNotes.txt TEST THANKS TODO %{_libdir}/libical.so.* %{_libdir}/libical_cxx.so.* %{_libdir}/libicalss.so.* %{_libdir}/libicalss_cxx.so.* %{_libdir}/libicalvcal.so.* %{_libdir}/girepository-1.0/ICal-3.0.typelib %files devel %{_libdir}/libical.so %{_libdir}/libical_cxx.so %{_libdir}/libicalss.so %{_libdir}/libicalss_cxx.so %{_libdir}/libicalvcal.so %{_libdir}/pkgconfig/libical.pc %{_libdir}/cmake/LibIcal/ %{_includedir}/libical/ %{_datadir}/gir-1.0/ICal-3.0.gir %files doc %doc doc/*.txt %doc examples/ %files glib%{sonum} %{_libdir}/libical-glib.so.* %{_libdir}/girepository-1.0/ICalGLib-3.0.typelib %files glib-devel %{_libdir}/libical-glib.so %{_libdir}/pkgconfig/libical-glib.pc %{_includedir}/libical-glib/ %dir %{_datadir}/vala/vapi %{_datadir}/vala/vapi/libical-glib.vapi %{_datadir}/gir-1.0/ICalGLib-3.0.gir %files glib-doc %{_datadir}/gtk-doc/html/%{name}-glib %changelog