]>
Commit | Line | Data |
---|---|---|
9e476096 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
5f624111 | 4 | %define kdeappsver 22.08.1 |
4f207ebf WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
0e92b6db | 7 | %define kaname kimap |
b3a51f33 | 8 | Summary: IMAP library |
0e92b6db | 9 | Name: ka5-%{kaname} |
5f624111 | 10 | Version: 22.08.1 |
ccee8fd6 | 11 | Release: 2 |
0e92b6db WF |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Applications | |
6791756e | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
5f624111 | 15 | # Source0-md5: 45f3c43560dbde03ce52c5597c1f448a |
0e92b6db WF |
16 | URL: http://www.kde.org/ |
17 | BuildRequires: Qt5Core-devel >= %{qtver} | |
b3a51f33 WF |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 |
19 | BuildRequires: Qt5Test-devel | |
0e92b6db | 20 | BuildRequires: cmake >= 2.8.12 |
b3a51f33 WF |
21 | BuildRequires: cyrus-sasl-devel |
22 | BuildRequires: gettext-devel | |
23 | BuildRequires: ka5-kmime-devel >= %{kdeappsver} | |
3e10cbfc WF |
24 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
25 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
26 | BuildRequires: kf5-ki18n-devel >= %{kframever} | |
27 | BuildRequires: kf5-kio-devel >= %{kframever} | |
28 | BuildRequires: ninja | |
0e92b6db WF |
29 | BuildRequires: qt5-build >= %{qtver} |
30 | BuildRequires: rpmbuild(macros) >= 1.164 | |
31 | BuildRequires: shared-mime-info | |
32 | BuildRequires: tar >= 1:1.22 | |
33 | BuildRequires: xz | |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
35 | ||
36 | %description | |
b3a51f33 WF |
37 | KIMAP provides libraries to interface and communicate with IMAP mail |
38 | servers. | |
0e92b6db | 39 | |
1fcb9ad1 WF |
40 | %description -l pl.UTF-8 |
41 | KIMAP dostarcza biblioteki do komunikacji z serwerami IMAP. | |
42 | ||
0e92b6db WF |
43 | %package devel |
44 | Summary: Header files for %{kaname} development | |
45 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname} | |
46 | Group: X11/Development/Libraries | |
47 | Requires: %{name} = %{version}-%{release} | |
48 | ||
49 | %description devel | |
50 | Header files for %{kaname} development. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
54 | ||
55 | ||
56 | %prep | |
57 | %setup -q -n %{kaname}-%{version} | |
58 | ||
59 | %build | |
60 | install -d build | |
61 | cd build | |
3e10cbfc | 62 | %cmake -G Ninja \ |
9e476096 | 63 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
3e10cbfc | 64 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
0e92b6db WF |
65 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
66 | .. | |
3e10cbfc | 67 | %ninja_build |
0e92b6db | 68 | |
9e476096 WF |
69 | %if %{with tests} |
70 | ctest | |
71 | %endif | |
72 | ||
73 | ||
0e92b6db WF |
74 | %install |
75 | rm -rf $RPM_BUILD_ROOT | |
3e10cbfc | 76 | %ninja_install -C build |
0e92b6db WF |
77 | |
78 | %find_lang %{kaname} --all-name --with-kde | |
79 | ||
80 | %clean | |
81 | rm -rf $RPM_BUILD_ROOT | |
82 | ||
83 | %post -p /sbin/ldconfig | |
84 | %postun -p /sbin/ldconfig | |
85 | ||
86 | %files -f %{kaname}.lang | |
87 | %defattr(644,root,root,755) | |
0e92b6db WF |
88 | %ghost %{_libdir}/libKF5IMAP.so.5 |
89 | %{_libdir}/libKF5IMAP.so.5.*.* | |
edb1dd70 WF |
90 | %{_datadir}/qlogging-categories5/kimap.categories |
91 | %{_datadir}/qlogging-categories5/kimap.renamecategories | |
0e92b6db WF |
92 | |
93 | %files devel | |
94 | %defattr(644,root,root,755) | |
95 | %{_includedir}/KF5/KIMAP | |
0e92b6db WF |
96 | %{_libdir}/cmake/KF5IMAP |
97 | %{_libdir}/libKF5IMAP.so | |
98 | %{_libdir}/qt5/mkspecs/modules/qt_KIMAP.pri |