]>
Commit | Line | Data |
---|---|---|
909959c5 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
daf7f58e | 4 | %define kdeappsver 23.08.5 |
19ca68e8 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
f1dd5e7f WF |
7 | %define kaname akonadi-calendar |
8 | Summary: Akonadi Calendar | |
9 | Name: ka5-%{kaname} | |
daf7f58e | 10 | Version: 23.08.5 |
730a4e04 | 11 | Release: 1 |
f1dd5e7f WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
730a4e04 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
daf7f58e | 15 | # Source0-md5: 245f6f0812c14d68ad80e2d5136b9738 |
f1dd5e7f | 16 | URL: http://www.kde.org/ |
730a4e04 WF |
17 | BuildRequires: Qt5Core-devel >= %{qtver} |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
19 | BuildRequires: Qt5Test-devel >= 5.9.0 | |
f671b0c7 | 20 | BuildRequires: cmake >= 3.20 |
f1dd5e7f | 21 | BuildRequires: gettext-devel |
1f9c1726 WF |
22 | BuildRequires: ka5-akonadi-contacts-devel >= %{kdeappsver} |
23 | BuildRequires: ka5-akonadi-devel >= %{kdeappsver} | |
1f9c1726 | 24 | BuildRequires: ka5-kcalutils-devel >= %{kdeappsver} |
1f9c1726 WF |
25 | BuildRequires: ka5-kidentitymanagement-devel >= %{kdeappsver} |
26 | BuildRequires: ka5-kmailtransport-devel >= %{kdeappsver} | |
f671b0c7 | 27 | BuildRequires: ka5-messagelib-devel >= %{kdeappsver} |
730a4e04 WF |
28 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
29 | BuildRequires: kf5-kcalendarcore-devel >= %{kframever} | |
30 | BuildRequires: kf5-kcodecs-devel >= %{kframever} | |
31 | BuildRequires: kf5-kcontacts-devel >= %{kframever} | |
32 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
33 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
34 | BuildRequires: kf5-kio-devel >= %{kframever} | |
35 | BuildRequires: kf5-knotifications-devel >= %{kframever} | |
36 | BuildRequires: kf5-kwallet-devel >= %{kframever} | |
53a25ad8 | 37 | BuildRequires: ninja |
730a4e04 | 38 | BuildRequires: qt5-build >= %{qtver} |
f1dd5e7f WF |
39 | BuildRequires: rpmbuild(macros) >= 1.164 |
40 | BuildRequires: shared-mime-info | |
41 | BuildRequires: tar >= 1:1.22 | |
42 | BuildRequires: xz | |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
44 | ||
45 | %description | |
46 | Akonadi Calendar is a library that effectively bridges the | |
47 | type-agnostic API of the Akonadi client libraries and the | |
48 | domain-specific KCalCore library. It provides jobs, models and other | |
49 | helpers to make working with events and calendars through Akonadi | |
50 | easier. | |
51 | ||
52 | %package devel | |
53 | Summary: Header files for %{kaname} development | |
54 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kpname} | |
55 | Group: X11/Development/Libraries | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
58 | %description devel | |
59 | Header files for %{kaname} development. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
63 | ||
64 | %prep | |
65 | %setup -q -n %{kaname}-%{version} | |
66 | ||
67 | %build | |
f671b0c7 WF |
68 | %cmake -B build \ |
69 | -G Ninja \ | |
909959c5 | 70 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
53a25ad8 | 71 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
f671b0c7 WF |
72 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
73 | %ninja_build -C build | |
f1dd5e7f | 74 | |
909959c5 | 75 | %if %{with tests} |
f671b0c7 | 76 | ctest --test-dir build |
909959c5 WF |
77 | %endif |
78 | ||
79 | ||
f1dd5e7f WF |
80 | %install |
81 | rm -rf $RPM_BUILD_ROOT | |
53a25ad8 | 82 | %ninja_install -C build |
f1dd5e7f WF |
83 | |
84 | %find_lang %{kaname} --all-name --with-kde | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %post -p /sbin/ldconfig | |
90 | %postun -p /sbin/ldconfig | |
91 | ||
92 | %files -f %{kaname}.lang | |
93 | %defattr(644,root,root,755) | |
730a4e04 WF |
94 | %attr(755,root,root) %{_libdir}/qt5/plugins/akonadi_serializer_kcalcore.so |
95 | %{_datadir}/akonadi/plugins/serializer/akonadi_serializer_kcalcore.desktop | |
96 | %{_datadir}/qlogging-categories5/akonadi-calendar.categories | |
97 | %{_datadir}/qlogging-categories5/akonadi-calendar.renamecategories | |
83f9e1f4 WF |
98 | /etc/xdg/autostart/org.kde.kalendarac.desktop |
99 | %attr(755,root,root) %{_bindir}/kalendarac | |
100 | %{_datadir}/dbus-1/services/org.kde.kalendarac.service | |
730a4e04 WF |
101 | %{_datadir}/knotifications5/kalendarac.notifyrc |
102 | %{_datadir}/qlogging-categories5/org_kde_kalendarac.categories | |
103 | %dir %{_libdir}/qt5/plugins/kf5/org.kde.kcalendarcore.calendars | |
104 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/org.kde.kcalendarcore.calendars/libakonadicalendarplugin.so | |
105 | %ghost %{_libdir}/libKPim5AkonadiCalendar.so.5 | |
106 | %attr(755,root,root) %{_libdir}/libKPim5AkonadiCalendar.so.*.*.* | |
f1dd5e7f WF |
107 | |
108 | %files devel | |
109 | %defattr(644,root,root,755) | |
730a4e04 WF |
110 | %{_libdir}/qt5/mkspecs/modules/qt_AkonadiCalendar.pri |
111 | %{_includedir}/KPim5/AkonadiCalendar | |
112 | %{_libdir}/cmake/KF5AkonadiCalendar | |
113 | %{_libdir}/cmake/KPim5AkonadiCalendar | |
114 | %{_libdir}/libKPim5AkonadiCalendar.so |