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