]>
Commit | Line | Data |
---|---|---|
e009d281 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
81d50c8a | 4 | %define kdeappsver 23.08.5 |
b8df0e3f | 5 | %define qtver 5.15.2 |
4a9bff1a WF |
6 | %define kaname akonadi-contacts |
7 | Summary: Akonadi Contacts | |
8 | Name: ka5-%{kaname} | |
81d50c8a | 9 | Version: 23.08.5 |
b374101d | 10 | Release: 1 |
4a9bff1a WF |
11 | License: GPL v2+/LGPL v2.1+ |
12 | Group: X11/Libraries | |
b374101d | 13 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
81d50c8a | 14 | # Source0-md5: e4b501e5a6fedcb972b3ff2c31e8577a |
4a9bff1a | 15 | URL: http://www.kde.org/ |
b374101d WF |
16 | BuildRequires: Qt5Core-devel >= %{qtver} |
17 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
18 | BuildRequires: Qt5Test-devel | |
19 | BuildRequires: Qt5Widgets-devel | |
befbec46 | 20 | BuildRequires: cmake >= 3.20 |
02249113 | 21 | BuildRequires: gettext-devel |
b374101d | 22 | BuildRequires: gpgme-qt5-devel |
b3126333 | 23 | BuildRequires: ka5-akonadi-devel >= %{kdeappsver} |
a29b0055 | 24 | BuildRequires: ka5-grantleetheme-devel >= %{kdeappsver} |
b3126333 | 25 | BuildRequires: ka5-kmime-devel >= %{kdeappsver} |
a29b0055 | 26 | BuildRequires: ka5-libkleo-devel >= %{kdeappsver} |
b374101d WF |
27 | BuildRequires: kf5-extra-cmake-modules >= 5.51.0 |
28 | BuildRequires: kf5-kcmutils-devel >= 5.87.0 | |
29 | BuildRequires: kf5-kcodecs-devel >= 5.51.0 | |
30 | BuildRequires: kf5-kcompletion-devel >= 5.51.0 | |
31 | BuildRequires: kf5-kcontacts-devel >= 5.65.0 | |
32 | BuildRequires: kf5-kdbusaddons-devel >= 5.51.0 | |
33 | BuildRequires: kf5-ki18n-devel >= 5.51.0 | |
34 | BuildRequires: kf5-kiconthemes-devel >= 5.51.0 | |
35 | BuildRequires: kf5-kio-devel >= 5.51.0 | |
36 | BuildRequires: kf5-kitemmodels-devel >= 5.87.0 | |
37 | BuildRequires: kf5-ktextwidgets-devel >= 5.51.0 | |
38 | BuildRequires: kf5-prison-devel >= 5.51.0 | |
7ba812b0 | 39 | BuildRequires: ninja |
4a9bff1a WF |
40 | BuildRequires: tar >= 1:1.22 |
41 | BuildRequires: xz | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
45 | Akonadi Contacts is a library that effectively bridges the | |
46 | type-agnostic API of the Akonadi client libraries and the | |
47 | domain-specific KContacts library. It provides jobs, models and other | |
48 | helpers to make working with contacts and addressbooks 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 | |
befbec46 WF |
67 | %cmake -B build \ |
68 | -G Ninja \ | |
e009d281 | 69 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
7ba812b0 | 70 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
befbec46 WF |
71 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON |
72 | %ninja_build -C build | |
4a9bff1a | 73 | |
e009d281 | 74 | %if %{with tests} |
befbec46 | 75 | ctest --test-dir build |
e009d281 WF |
76 | %endif |
77 | ||
78 | ||
4a9bff1a WF |
79 | %install |
80 | rm -rf $RPM_BUILD_ROOT | |
7ba812b0 | 81 | %ninja_install -C build |
4a9bff1a WF |
82 | |
83 | %find_lang %{kaname} --all-name --with-kde | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files -f %{kaname}.lang | |
92 | %defattr(644,root,root,755) | |
b374101d WF |
93 | %attr(755,root,root) %{_libdir}/qt5/plugins/akonadi_serializer_addressee.so |
94 | %attr(755,root,root) %{_libdir}/qt5/plugins/akonadi_serializer_contactgroup.so | |
4a9bff1a WF |
95 | %{_datadir}/akonadi/plugins/serializer/akonadi_serializer_addressee.desktop |
96 | %{_datadir}/akonadi/plugins/serializer/akonadi_serializer_contactgroup.desktop | |
b374101d WF |
97 | %{_datadir}/kf5/akonadi/contact |
98 | %{_datadir}/qlogging-categories5/akonadi-contacts.categories | |
99 | %{_datadir}/qlogging-categories5/akonadi-contacts.renamecategories | |
100 | %ghost %{_libdir}/libKPim5AkonadiContact.so.5 | |
101 | %attr(755,root,root) %{_libdir}/libKPim5AkonadiContact.so.*.*.* | |
102 | %ghost %{_libdir}/libKPim5ContactEditor.so.5 | |
103 | %attr(755,root,root) %{_libdir}/libKPim5ContactEditor.so.*.*.* | |
4a9bff1a WF |
104 | |
105 | %files devel | |
106 | %defattr(644,root,root,755) | |
b374101d WF |
107 | %{_libdir}/qt5/mkspecs/modules/qt_AkonadiContact.pri |
108 | %{_libdir}/qt5/mkspecs/modules/qt_ContactEditor.pri | |
109 | %{_includedir}/KPim5/AkonadiContact | |
110 | %{_includedir}/KPim5/AkonadiContactEditor | |
111 | %{_libdir}/cmake/KF5AkonadiContactEditor | |
112 | %{_libdir}/cmake/KPim5AkonadiContact | |
113 | %{_libdir}/cmake/KPim5ContactEditor | |
114 | %{_libdir}/libKPim5AkonadiContact.so | |
115 | %{_libdir}/libKPim5ContactEditor.so |