Accepting request 582201 from home:jengelh:branches:ical3

- Update to new upstream release 3.0.3

OBS-URL: https://build.opensuse.org/request/show/582201
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libical?expand=0&rev=47
This commit is contained in:
2018-03-05 10:12:44 +00:00
committed by Git OBS Bridge
parent 3bc8bea59f
commit 91dfbdaa2d
11 changed files with 36 additions and 330 deletions

View File

@@ -16,35 +16,24 @@
#
%define sonum 2
%define sonum 3
Name: libical
Version: 2.0.0
Version: 3.0.3
Release: 0
Summary: An Implementation of Basic iCAL Protocols
License: MPL-1.0 OR LGPL-2.1-only
License: MPL-2.0 OR LGPL-2.1-only
Group: Development/Libraries/C and C++
URL: http://sourceforge.net/projects/freeassociation/
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
Patch1: 0001-build-ICU-must-appear-as-Requires-in-pkgconfig.patch
# PATCH-FIX-UPSTREAM libical-boo986631-read-past-end.patch boo#986631 mgorse@suse.com -- fix for reading passed end of string (CVE-2016-5827)
Patch2: libical-boo986631-read-past-end.patch
# PATCH-FIX-UPSTREAM libical-boo986631-check-prev-char.patch boo#986631 mgorse@suse.com -- make sure we have a prev_char before checking it
Patch3: libical-boo986631-check-prev-char.patch
# PATCH-FIX-UPSTREAM libical-parser-sanity-check.patch mgorse@suse.com -- sanity check value parameter against what is allowed.
Patch4: libical-parser-sanity-check.patch
# PATCH-FIX-UPSTREAM libical-timezone-use-after-free.patch mgorse@suse.com -- fix use after free in fetch_lat_long_from_string
Patch5: libical-timezone-use-after-free.patch
# PATCH-FIX-UPSTREAM libical-boo1015964-use-after-free.patch boo#986639 boo#1015984 mgorse@suse.com -- copy reqstattype's debug string into its own memory (CVE-2016-5824 CVE-2016-9584).
Patch6: libical-boo1015964-use-after-free.patch
BuildRequires: cmake >= 2.4
BuildRequires: cmake >= 3.1
BuildRequires: gcc-c++
BuildRequires: pkgconfig
BuildRequires: pkgconfig(icu-i18n)
%description
Libical is an open source implementation of the IETF's iCalendar
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.
@@ -56,7 +45,7 @@ Provides: %{name} = %{version}
Obsoletes: %{name} < %{version}
%description -n %{name}%{sonum}
Libical is an open source implementation of the IETF's iCalendar
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.
@@ -67,46 +56,29 @@ Group: Development/Libraries/C and C++
Requires: %{name}%{sonum} = %{version}
%description devel
Libical is an Open Source 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-static
Summary: Additional static library for development with libical
Group: Development/Libraries/C and C++
Requires: %{name}-devel = %{version}
%description devel-static
Libical is an Open Source implementation of the IETF's iCalendar
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 libical-using programs
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 open source implementation of the IETF's iCalendar
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.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%build
%cmake
%cmake -DICAL_GLIB=false -DSHARED_ONLY=true
make -j1
%install
@@ -127,9 +99,6 @@ rm examples/CMakeLists.txt
%{_includedir}/libical/
%{_libdir}/cmake/LibIcal/
%files devel-static
%{_libdir}/*.a
%files doc
%doc doc/*.txt
%doc examples/