]>
Commit | Line | Data |
---|---|---|
5c2f8291 | 1 | %define kdeappsver 21.04.0 |
b772e3da | 2 | %define qtver 5.9.0 |
6f9a93a4 WF |
3 | %define kaname kmime |
4 | Summary: KMime | |
5 | Name: ka5-%{kaname} | |
5c2f8291 | 6 | Version: 21.04.0 |
6f9a93a4 WF |
7 | Release: 1 |
8 | License: GPL v2+/LGPL v2.1+ | |
9 | Group: X11/Libraries | |
405d46b6 | 10 | Source0: http://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
5c2f8291 | 11 | # Source0-md5: aa113808fd562d8d47365880c3a165df |
6f9a93a4 WF |
12 | URL: http://www.kde.org/ |
13 | BuildRequires: Qt5Core-devel >= %{qtver} | |
b772e3da | 14 | BuildRequires: Qt5Test-devel >= 5.9.0 |
6f9a93a4 | 15 | BuildRequires: cmake >= 2.8.12 |
b772e3da WF |
16 | BuildRequires: gettext-devel |
17 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 | |
18 | BuildRequires: kf5-kcodecs-devel >= 5.51.0 | |
acddf3f0 | 19 | BuildRequires: kf5-ki18n-devel |
b772e3da | 20 | BuildRequires: kf5-ki18n-devel >= 5.51.0 |
ac1b6d75 | 21 | BuildRequires: ninja |
6f9a93a4 WF |
22 | BuildRequires: qt5-build >= %{qtver} |
23 | BuildRequires: rpmbuild(macros) >= 1.164 | |
24 | BuildRequires: shared-mime-info | |
25 | BuildRequires: tar >= 1:1.22 | |
26 | BuildRequires: xz | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | KMime is a library for handling mail messages and newsgroup articles. | |
31 | Both mail messages and newsgroup articles are based on the same | |
32 | standard called MIME, which stands for | |
33 | - **Multipurpose Internet Mail Extensions**. In this document, the | |
34 | term `message` is used to refer to both mail messages and newsgroup | |
35 | articles. | |
36 | ||
37 | %package devel | |
38 | Summary: Header files for %{kaname} development | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kpname} | |
40 | Group: X11/Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | ||
43 | %description devel | |
44 | Header files for %{kaname} development. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
48 | ||
49 | %prep | |
50 | %setup -q -n %{kaname}-%{version} | |
51 | ||
52 | %build | |
53 | install -d build | |
54 | cd build | |
ac1b6d75 WF |
55 | %cmake -G Ninja \ |
56 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ | |
6f9a93a4 WF |
57 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
58 | .. | |
ac1b6d75 | 59 | %ninja_build |
6f9a93a4 WF |
60 | |
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
ac1b6d75 | 63 | %ninja_install -C build |
6f9a93a4 WF |
64 | |
65 | %find_lang %{kaname} --all-name --with-kde | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %post -p /sbin/ldconfig | |
71 | %postun -p /sbin/ldconfig | |
72 | ||
73 | %files -f %{kaname}.lang | |
74 | %defattr(644,root,root,755) | |
5c2f8291 | 75 | %ghost %{_libdir}/libKF5Mime.so.5 |
6f9a93a4 | 76 | %attr(755,root,root) %{_libdir}/libKF5Mime.so.*.*.* |
405d46b6 | 77 | %{_datadir}/qlogging-categories5/kmime.categories |
6f9a93a4 WF |
78 | |
79 | %files devel | |
80 | %defattr(644,root,root,755) | |
81 | %{_includedir}/KF5/KMime | |
82 | %{_includedir}/KF5/kmime_version.h | |
83 | %{_libdir}/cmake/KF5Mime | |
5c2f8291 | 84 | %{_libdir}/libKF5Mime.so |
6f9a93a4 | 85 | %{_libdir}/qt5/mkspecs/modules/qt_KMime.pri |