3 %bcond_with tests # build with tests
4 %define kdeframever 5.96
6 %define kfname kcalendarcore
11 License: GPL v2+/LGPL v2.1+
13 Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz
14 # Source0-md5: 9e83f5831bdb4efda1f5d44d06e527c5
15 URL: http://www.kde.org/
16 BuildRequires: Qt5Core-devel >= %{qtver}
17 BuildRequires: Qt5Gui-devel
18 BuildRequires: Qt5Test-devel >= 5.9.0
19 BuildRequires: cmake >= 2.8.12
20 BuildRequires: kf5-extra-cmake-modules >= 5.53.0
21 BuildRequires: libical-devel >= 2.0
23 BuildRequires: qt5-build >= %{qtver}
24 BuildRequires: rpmbuild(macros) >= 1.164
25 BuildRequires: shared-mime-info
26 BuildRequires: tar >= 1:1.22
28 Obsoletes: ka5-kcalcore < 20.12.3
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 This library provides access to and handling of calendar data. It
33 supports the standard formats iCalendar and vCalendar and the group
34 scheduling standard iTIP.
36 A calendar contains information like incidences (events, to-dos,
37 journals), alarms, time zones, and other useful information. This API
38 provides access to that calendar information via well known calendar
39 formats iCalendar (or iCal) and the oolder vCalendar.
42 Summary: Header files for %{kfname} development
43 Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname}
44 Group: X11/Development/Libraries
45 Requires: %{name} = %{version}-%{release}
46 Obsoletes: ka5-kcalcore-devel < 20.12.3
49 Header files for %{kfname} development.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe dla programistów używających %{kfname}.
55 %setup -q -n %{kfname}-%{version}
61 %{!?with_tests:-DBUILD_TESTING=OFF} \
62 -DHTML_INSTALL_DIR=%{_kdedocdir} \
63 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
73 rm -rf $RPM_BUILD_ROOT
74 %ninja_install -C build
77 rm -rf $RPM_BUILD_ROOT
79 %post -p /sbin/ldconfig
80 %postun -p /sbin/ldconfig
83 %defattr(644,root,root,755)
84 %ghost %{_libdir}/libKF5CalendarCore.so.5
85 %attr(755,root,root) %{_libdir}/libKF5CalendarCore.so.5.*.*
86 %{_datadir}/qlogging-categories5/kcalendarcore.categories
87 %{_datadir}/qlogging-categories5/kcalendarcore.renamecategories
90 %defattr(644,root,root,755)
91 %{_libdir}/cmake/KF5CalendarCore
92 %{_libdir}/libKF5CalendarCore.so
93 %{_libdir}/qt5/mkspecs/modules/qt_KCalendarCore.pri
94 %{_includedir}/KF5/kcalcore_version.h
95 %{_includedir}/KF5/KCalendarCore
96 %{_pkgconfigdir}/KF5CalendarCore.pc