3c95f4
Summary:	Reference implementation of the iCalendar data type and serialization format
3c95f4
Name:		libical
3c95f4
Version:	3.0.3
3c95f4
Release:	3%{?dist}
3c95f4
License:	LGPLv2 or MPLv2.0
3c95f4
URL:		https://libical.github.io/libical/
3c95f4
Source:		https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
3c95f4
3c95f4
Patch01:	libical-3.0.3-covscan.patch
3c95f4
3c95f4
BuildRequires:	gcc
3c95f4
BuildRequires:	gcc-c++
3c95f4
BuildRequires:	cmake
3c95f4
BuildRequires:	gtk-doc
3c95f4
BuildRequires:	pkgconfig(gobject-2.0)
3c95f4
BuildRequires:	pkgconfig(gobject-introspection-1.0)
3c95f4
BuildRequires:	pkgconfig(libxml-2.0)
3c95f4
BuildRequires:	pkgconfig(icu-i18n)
3c95f4
BuildRequires:	pkgconfig(icu-uc)
3c95f4
BuildRequires:	perl-interpreter
3c95f4
BuildRequires:	python3
3c95f4
BuildRequires:	python3-pip
3c95f4
BuildRequires:	python3-gobject
3c95f4
BuildRequires:	vala
3c95f4
Requires:	tzdata
3c95f4
3c95f4
%description
3c95f4
Reference implementation of the iCalendar data type and serialization format
3c95f4
used in dozens of calendaring and scheduling products.
3c95f4
3c95f4
%package devel
3c95f4
Summary:	Development files for libical
3c95f4
Requires:	%{name}%{?_isa} = %{version}-%{release}
3c95f4
Requires:	pkgconfig(icu-i18n)
3c95f4
Requires:	pkgconfig(icu-uc)
3c95f4
3c95f4
%description devel
3c95f4
The libical-devel package contains libraries and header files for developing
3c95f4
applications that use libical.
3c95f4
3c95f4
%package glib
3c95f4
Summary:	GObject wrapper for libical library
3c95f4
Provides:	libical-glib%{?_isa} = %{version}-%{release}
3c95f4
Obsoletes:	libical-glib < 3.0.0
3c95f4
Requires:	%{name}%{?_isa} = %{version}-%{release}
3c95f4
3c95f4
%description glib
3c95f4
This package provides a GObject wrapper for libical library with support
3c95f4
of GObject Introspection.
3c95f4
3c95f4
%package glib-doc
3c95f4
Summary:	Documentation files for %{name}-glib
3c95f4
Group:		Development/Libraries
3c95f4
Provides:	libical-glib-doc = %{version}-%{release}
3c95f4
Obsoletes:	libical-glib-doc < 3.0.0
3c95f4
BuildArch:	noarch
3c95f4
3c95f4
%description glib-doc
3c95f4
This package contains developer documentation for %{name}-glib.
3c95f4
3c95f4
%package glib-devel
3c95f4
Summary:	Development files for building against %{name}-glib
3c95f4
Group:		Development/Libraries
3c95f4
Provides:	libical-glib-devel%{?_isa} = %{version}-%{release}
3c95f4
Obsoletes:	libical-glib-devel < 3.0.0
3c95f4
Requires:	%{name}-devel%{?_isa} = %{version}-%{release}
3c95f4
Requires:	%{name}-glib%{?_isa} = %{version}-%{release}
3c95f4
Requires:	pkgconfig(glib-2.0)
3c95f4
Requires:	pkgconfig(gobject-2.0)
3c95f4
3c95f4
%description glib-devel
3c95f4
Development files needed for building things which link against %{name}-glib.
3c95f4
3c95f4
%prep
3c95f4
%setup -q
3c95f4
3c95f4
%patch01 -p1 -b .covscan
3c95f4
3c95f4
%build
3c95f4
mkdir -p %{_target_platform}
3c95f4
pushd %{_target_platform}
3c95f4
%{cmake} .. \
3c95f4
  -DUSE_INTEROPERABLE_VTIMEZONES:BOOL=true \
3c95f4
  -DICAL_ALLOW_EMPTY_PROPERTIES:BOOL=true \
3c95f4
  -DGOBJECT_INTROSPECTION:BOOL=true \
3c95f4
  -DICAL_GLIB:BOOL=true \
3c95f4
  -DICAL_GLIB_VAPI:BOOL=true \
3c95f4
  -DSHARED_ONLY:BOOL=true
3c95f4
popd
3c95f4
3c95f4
make %{?_smp_mflags} -C %{_target_platform} -j1
3c95f4
3c95f4
%install
3c95f4
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
3c95f4
3c95f4
%check
3c95f4
make test ARGS="-V" -C %{_target_platform}
3c95f4
3c95f4
%ldconfig_scriptlets
3c95f4
3c95f4
%files
3c95f4
%doc LICENSE ReadMe.txt THANKS
3c95f4
%{_libdir}/libical.so.3*
3c95f4
%{_libdir}/libical_cxx.so.3*
3c95f4
%{_libdir}/libicalss.so.3*
3c95f4
%{_libdir}/libicalss_cxx.so.3*
3c95f4
%{_libdir}/libicalvcal.so.3*
3c95f4
%{_libdir}/girepository-1.0/libical-%{version}.typelib
3c95f4
%{_datadir}/gir-1.0/libical-%{version}.gir
3c95f4
3c95f4
%files devel
3c95f4
%doc doc/UsingLibical.txt
3c95f4
%{_libdir}/libical.so
3c95f4
%{_libdir}/libical_cxx.so
3c95f4
%{_libdir}/libicalss.so
3c95f4
%{_libdir}/libicalss_cxx.so
3c95f4
%{_libdir}/libicalvcal.so
3c95f4
%{_libdir}/pkgconfig/libical.pc
3c95f4
%{_libdir}/cmake/LibIcal/
3c95f4
%{_includedir}/libical/
3c95f4
3c95f4
%files glib
3c95f4
%{_libdir}/libical-glib.so.3*
3c95f4
%{_libdir}/girepository-1.0/ICalGLib-3.0.typelib
3c95f4
%{_datadir}/gir-1.0/ICalGLib-3.0.gir
3c95f4
3c95f4
%files glib-devel
3c95f4
%{_libdir}/libical-glib.so
3c95f4
%{_libdir}/pkgconfig/libical-glib.pc
3c95f4
%{_includedir}/libical-glib/
3c95f4
%{_datadir}/vala/vapi/libical-glib.vapi
3c95f4
3c95f4
%files glib-doc
3c95f4
%{_datadir}/gtk-doc/html/%{name}-glib
3c95f4
3c95f4
%changelog
3c95f4
* Thu Jul 19 2018 Milan Crha <mcrha@redhat.com> - 3.0.3-3
3c95f4
- Update Requires of libical-glib-devel
3c95f4
- Address a warning found by Coverity Scan
3c95f4
3c95f4
* Mon Mar 12 2018 Christian Stadelmann <fedora@genodeftest.de> - 3.0.3-2
3c95f4
- Update upstream URL
3c95f4
3c95f4
* Tue Feb 27 2018 Milan Crha <mcrha@redhat.com> - 3.0.3-1
3c95f4
- Update to 3.0.3
3c95f4
- Remove patch to allow DATE-only COMPLETED property (fixed upstream)
3c95f4
3c95f4
* Tue Feb 27 2018 Milan Crha <mcrha@redhat.com> - 3.0.2-2
3c95f4
- Add upstream patch to allow DATE-only COMPLETED property
3c95f4
3c95f4
* Mon Feb 19 2018 Milan Crha <mcrha@redhat.com> - 3.0.2-1
3c95f4
- Update to 3.0.2
3c95f4
3c95f4
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-4
3c95f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3c95f4
3c95f4
* Mon Feb 05 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.0.1-3
3c95f4
- Switch to %%ldconfig_scriptlets
3c95f4
3c95f4
* Thu Nov 30 2017 Pete Walter <pwalter@fedoraproject.org> - 3.0.1-2
3c95f4
- Rebuild for ICU 60.1
3c95f4
3c95f4
* Mon Nov 20 2017 Milan Crha <mcrha@redhat.com> - 3.0.1-1
3c95f4
- Update to 3.0.1
3c95f4
3c95f4
* Mon Nov 06 2017 Milan Crha <mcrha@redhat.com> - 3.0.0-2
3c95f4
- Add a patch to Correct possible deadlock caused in icaltimezone_load_builtin_timezone()
3c95f4
3c95f4
* Mon Nov 06 2017 Milan Crha <mcrha@redhat.com> - 3.0.0-1
3c95f4
- Update to 3.0.0
3c95f4
3c95f4
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-12
3c95f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3c95f4
3c95f4
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-11
3c95f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3c95f4
3c95f4
* Mon Jul 03 2017 Milan Crha <mcrha@redhat.com> - 2.0.0-10
3c95f4
- Build with -DICAL_ALLOW_EMPTY_PROPERTIES=true (#1466906)
3c95f4
3c95f4
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-9
3c95f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3c95f4
3c95f4
* Fri Apr 15 2016 David Tardon <dtardon@redhat.com> - 2.0.0-8
3c95f4
- rebuild for ICU 57.1
3c95f4
3c95f4
* Thu Feb 11 2016 Milan Crha <mcrha@redhat.com> - 2.0.0-7
3c95f4
- Add patch for possible use-after-free of icalrecurrencetype::rscale
3c95f4
3c95f4
* Mon Feb 08 2016 Milan Crha <mcrha@redhat.com> - 2.0.0-6
3c95f4
- Add libicu dependency to libical-devel subpackage
3c95f4
3c95f4
* Tue Feb 02 2016 Milan Crha <mcrha@redhat.com> - 2.0.0-5
3c95f4
- Build with libicu, to enable RSCALE support
3c95f4
3c95f4
* Mon Feb 01 2016 Rex Dieter <rdieter@fedoraproject.org> 2.0.0-4
3c95f4
- %%build: -DSHARED_ONLY=TRUE (#1303598)
3c95f4
3c95f4
* Fri Jan 29 2016 Milan Crha <mcrha@redhat.com> - 2.0.0-3
3c95f4
- Build with -DUSE_INTEROPERABLE_VTIMEZONES=true
3c95f4
3c95f4
* Mon Jan 18 2016 Milan Crha <mcrha@redhat.com> - 2.0.0-2
3c95f4
- Add patch for missing function (icallangbind_quote_as_ical_r)
3c95f4
3c95f4
* Mon Jan 18 2016 Milan Crha <mcrha@redhat.com> - 2.0.0-1
3c95f4
- Update to 2.0.0
3c95f4
- Remove patch for RH bug #1176204 (fixed upstream)
3c95f4
- Add patch to fix ARM build break
3c95f4
3c95f4
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
3c95f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3c95f4
3c95f4
* Mon Jan 26 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.0.1-1
3c95f4
- Update to 1.0.1
3c95f4
3c95f4
* Mon Jan 12 2015 Matthias Clasen <mclasen@redhat.com> - 1.0-9
3c95f4
- Fix a stupid typo in the definition of icaltime_days_in_year
3c95f4
3c95f4
* Mon Dec 22 2014 Milan Crha <mcrha@redhat.com> - 1.0-8
3c95f4
- Add patch for RH bug #1176204 (Avoid putenv() in libical)
3c95f4
3c95f4
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-7
3c95f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3c95f4
3c95f4
* Tue Jul 08 2014 Rex Dieter <rdieter@fedoraproject.org> 1.0-6
3c95f4
- minor .spec cleanup
3c95f4
3c95f4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
3c95f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3c95f4
3c95f4
* Thu Nov 21 2013 Milan Crha <mcrha@redhat.com> - 1.0-4
3c95f4
- Add patch to fix icalvalue_kind enum generation (RH bug #1023020)
3c95f4
3c95f4
* Sun Oct 20 2013 Robert Scheck <robert@fedoraproject.org> 1.0-3
3c95f4
- Fixed timezone issue with evolution-data-server (#1021136)
3c95f4
3c95f4
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2
3c95f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3c95f4
3c95f4
* Fri May 24 2013 Rex Dieter <rdieter@fedoraproject.org> - 1.0-1
3c95f4
- Update to 1.0
3c95f4
3c95f4
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.48-4
3c95f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3c95f4
3c95f4
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.48-3
3c95f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3c95f4
3c95f4
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.48-2
3c95f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3c95f4
3c95f4
* Sat Dec 17 2011 Robert Scheck <robert@fedoraproject.org> 0.48-1
3c95f4
- Upgrade to 0.48 (#664412, #696891, #743236)
3c95f4
3c95f4
* Mon Oct 24 2011 Robert Scheck <robert@fedoraproject.org> 0.47-1
3c95f4
- Upgrade to 0.47 (#743236)
3c95f4
3c95f4
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.46-3
3c95f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3c95f4
3c95f4
* Sun Dec 19 2010 Robert Scheck <robert@fedoraproject.org> 0.46-2
3c95f4
- Added patch to work around upstream's broken AC_PROG_MKDIR_P
3c95f4
3c95f4
* Sun Dec 19 2010 Robert Scheck <robert@fedoraproject.org> 0.46-1
3c95f4
- Upgrade to 0.46 (#525933, #628893)
3c95f4
- Fixed race in populating builtin timezone components (#637150)
3c95f4
- Fixed wrong ICAL_ERRORS_ARE_FATAL preprocessor check (#575715)
3c95f4
3c95f4
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.43-5
3c95f4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3c95f4
3c95f4
* Sun Mar 15 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.43-4
3c95f4
- Updated patch to fix #includes in the headers to work with
3c95f4
  'pkg-config --cflags libical'. (Red Hat Bugzilla #484091)
3c95f4
3c95f4
* Wed Feb 25 2009 Release Engineering <rel-eng@.fedoraproject.org> - 0.43-3
3c95f4
- Autorebuild for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3c95f4
3c95f4
* Tue Feb 17 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.43-2
3c95f4
- Added patch to fix CFLAGS in libical.pc. (Red Hat Bugzilla #484091)
3c95f4
3c95f4
* Tue Jan 13 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.43-1
3c95f4
- Version bump to 0.43.
3c95f4
- Added patch to fix implicit pointer conversion from Debian. (Debian BTS
3c95f4
  #511598)
3c95f4
- Upstream has switched off ICAL_ERRORS_ARE_FATAL by default. This behaviour
3c95f4
  is being retained across all distributions, including Fedora 11.
3c95f4
- Added 'Requires: tzdata'.
3c95f4
- Enabled backtrace dumps in the syslog.
3c95f4
3c95f4
* Thu Jan 08 2009 Debarshi Ray <rishi@fedoraproject.org> - 0.41-2
3c95f4
- Switched off ICAL_ERRORS_ARE_FATAL for all distributions, except Fedora 11.
3c95f4
  (Red Hat Bugzilla #478331)
3c95f4
3c95f4
* Sun Nov 23 2008 Debarshi Ray <rishi@fedoraproject.org> - 0.41-1
3c95f4
- Version bump to 0.41. (Red Hat Bugzilla #469252)
3c95f4
- Disabled C++ bindings.
3c95f4
3c95f4
* Tue Oct 28 2008 Kevin Kofler <Kevin@tigcc.ticalc.org> - 0.40-1
3c95f4
- Version bump to 0.40. (Red Hat Bugzilla #466359)
3c95f4
- Add patch from upstream to fix crash in icalvalue.c.
3c95f4
- Update makefile patch, remove the test part (already applied).
3c95f4
- Package libical.pc, add Requires: pkgconfig to -devel.
3c95f4
3c95f4
* Wed Sep 03 2008 Debarshi Ray <rishi@fedoraproject.org> - 0.32-1
3c95f4
- Version bump to 0.32.
3c95f4
- Parallel build problems fixed.
3c95f4
3c95f4
* Sun Jul 27 2008 Jeff Perry <jeffperry_fedora@sourcesink.com> - 0.31-3
3c95f4
- Added 'BuildRequires: bison byacc flex'.
3c95f4
3c95f4
* Sun Jul 27 2008 Debarshi Ray <rishi@fedoraproject.org> - 0.31-2
3c95f4
- Fixed linkage problems and disabled parallel build till upstream accepts fix.
3c95f4
3c95f4
* Thu Jul 17 2008 Jeff Perry <jeffperry_fedora@sourcesink.com> - 0.31-1
3c95f4
- Version bump to 0.31.
3c95f4
3c95f4
* Thu Jul 17 2008 Debarshi Ray <rishi@fedoraproject.org> - 0.30-4
3c95f4
- Changed value of License according to Fedora licensing guidelines.
3c95f4
- Enabled reentrant system calls and C++ bindings.
3c95f4
- Omitted unused direct shared library dependencies.
3c95f4
- Added ChangeLog, COPYING, LICENSE, NEWS and README to doc and dropped
3c95f4
  examples.
3c95f4
3c95f4
* Wed Apr 02 2008 Jakub 'Livio' Rusinek <jakub.rusinek@gmail.com> - 0.30-3
3c95f4
- Source URL... Fixed
3c95f4
3c95f4
* Wed Apr 02 2008 Jakub 'Livio' Rusinek <jakub.rusinek@gmail.com> - 0.30-2
3c95f4
- Removed untrue note about libical's homepage (to get rid of eventuall mess)
3c95f4
3c95f4
* Sat Feb 23 2008 David Nielsen <gnomeuser@gmail.com> - 0.30-1
3c95f4
- Switch to freeassociation libical
3c95f4
- bump to 0.30
3c95f4
3c95f4
* Sat Feb 09 2008 Jakub 'Livio' Rusinek <jakub.rusinek@gmail.com> - 0.27-5
3c95f4
- Mass rebuild for new GCC... Done
3c95f4
3c95f4
* Sat Jan 19 2008 Jakub 'Livio' Rusinek <jakub.rusinek@gmail.com> - 0.27-4
3c95f4
- Licence... Fixed
3c95f4
3c95f4
* Fri Jan 18 2008 Jakub 'Livio' Rusinek <jakub.rusinek@gmail.com> - 0.27-3
3c95f4
- Files section... Fixed
3c95f4
3c95f4
* Thu Jan 17 2008 Jakub 'Livio' Rusinek <jakub.rusinek@gmail.com> - 0.27-2
3c95f4
- Source... Changed
3c95f4
- Debug information in libical main package... Excluded
3c95f4
- Non-numbered .so files in libical main package... Moved
3c95f4
- libical-devel documentation... Added
3c95f4
3c95f4
* Mon Dec 24 2007 Jakub 'Livio' Rusinek <jakub.rusinek@gmail.com> - 0.27-1
3c95f4
- Initial release