]>
Commit | Line | Data |
---|---|---|
33adbdbe WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
4acc27ac | 4 | %define kdeappsver 22.08.3 |
45437c95 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
baacc1f0 WF |
7 | %define kaname kaddressbook |
8 | Summary: KAddressbook | |
9 | Name: ka5-%{kaname} | |
4acc27ac | 10 | Version: 22.08.3 |
3d407295 | 11 | Release: 1 |
baacc1f0 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
e6f75ea1 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
4acc27ac | 15 | # Source0-md5: 14669a4faebc93b8adee8041d56762bd |
baacc1f0 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5DBus-devel | |
19 | BuildRequires: Qt5Gui-devel | |
20 | BuildRequires: Qt5PrintSupport-devel | |
21 | BuildRequires: Qt5Test-devel | |
22 | BuildRequires: Qt5Widgets-devel | |
23 | BuildRequires: cmake >= 2.8.12 | |
24 | BuildRequires: gettext-devel | |
25 | BuildRequires: gpgme-c++-devel >= 1.8.0 | |
26 | BuildRequires: ka5-akonadi-devel >= %{kdeappsver} | |
27 | BuildRequires: ka5-akonadi-search-devel >= %{kdeappsver} | |
28 | BuildRequires: ka5-grantleetheme-devel >= %{kdeappsver} | |
baacc1f0 WF |
29 | BuildRequires: ka5-kontactinterface-devel >= %{kdeappsver} |
30 | BuildRequires: ka5-kpimtextedit-devel >= %{kdeappsver} | |
31 | BuildRequires: ka5-libkdepim-devel >= %{kdeappsver} | |
32 | BuildRequires: ka5-libkleo-devel >= %{kdeappsver} | |
33 | BuildRequires: ka5-pimcommon-devel >= %{kdeappsver} | |
99b66999 WF |
34 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
35 | BuildRequires: kf5-kcmutils-devel >= %{kframever} | |
36 | BuildRequires: kf5-kcrash-devel >= %{kframever} | |
37 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
38 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
39 | BuildRequires: kf5-kiconthemes-devel >= %{kframever} | |
40 | BuildRequires: kf5-prison-devel >= %{kframever} | |
3d407295 | 41 | BuildRequires: kuserfeedback-devel |
baacc1f0 WF |
42 | BuildRequires: ninja |
43 | BuildRequires: qt5-build >= %{qtver} | |
44 | BuildRequires: rpmbuild(macros) >= 1.164 | |
45 | BuildRequires: shared-mime-info | |
46 | BuildRequires: tar >= 1:1.22 | |
47 | BuildRequires: xz | |
48 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
49 | ||
50 | %description | |
51 | KAddressBook stores all the personal details of your family, friends | |
52 | and other contacts. | |
53 | ||
54 | Features | |
55 | ||
8c6d715b WF |
56 | • Imports and exports to nearly every address book standard • |
57 | Reads .vcf format files, and can import and export vCards and csv | |
58 | format files • Can use multiple LDAPservers • Configurable filters | |
59 | and powerful search capabilities • Integrates with other Kontact | |
60 | components, e.g. exporting Birthday reminders to KOrganizer • | |
61 | Capable of groupware integration • Powered by Akonadi | |
baacc1f0 | 62 | |
38e08344 | 63 | %description -l pl.UTF-8 |
9df1517f WF |
64 | KAddressBook potrafi zachować szczegóły osobiste Twojej rodziny, |
65 | przyjaciół i inne kontakty. | |
38e08344 WF |
66 | |
67 | Właściwości | |
68 | ||
9df1517f | 69 | • Importuje i eksportuje do niemalże każdego standardu książki |
8c6d715b WF |
70 | adresowej • Czyta pliki formatu .vcf, może importować i |
71 | eksportować pliki vCards i csv. • Może używać wielu serwerów | |
72 | LDAP • Konfigurowalne filtry i duże możliwości wyszukiwania • | |
73 | Integruje się z innymi komponentami Kontact, np. eksportując | |
74 | przypomnienia o urodzinach do KOrganizera • Możliwość integracji | |
75 | z groupware • "Napędzane" przez Akonadi | |
38e08344 | 76 | |
a4d857b0 WF |
77 | %package devel |
78 | Summary: Header files for %{kaname} development | |
79 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
80 | Group: X11/Development/Libraries | |
81 | Requires: %{name} = %{version}-%{release} | |
82 | ||
83 | %description devel | |
84 | Header files for %{kaname} development. | |
85 | ||
86 | %description devel -l pl.UTF-8 | |
87 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
88 | ||
baacc1f0 WF |
89 | %prep |
90 | %setup -q -n %{kaname}-%{version} | |
91 | ||
92 | %build | |
93 | install -d build | |
94 | cd build | |
95 | %cmake \ | |
96 | -G Ninja \ | |
33adbdbe | 97 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
99b66999 | 98 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
baacc1f0 WF |
99 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
100 | .. | |
101 | %ninja_build | |
102 | ||
33adbdbe WF |
103 | %if %{with tests} |
104 | ctest | |
105 | %endif | |
106 | ||
107 | ||
baacc1f0 WF |
108 | %install |
109 | rm -rf $RPM_BUILD_ROOT | |
110 | %ninja_install -C build | |
111 | ||
112 | %find_lang %{kaname} --all-name --with-kde | |
113 | ||
114 | %clean | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
117 | %post -p /sbin/ldconfig | |
118 | %postun -p /sbin/ldconfig | |
119 | ||
120 | %files -f %{kaname}.lang | |
121 | %defattr(644,root,root,755) | |
baacc1f0 | 122 | %attr(755,root,root) %{_bindir}/kaddressbook |
16ea0679 WF |
123 | %ghost %{_libdir}/libkaddressbookprivate.so.5 |
124 | %attr(755,root,root) %{_libdir}/libkaddressbookprivate.so.*.*.* | |
baacc1f0 | 125 | %attr(755,root,root) %{_libdir}/qt5/plugins/kaddressbookpart.so |
baacc1f0 WF |
126 | %{_desktopdir}/kaddressbook-importer.desktop |
127 | %{_desktopdir}/org.kde.kaddressbook.desktop | |
128 | %{_iconsdir}/hicolor/128x128/apps/kaddressbook.png | |
129 | %{_iconsdir}/hicolor/16x16/apps/kaddressbook.png | |
130 | %{_iconsdir}/hicolor/22x22/apps/kaddressbook.png | |
131 | %{_iconsdir}/hicolor/32x32/apps/kaddressbook.png | |
132 | %{_iconsdir}/hicolor/48x48/apps/kaddressbook.png | |
133 | %{_iconsdir}/hicolor/64x64/apps/kaddressbook.png | |
134 | %{_iconsdir}/hicolor/scalable/apps/kaddressbook.svg | |
135 | %{_datadir}/kaddressbook | |
baacc1f0 | 136 | %{_datadir}/metainfo/org.kde.kaddressbook.appdata.xml |
a4d857b0 WF |
137 | %{_datadir}/qlogging-categories5/kaddressbook.categories |
138 | %{_datadir}/qlogging-categories5/kaddressbook.renamecategories | |
16ea0679 WF |
139 | %ghost %{_libdir}/libKPimAddressbookImportExport.so.5 |
140 | %attr(755,root,root) %{_libdir}/libKPimAddressbookImportExport.so.*.*.* | |
a4d857b0 | 141 | %{_desktopdir}/kaddressbook-view.desktop |
8c6d715b WF |
142 | %dir %{_libdir}/qt5/plugins/pim5/kcms/kaddressbook |
143 | %{_libdir}/qt5/plugins/pim5/kcms/kaddressbook/kaddressbook_config_plugins.so | |
144 | %{_libdir}/qt5/plugins/pim5/kontact/kontact_kaddressbookplugin.so | |
3d407295 | 145 | %{_libdir}/qt5/plugins/pim5/kcms/kaddressbook/kaddressbook_config_userfeedback.so |
a4d857b0 WF |
146 | |
147 | %files devel | |
148 | %defattr(644,root,root,755) | |
149 | %{_includedir}/KPim/KAddressBookImportExport | |
150 | %{_includedir}/KPim/kaddressbookimportexport | |
151 | %{_includedir}/KPim/kaddressbookimportexport_version.h | |
152 | %{_libdir}/cmake/KPimAddressbookImportExport | |
153 | %{_libdir}/libKPimAddressbookImportExport.so | |
154 | %{_libdir}/qt5/mkspecs/modules/qt_KAddressbookImportExport.pri |