commit ef8fd6c639ed5b81c1073435f8ebbbac0211fa3f Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 10:56:33 2019 -0400 Package init diff --git a/libical-3.0.3-covscan.patch b/libical-3.0.3-covscan.patch new file mode 100644 index 0000000..3ed01f2 --- /dev/null +++ b/libical-3.0.3-covscan.patch @@ -0,0 +1,11 @@ +diff -up libical-3.0.3/src/libical-glib/tools/generator.c.covscan libical-3.0.3/src/libical-glib/tools/generator.c +--- libical-3.0.3/src/libical-glib/tools/generator.c.covscan 2018-07-19 15:53:11.291351554 +0200 ++++ libical-3.0.3/src/libical-glib/tools/generator.c 2018-07-19 15:53:25.200351362 +0200 +@@ -1142,7 +1142,6 @@ void generate_forward_declarations_heade + if (c == '$') { + if ((c = fgetc(in)) != '{' && c != '^') { + printf("The following char is not {"); +- g_free (buffer); + fclose(in); + fclose(out); + return; diff --git a/libical-3.0.3.tar.gz b/libical-3.0.3.tar.gz new file mode 100644 index 0000000..0f0f9fb Binary files /dev/null and b/libical-3.0.3.tar.gz differ diff --git a/libical.spec b/libical.spec new file mode 100644 index 0000000..8f8c59b --- /dev/null +++ b/libical.spec @@ -0,0 +1,77 @@ +Name: libical +Version: 3.0.3 +Release: 8 +Summary: An Open Source implementation of the iCalendar protocols and protocol data formats. +License: LGPLv2 or MPLv2.0 +URL: https://libical.github.io/libical/ +Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz + +Patch1: libical-3.0.3-covscan.patch + +BuildRequires: gcc-c++ cmake gtk-doc perl-interpreter vala pkgconfig +BuildRequires: python3 python3-pip python3-gobject +BuildRequires: pkgconfig(icu-uc) pkgconfig(gobject-2.0) pkgconfig(gobject-introspection-1.0) pkgconfig(libxml-2.0) pkgconfig(icu-i18n) +Provides: libical-glib +Obsoletes: libical-glib + +%description +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 +Summary: Development files for %{name} +Requires: %{name} = %{version}-%{release} +Provides: libical-glib-doc, libical-glib-devel +Obsoletes: libical-glib-doc, libical-glib-devel + +%description devel +Contains libraries and header files for libical. + +%prep +%autosetup -n %{name}-%{version} -p1 + +%build +mkdir -p %{_target_platform} +pushd %{_target_platform} +%{cmake} .. \ + -DUSE_INTEROPERABLE_VTIMEZONES:BOOL=true \ + -DICAL_ALLOW_EMPTY_PROPERTIES:BOOL=true \ + -DGOBJECT_INTROSPECTION:BOOL=true \ + -DICAL_GLIB:BOOL=true \ + -DICAL_GLIB_VAPI:BOOL=true \ + -DSHARED_ONLY:BOOL=true +popd + +%make_build -j1 -C %{_target_platform} + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +%check +make test ARGS="-V" -C %{_target_platform} + +%ldconfig_post +%ldconfig_postun + +%files +%doc ReadMe.txt THANKS +%license LICENSE +%{_libdir}/*.so.3* +%{_libdir}/girepository-1.0/*.typelib +%{_datadir}/gir-1.0/*.gir + +%files devel +%doc doc/UsingLibical.txt +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%{_libdir}/cmake/LibIcal/ +%{_includedir}/libical/ +%{_includedir}/libical-glib/ +%{_datadir}/vala/vapi/libical-glib.vapi +%{_datadir}/gtk-doc/html/%{name}-glib + +%changelog +* Sat Sep 14 2019 chenzhenyu - 3.0.3-8 +- Package init