]>
Commit | Line | Data |
---|---|---|
294cf5f3 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
0b1197f4 | 4 | %define kdeappsver 22.08.1 |
0e1b4f4d WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
8e297c42 WF |
7 | %define kaname akonadi-import-wizard |
8 | Summary: Akonadi import wizard | |
9 | Name: ka5-%{kaname} | |
0b1197f4 | 10 | Version: 22.08.1 |
318d7fdb | 11 | Release: 3 |
8e297c42 WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
b1b8cd86 | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
0b1197f4 | 15 | # Source0-md5: 19793775e693509a6a37c58a87603740 |
8e297c42 WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
18 | BuildRequires: Qt5Gui-devel | |
19 | BuildRequires: Qt5Widgets-devel | |
20 | BuildRequires: cmake >= 2.8.12 | |
21 | BuildRequires: gettext-devel | |
e9afd55d | 22 | BuildRequires: ka5-akonadi-devel >= %{kdeappsver} |
e9afd55d WF |
23 | BuildRequires: ka5-kidentitymanagement-devel >= %{kdeappsver} |
24 | BuildRequires: ka5-kmailtransport-devel >= %{kdeappsver} | |
25 | BuildRequires: ka5-libkdepim-devel >= %{kdeappsver} | |
26 | BuildRequires: ka5-mailcommon-devel >= %{kdeappsver} | |
27 | BuildRequires: ka5-mailimporter-devel >= %{kdeappsver} | |
28 | BuildRequires: ka5-messagelib-devel >= %{kdeappsver} | |
29 | BuildRequires: ka5-pimcommon-devel >= %{kdeappsver} | |
d4f9272b WF |
30 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
31 | BuildRequires: kf5-kauth-devel >= %{kframever} | |
32 | BuildRequires: kf5-kconfig-devel >= %{kframever} | |
ed0c3b1a | 33 | BuildRequires: kf5-kcontacts-devel >= %{kframever} |
d4f9272b WF |
34 | BuildRequires: kf5-kcrash-devel >= %{kframever} |
35 | BuildRequires: kf5-kdbusaddons-devel >= %{kframever} | |
36 | BuildRequires: kf5-kdoctools-devel >= %{kframever} | |
37 | BuildRequires: kf5-kio-devel >= %{kframever} | |
38 | BuildRequires: kf5-kwallet-devel >= %{kframever} | |
e9afd55d | 39 | BuildRequires: ninja |
8e297c42 WF |
40 | BuildRequires: qt5-build >= %{qtver} |
41 | BuildRequires: rpmbuild(macros) >= 1.164 | |
42 | BuildRequires: shared-mime-info | |
43 | BuildRequires: tar >= 1:1.22 | |
44 | BuildRequires: xz | |
b6516298 | 45 | ExcludeArch: x32 |
8e297c42 WF |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
47 | ||
48 | %description | |
49 | Assistant to import PIM data from other applications into Akonadi for | |
50 | use in KDE PIM applications. | |
51 | ||
52 | %package devel | |
53 | Summary: Header files for %{kaname} development | |
54 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
55 | Group: X11/Development/Libraries | |
56 | Requires: %{name} = %{version}-%{release} | |
57 | ||
58 | %description devel | |
59 | Header files for %{kaname} development. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
63 | ||
64 | %prep | |
65 | %setup -q -n %{kaname}-%{version} | |
66 | ||
67 | %build | |
68 | install -d build | |
69 | cd build | |
70 | %cmake \ | |
e9afd55d | 71 | -G Ninja \ |
294cf5f3 | 72 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
d4f9272b | 73 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
8e297c42 WF |
74 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
75 | .. | |
e9afd55d | 76 | %ninja_build |
8e297c42 | 77 | |
294cf5f3 WF |
78 | %if %{with tests} |
79 | ctest | |
80 | %endif | |
81 | ||
82 | ||
8e297c42 WF |
83 | %install |
84 | rm -rf $RPM_BUILD_ROOT | |
e9afd55d | 85 | %ninja_install -C build |
8e297c42 WF |
86 | |
87 | %find_lang %{kaname} --all-name --with-kde | |
88 | ||
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files -f %{kaname}.lang | |
96 | %defattr(644,root,root,755) | |
8e297c42 | 97 | %attr(755,root,root) %{_bindir}/akonadiimportwizard |
482c10a6 WF |
98 | %ghost %{_libdir}/libKPimImportWizard.so.5 |
99 | %attr(755,root,root) %{_libdir}/libKPimImportWizard.so.*.*.* | |
8e297c42 WF |
100 | %{_desktopdir}/org.kde.akonadiimportwizard.desktop |
101 | %{_iconsdir}/hicolor/128x128/apps/kontact-import-wizard.png | |
102 | %{_iconsdir}/hicolor/256x256/apps/kontact-import-wizard.png | |
103 | %{_iconsdir}/hicolor/64x64/apps/kontact-import-wizard.png | |
104 | %{_datadir}/importwizard | |
ed0c3b1a WF |
105 | %{_datadir}/qlogging-categories5/importwizard.categories |
106 | %{_datadir}/qlogging-categories5/importwizard.renamecategories | |
9820e0cd WF |
107 | %dir %{_libdir}/qt5/plugins/pim5/importwizard |
108 | %{_libdir}/qt5/plugins/pim5/importwizard/balsaimporterplugin.so | |
109 | %{_libdir}/qt5/plugins/pim5/importwizard/clawsmailimporterplugin.so | |
110 | %{_libdir}/qt5/plugins/pim5/importwizard/evolutionv3importerplugin.so | |
111 | %{_libdir}/qt5/plugins/pim5/importwizard/icedoveimporterplugin.so | |
112 | %{_libdir}/qt5/plugins/pim5/importwizard/seamonkeyimporterplugin.so | |
113 | %{_libdir}/qt5/plugins/pim5/importwizard/sylpheedimporterplugin.so | |
114 | %{_libdir}/qt5/plugins/pim5/importwizard/thunderbirdimporterplugin.so | |
115 | %{_libdir}/qt5/plugins/pim5/importwizard/trojitaimporterplugin.so | |
8e297c42 WF |
116 | |
117 | %files devel | |
118 | %defattr(644,root,root,755) | |
119 | %{_includedir}/KF5/KPim | |
120 | %{_includedir}/KPim | |
121 | %{_libdir}/cmake/KPimImportWizard | |
122 | %{_libdir}/libKPimImportWizard.so |