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