2007-01-16 00:22:09 +01:00
|
|
|
#
|
2011-11-19 21:22:48 +01:00
|
|
|
# spec file for package libical
|
2007-01-16 00:22:09 +01:00
|
|
|
#
|
2019-06-03 11:19:30 +02:00
|
|
|
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:22:09 +01:00
|
|
|
#
|
2008-09-24 00:24:43 +02:00
|
|
|
# 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.
|
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-16 00:22:09 +01:00
|
|
|
#
|
|
|
|
|
2012-01-24 10:07:57 +01:00
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
%global flavor @BUILD_FLAVOR@%{nil}
|
2018-03-05 11:12:44 +01:00
|
|
|
%define sonum 3
|
2019-10-03 10:17:13 +02:00
|
|
|
%if "%{flavor}" == "glib"
|
|
|
|
%define name_ext -glib
|
|
|
|
%bcond_without glib
|
|
|
|
%else
|
|
|
|
%define name_ext %{nil}
|
|
|
|
%bcond_with glib
|
|
|
|
%endif
|
|
|
|
Name: libical%{name_ext}
|
2019-06-03 11:19:30 +02:00
|
|
|
Version: 3.0.5
|
2012-01-23 18:53:46 +01:00
|
|
|
Release: 0
|
2019-10-03 10:17:13 +02:00
|
|
|
%if %{without glib}
|
2008-01-30 02:34:24 +01:00
|
|
|
Summary: An Implementation of Basic iCAL Protocols
|
2018-03-05 11:12:44 +01:00
|
|
|
License: MPL-2.0 OR LGPL-2.1-only
|
2012-01-23 18:53:46 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-10-03 10:17:13 +02:00
|
|
|
%else
|
|
|
|
Summary: GObject wrapper for libical library
|
|
|
|
License: MPL-2.0 OR LGPL-2.1-only
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
%endif
|
2018-03-05 11:12:44 +01:00
|
|
|
Url: http://sourceforge.net/projects/freeassociation/
|
2016-10-06 18:50:22 +02:00
|
|
|
#Git-Clone: https://github.com/libical/libical
|
2019-10-03 10:17:13 +02:00
|
|
|
Source: https://github.com/libical/libical/releases/download/v%{version}/libical-%{version}.tar.gz
|
2010-01-14 16:34:20 +01:00
|
|
|
Source2: baselibs.conf
|
2019-09-09 14:43:35 +02:00
|
|
|
Source3: libical-rpmlintrc
|
2018-11-14 07:24:38 +01:00
|
|
|
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
|
2018-03-05 11:12:44 +01:00
|
|
|
BuildRequires: cmake >= 3.1
|
2013-06-11 14:48:30 +02:00
|
|
|
BuildRequires: gcc-c++
|
2018-03-01 11:22:22 +01:00
|
|
|
BuildRequires: pkgconfig
|
2019-10-03 10:17:13 +02:00
|
|
|
BuildRequires: pkgconfig(icu-i18n)
|
|
|
|
%if %{with glib}
|
|
|
|
BuildRequires: gtk-doc
|
2019-09-09 14:35:48 +02:00
|
|
|
BuildRequires: vala
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-introspection-1.0)
|
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
2019-10-03 10:17:13 +02:00
|
|
|
%endif
|
2007-01-16 00:22:09 +01:00
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
%if %{without glib}
|
2007-01-16 00:22:09 +01:00
|
|
|
%description
|
2018-03-05 11:12:44 +01:00
|
|
|
Libical is an implementation of the IETF's iCalendar
|
2008-01-30 02:34:24 +01:00
|
|
|
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.
|
2019-10-03 10:17:13 +02:00
|
|
|
%else
|
|
|
|
%description
|
|
|
|
This package provides a GObject wrapper for libical library with support
|
2019-10-08 10:10:22 +02:00
|
|
|
for GObject Introspection.
|
2019-10-03 10:17:13 +02:00
|
|
|
%endif
|
2008-01-30 02:34:24 +01:00
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
%if %{without glib}
|
2013-06-11 14:48:30 +02:00
|
|
|
%package -n %{name}%{sonum}
|
2008-01-30 02:34:24 +01:00
|
|
|
Summary: An Implementation of Basic iCAL Protocols
|
2014-09-18 11:03:57 +02:00
|
|
|
Group: System/Libraries
|
2013-06-11 14:48:30 +02:00
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
2008-01-30 02:34:24 +01:00
|
|
|
|
2013-06-11 14:48:30 +02:00
|
|
|
%description -n %{name}%{sonum}
|
2018-03-05 11:12:44 +01:00
|
|
|
Libical is an implementation of the IETF's iCalendar
|
2008-01-30 02:34:24 +01:00
|
|
|
calendaring and scheduling protocols (RFC 2445, 2446, and 2447). It
|
2007-01-16 00:22:09 +01:00
|
|
|
parses iCal components and provides a C API for manipulating the
|
|
|
|
component properties, parameters, and subcomponents.
|
|
|
|
|
2011-11-20 21:40:35 +01:00
|
|
|
%package devel
|
2014-09-18 11:03:57 +02:00
|
|
|
Summary: Development files for libical, an implementation of basic iCAL protocols
|
2008-01-30 02:34:24 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2013-06-11 14:48:30 +02:00
|
|
|
Requires: %{name}%{sonum} = %{version}
|
2019-10-03 10:17:13 +02:00
|
|
|
# Typelib should be required, but might create a build cycle
|
|
|
|
# Requires: typelib-1_0-libical%{sonum} = %%{version}
|
2007-01-16 00:22:09 +01:00
|
|
|
|
2011-11-20 21:40:35 +01:00
|
|
|
%description devel
|
2018-03-05 11:12:44 +01:00
|
|
|
Libical is an implementation of the IETF's iCalendar
|
2013-06-11 14:48:30 +02:00
|
|
|
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.
|
|
|
|
|
2011-11-20 21:40:35 +01:00
|
|
|
%package doc
|
2018-03-05 11:12:44 +01:00
|
|
|
Summary: Example source code for programs to use libical
|
2014-09-18 11:03:57 +02:00
|
|
|
Group: Documentation/Other
|
|
|
|
BuildArch: noarch
|
2008-01-30 02:34:24 +01:00
|
|
|
|
2011-11-20 21:40:35 +01:00
|
|
|
%description doc
|
2018-03-05 11:12:44 +01:00
|
|
|
Libical is an implementation of the IETF's iCalendar
|
2008-01-30 02:34:24 +01:00
|
|
|
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.
|
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
%else
|
|
|
|
%package -n %{name}%{sonum}
|
2019-09-09 14:35:48 +02:00
|
|
|
Summary: GObject wrapper for libical library
|
|
|
|
Group: System/Libraries
|
2019-10-03 10:17:13 +02:00
|
|
|
Provides: %{name} = %{version}
|
|
|
|
Obsoletes: %{name} < %{version}
|
2019-09-09 14:35:48 +02:00
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
%description -n %{name}%{sonum}
|
2019-09-09 14:35:48 +02:00
|
|
|
This package provides a GObject wrapper for libical library with support
|
2019-10-08 10:10:22 +02:00
|
|
|
for GObject Introspection.
|
2019-09-09 14:35:48 +02:00
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
%package devel
|
|
|
|
Summary: Development files for building against %{name}
|
2019-09-09 14:35:48 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2019-10-03 10:17:13 +02:00
|
|
|
Requires: %{name} = %{version}
|
|
|
|
Requires: libical%{sonum} = %{version}
|
|
|
|
Requires: typelib-1_0-%{name}%{sonum} = %{version}
|
2019-09-09 14:35:48 +02:00
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
%description devel
|
|
|
|
Development files for building against %{name}%{sonum}
|
2019-09-09 14:35:48 +02:00
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation files for %{name}%{sonum}
|
2019-09-09 14:35:48 +02:00
|
|
|
Group: Documentation/Other
|
|
|
|
BuildArch: noarch
|
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
%description doc
|
|
|
|
Documentation files for %{name}%{sonum}
|
|
|
|
|
|
|
|
%package -n typelib-1_0-libical%{sonum}
|
|
|
|
Summary: Introspection bindings for libical
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n typelib-1_0-libical%{sonum}
|
|
|
|
This package provides the gobject-introspection bindings for libical.
|
|
|
|
|
|
|
|
%package -n typelib-1_0-%{name}%{sonum}
|
|
|
|
Summary: Introspection bindings for the libical glib bindings.
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n typelib-1_0-%{name}%{sonum}
|
|
|
|
This package provides the gobject-introspection bindings for libical-glib.
|
|
|
|
%endif
|
2019-09-09 14:35:48 +02:00
|
|
|
|
2008-12-15 14:48:54 +01:00
|
|
|
%prep
|
2019-10-03 10:17:13 +02:00
|
|
|
%autosetup -p1 -n libical-%{version}
|
2007-01-16 00:22:09 +01:00
|
|
|
|
|
|
|
%build
|
2019-09-09 14:35:48 +02:00
|
|
|
%cmake \
|
|
|
|
-DICAL_ALLOW_EMPTY_PROPERTIES=true \
|
2019-10-03 10:17:13 +02:00
|
|
|
%if %{with glib}
|
2019-09-09 14:35:48 +02:00
|
|
|
-DICAL_GLIB=true \
|
|
|
|
-DGOBJECT_INTROSPECTION=true \
|
|
|
|
-DICAL_GLIB_VAPI=true \
|
2019-10-03 10:17:13 +02:00
|
|
|
%else
|
|
|
|
-DICAL_GLIB=false \
|
|
|
|
%endif
|
2019-09-09 14:35:48 +02:00
|
|
|
-DSHARED_ONLY=true
|
2014-09-26 10:25:22 +02:00
|
|
|
make -j1
|
2007-01-16 00:22:09 +01:00
|
|
|
|
|
|
|
%install
|
2014-09-18 11:03:57 +02:00
|
|
|
%cmake_install
|
2013-06-11 14:48:30 +02:00
|
|
|
rm examples/CMakeLists.txt
|
2019-10-03 10:17:13 +02:00
|
|
|
%if %{with glib}
|
|
|
|
rm -r %{buildroot}%{_includedir}/libical/
|
|
|
|
rm -r %{buildroot}%{_libdir}/cmake/LibIcal
|
|
|
|
rm %{buildroot}%{_libdir}/libical.so*
|
|
|
|
rm %{buildroot}%{_libdir}/libical_cxx.so*
|
|
|
|
rm %{buildroot}%{_libdir}/libicalss.so*
|
|
|
|
rm %{buildroot}%{_libdir}/libicalss_cxx.so*
|
|
|
|
rm %{buildroot}%{_libdir}/libicalvcal.so*
|
|
|
|
rm %{buildroot}%{_libdir}/pkgconfig/libical.pc
|
|
|
|
%endif
|
2014-12-29 09:48:43 +01:00
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
%if %{without glib}
|
2013-06-11 14:48:30 +02:00
|
|
|
%post -n %{name}%{sonum} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}%{sonum} -p /sbin/ldconfig
|
2019-10-03 10:17:13 +02:00
|
|
|
%else
|
|
|
|
%post -n %{name} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name} -p /sbin/ldconfig
|
|
|
|
%endif
|
2007-01-16 00:22:09 +01:00
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
%if %{without glib}
|
2013-06-11 14:48:30 +02:00
|
|
|
%files -n %{name}%{sonum}
|
2018-03-01 11:22:22 +01:00
|
|
|
%license COPYING
|
|
|
|
%doc AUTHORS ReadMe.txt ReleaseNotes.txt TEST THANKS TODO
|
2019-09-09 14:35:48 +02:00
|
|
|
%{_libdir}/libical.so.*
|
|
|
|
%{_libdir}/libical_cxx.so.*
|
|
|
|
%{_libdir}/libicalss.so.*
|
|
|
|
%{_libdir}/libicalss_cxx.so.*
|
|
|
|
%{_libdir}/libicalvcal.so.*
|
2007-01-16 00:22:09 +01:00
|
|
|
|
2011-11-20 21:40:35 +01:00
|
|
|
%files devel
|
2019-09-09 14:35:48 +02:00
|
|
|
%{_libdir}/libical.so
|
|
|
|
%{_libdir}/libical_cxx.so
|
|
|
|
%{_libdir}/libicalss.so
|
|
|
|
%{_libdir}/libicalss_cxx.so
|
|
|
|
%{_libdir}/libicalvcal.so
|
2009-01-08 18:37:38 +01:00
|
|
|
%{_libdir}/pkgconfig/libical.pc
|
2014-12-29 09:48:43 +01:00
|
|
|
%{_libdir}/cmake/LibIcal/
|
2019-09-09 14:35:48 +02:00
|
|
|
%{_includedir}/libical/
|
2013-06-11 14:48:30 +02:00
|
|
|
|
2011-11-20 21:40:35 +01:00
|
|
|
%files doc
|
2013-06-11 14:48:30 +02:00
|
|
|
%doc doc/*.txt
|
|
|
|
%doc examples/
|
2019-10-03 10:17:13 +02:00
|
|
|
%else
|
|
|
|
%files -n %{name}%{sonum}
|
2019-09-09 14:35:48 +02:00
|
|
|
%{_libdir}/libical-glib.so.*
|
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
%files devel
|
2019-09-09 14:35:48 +02:00
|
|
|
%{_libdir}/libical-glib.so
|
|
|
|
%{_libdir}/pkgconfig/libical-glib.pc
|
|
|
|
%{_includedir}/libical-glib/
|
|
|
|
%dir %{_datadir}/vala/vapi
|
|
|
|
%{_datadir}/vala/vapi/libical-glib.vapi
|
2019-10-03 10:17:13 +02:00
|
|
|
# This should really be in libical-devel
|
|
|
|
%{_datadir}/gir-1.0/ICal-3.0.gir
|
2019-09-09 14:35:48 +02:00
|
|
|
%{_datadir}/gir-1.0/ICalGLib-3.0.gir
|
|
|
|
|
2019-10-03 10:17:13 +02:00
|
|
|
%files doc
|
|
|
|
%{_datadir}/gtk-doc/html/libical-glib
|
|
|
|
|
|
|
|
%files -n typelib-1_0-libical%{sonum}
|
|
|
|
%{_libdir}/girepository-1.0/ICal-3.0.typelib
|
|
|
|
|
|
|
|
%files -n typelib-1_0-%{name}%{sonum}
|
|
|
|
%{_libdir}/girepository-1.0/ICalGLib-3.0.typelib
|
|
|
|
%endif
|
2019-09-09 14:35:48 +02:00
|
|
|
|
2008-01-30 02:34:24 +01:00
|
|
|
%changelog
|