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
#
2011-11-19 21:22:48 +01:00
# Copyright (c) 2011 SUSE LINUX Products 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.
2008-01-30 02:34:24 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
2007-01-16 00:22:09 +01:00
#
2008-04-10 14:29:12 +02:00
2011-11-19 21:22:48 +01:00
2008-01-30 02:34:24 +01:00
Name : libical
2011-11-19 21:22:48 +01:00
BuildRequires : db-devel libtool pkg-config python-devel
2008-01-30 02:34:24 +01:00
Url : http://sourceforge.net/projects/freeassociation/
2011-11-19 21:22:48 +01:00
License : MPL ..
2008-01-30 02:34:24 +01:00
Group : Development/Libraries/C and C++
2011-03-12 22:53:21 +01:00
Version : 0.46
2011-11-19 21:22:48 +01:00
Release : 1
2008-01-30 02:34:24 +01:00
Summary : An Implementation of Basic iCAL Protocols
2009-01-08 18:37:38 +01:00
Source : libical-%{version} .tar.bz2
2010-01-14 16:34:20 +01:00
Source2 : baselibs.conf
2011-03-12 22:53:21 +01:00
# libical-0.46-fix-race.patch gber@opensuse.org -- Fixes a race in populating builtin timezone components (from upstream svn)
Patch0 : libical-0.46-fix-race.patch
# libical-0.46-fix-fatal-error-macro-usage.patch sf#3140405 gber@opensuse.org -- Replace broken ICAL_ERRORS_ARE_FATAL preprocessor conditions with the correct check for the macros value
Patch1 : libical-0.46-fix-fatal-error-macro-usage.patch
# libical-0.46-fix-endless-loop.patch sf#3177380 gber@opensuse.org -- Fixes endless loop in recurrence calculation
Patch2 : libical-0.46-fix-endless-loop.patch
2008-01-30 02:34:24 +01:00
BuildRoot : %{_tmppath} /%{name} -%{version} -build
2009-01-08 18:37:38 +01:00
Requires : libical0 = %{version}
2007-01-16 00:22:09 +01:00
%description
2008-01-30 02:34:24 +01:00
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 -n libical0
2009-11-16 12:22:43 +01:00
License : MPL ..
2008-01-30 02:34:24 +01:00
Summary : An Implementation of Basic iCAL Protocols
Group : Development/Libraries/C and C++
2008-05-07 23:23:21 +02:00
Provides : libical = %{version}
2009-11-16 12:22:43 +01:00
Obsoletes : libical < %{version}
2008-01-30 02:34:24 +01:00
%description -n libical0
Libical is an open source implementation of the IETF's iCalendar
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.
2008-01-30 02:34:24 +01:00
%package -n libical-devel
2009-11-16 12:22:43 +01:00
License : MPL ..
2008-01-30 02:34:24 +01:00
Summary : An implementation of basic iCAL protocols
Group : Development/Libraries/C and C++
2009-11-16 12:22:43 +01:00
Requires : libical = %{version}
2007-01-16 00:22:09 +01:00
2008-01-30 02:34:24 +01:00
%description -n libical-devel
2007-01-16 00:22:09 +01:00
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.
2008-01-30 02:34:24 +01:00
%package -n libical-doc
2009-11-16 12:22:43 +01:00
License : MPL ..
2008-01-30 02:34:24 +01:00
Summary : An Implementation of Basic iCAL Protocols
Group : Development/Libraries/C and C++
2009-01-08 18:37:38 +01:00
Requires : libical = %{version}
2008-01-30 02:34:24 +01:00
%description -n libical-doc
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.
2008-12-15 14:48:54 +01:00
%prep
2011-03-12 22:53:21 +01:00
%setup -q
%patch0 -p2
%patch1 -p2
%patch2 -p2
2007-01-16 00:22:09 +01:00
%build
2011-03-12 22:53:21 +01:00
# triger autoreconf since the 0.46 tarball is missing autotools bootstrap files
autoreconf -f -i
2009-01-08 18:37:38 +01:00
%{configure} \
--with-bdb4 \
--with-bdb4-dir=%{_prefix} \
--without-builtintz \
--enable-shared \
--disable-static
2010-01-14 16:34:20 +01:00
%{__make} %{?_smp_mflags}
2007-01-16 00:22:09 +01:00
%install
2009-01-08 18:37:38 +01:00
%{makeinstall}
%{__rm} $RPM_BUILD_ROOT /%{_libdir} /libical*.la
%{__rm} doc/Makefile*
%{__rm} -rf examples/.deps
%{__rm} -rf examples/.libs
%{__rm} examples/*.o
%{__rm} examples/doesnothing
%{__rm} scripts/Makefile*
%{__sed} -i -e '1s,.*,#!/usr/bin/perl,' scripts/mkneticali.pl
2007-01-16 00:22:09 +01:00
2008-01-30 02:34:24 +01:00
%post -n libical0 -p /sbin/ldconfig
2007-01-16 00:22:09 +01:00
2008-01-30 02:34:24 +01:00
%postun -n libical0 -p /sbin/ldconfig
2007-01-16 00:22:09 +01:00
2008-01-30 02:34:24 +01:00
%files -n libical0
2007-01-16 00:22:09 +01:00
%defattr (-,root,root)
2008-01-30 02:34:24 +01:00
%doc README AUTHORS ChangeLog NEWS TEST THANKS TODO
2007-01-16 00:22:09 +01:00
%{_libdir} /*.so.*
2008-01-30 02:34:24 +01:00
%files -n libical-devel
2007-01-16 00:22:09 +01:00
%defattr (-,root,root)
%{_libdir} /*.so
2009-01-08 18:37:38 +01:00
%{_libdir} /pkgconfig/libical.pc
%{_includedir} /ical.h
%{_includedir} /libical
2007-01-16 00:22:09 +01:00
2008-01-30 02:34:24 +01:00
%files -n libical-doc
%defattr (-,root,root)
%doc doc examples scripts
%changelog