]>
Commit | Line | Data |
---|---|---|
18c4bdd4 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
e107bdf6 | 4 | %define kdeframever 5.97 |
b2dcdccd | 5 | %define qtver 5.15.2 |
2df15a7c WF |
6 | %define kfname kcalendarcore |
7 | Summary: kcalendarcore | |
8 | Name: kf5-%{kfname} | |
e107bdf6 | 9 | Version: 5.97.0 |
6f787891 | 10 | Release: 1 |
2df15a7c WF |
11 | License: GPL v2+/LGPL v2.1+ |
12 | Group: X11/Libraries | |
28677feb | 13 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
e107bdf6 | 14 | # Source0-md5: a77b9f69f5975628b8ca33d97ae2a39d |
2df15a7c WF |
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 | |
22 | BuildRequires: ninja | |
23 | BuildRequires: qt5-build >= %{qtver} | |
24 | BuildRequires: rpmbuild(macros) >= 1.164 | |
25 | BuildRequires: shared-mime-info | |
26 | BuildRequires: tar >= 1:1.22 | |
27 | BuildRequires: xz | |
1c25e0a2 | 28 | Obsoletes: ka5-kcalcore < 20.12.3 |
2df15a7c WF |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
30 | ||
31 | %description | |
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. | |
35 | ||
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. | |
40 | ||
41 | %package devel | |
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} | |
1c25e0a2 | 46 | Obsoletes: ka5-kcalcore-devel < 20.12.3 |
2df15a7c WF |
47 | |
48 | %description devel | |
49 | Header files for %{kfname} development. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe dla programistów używających %{kfname}. | |
53 | ||
54 | %prep | |
55 | %setup -q -n %{kfname}-%{version} | |
56 | ||
57 | %build | |
58 | install -d build | |
59 | cd build | |
60 | %cmake -G Ninja \ | |
18c4bdd4 | 61 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
2df15a7c WF |
62 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
63 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ | |
64 | .. | |
65 | %ninja_build | |
66 | ||
18c4bdd4 WF |
67 | %if %{with tests} |
68 | ctest | |
69 | %endif | |
70 | ||
71 | ||
2df15a7c WF |
72 | %install |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | %ninja_install -C build | |
75 | ||
76 | %clean | |
77 | rm -rf $RPM_BUILD_ROOT | |
78 | ||
79 | %post -p /sbin/ldconfig | |
80 | %postun -p /sbin/ldconfig | |
81 | ||
82 | %files | |
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 | |
88 | ||
89 | %files devel | |
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 | |
e395fd99 | 96 | %{_pkgconfigdir}/KF5CalendarCore.pc |