78 lines
2.2 KiB
RPMSpec
78 lines
2.2 KiB
RPMSpec
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
|