Package init

This commit is contained in:
overweight 2019-09-30 10:56:33 -04:00
commit ef8fd6c639
3 changed files with 88 additions and 0 deletions

View File

@ -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;

BIN
libical-3.0.3.tar.gz Normal file

Binary file not shown.

77
libical.spec Normal file
View File

@ -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 <chenzhenyu13@huawei.com> - 3.0.3-8
- Package init