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