]>
Commit | Line | Data |
---|---|---|
026f212a WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
bd26bb8e | 4 | %define kdeappsver 22.12.0 |
e48ae81c | 5 | %define qtver 5.15.2 |
6f9a93a4 WF |
6 | %define kaname kmime |
7 | Summary: KMime | |
8 | Name: ka5-%{kaname} | |
bd26bb8e | 9 | Version: 22.12.0 |
a2e0c81f | 10 | Release: 2 |
6f9a93a4 WF |
11 | License: GPL v2+/LGPL v2.1+ |
12 | Group: X11/Libraries | |
7600ce6d | 13 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
bd26bb8e | 14 | # Source0-md5: 9d742bb63cd87b4db3a70107d7a149cc |
6f9a93a4 WF |
15 | URL: http://www.kde.org/ |
16 | BuildRequires: Qt5Core-devel >= %{qtver} | |
b772e3da | 17 | BuildRequires: Qt5Test-devel >= 5.9.0 |
6f9a93a4 | 18 | BuildRequires: cmake >= 2.8.12 |
b772e3da WF |
19 | BuildRequires: gettext-devel |
20 | BuildRequires: kf5-extra-cmake-modules >= 5.53.0 | |
21 | BuildRequires: kf5-kcodecs-devel >= 5.51.0 | |
acddf3f0 | 22 | BuildRequires: kf5-ki18n-devel |
b772e3da | 23 | BuildRequires: kf5-ki18n-devel >= 5.51.0 |
ac1b6d75 | 24 | BuildRequires: ninja |
6f9a93a4 WF |
25 | BuildRequires: qt5-build >= %{qtver} |
26 | BuildRequires: rpmbuild(macros) >= 1.164 | |
27 | BuildRequires: shared-mime-info | |
28 | BuildRequires: tar >= 1:1.22 | |
29 | BuildRequires: xz | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | KMime is a library for handling mail messages and newsgroup articles. | |
34 | Both mail messages and newsgroup articles are based on the same | |
35 | standard called MIME, which stands for | |
36 | - **Multipurpose Internet Mail Extensions**. In this document, the | |
37 | term `message` is used to refer to both mail messages and newsgroup | |
38 | articles. | |
39 | ||
91494f72 WF |
40 | %description -l pl.UTF-8 |
41 | KMime jest biblioteką do obsługi wiadomości pocztowych i artykułów | |
42 | grup Usenetowych. Zarówno wiadomości pocztowe i artykuły są oparte na | |
43 | tym samym standardzie zwanym MIME | |
44 | - **Multipurpose Internet Mail Extensions**, (**Uniweralne | |
45 | roszszerzenie poczty internetowej**). W tym dokumencie, termin | |
46 | `wiadomość` oznacza zarówno wiadomości pocztowe, jak i artykuły grup | |
47 | news. | |
48 | ||
6f9a93a4 WF |
49 | %package devel |
50 | Summary: Header files for %{kaname} development | |
51 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kpname} | |
52 | Group: X11/Development/Libraries | |
53 | Requires: %{name} = %{version}-%{release} | |
54 | ||
55 | %description devel | |
56 | Header files for %{kaname} development. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Pliki nagłówkowe dla programistów używających %{kaname}. | |
60 | ||
61 | %prep | |
62 | %setup -q -n %{kaname}-%{version} | |
63 | ||
64 | %build | |
65 | install -d build | |
66 | cd build | |
ac1b6d75 | 67 | %cmake -G Ninja \ |
026f212a | 68 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
ac1b6d75 | 69 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
6f9a93a4 WF |
70 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
71 | .. | |
ac1b6d75 | 72 | %ninja_build |
6f9a93a4 | 73 | |
026f212a WF |
74 | %if %{with tests} |
75 | ctest | |
76 | %endif | |
77 | ||
78 | ||
6f9a93a4 WF |
79 | %install |
80 | rm -rf $RPM_BUILD_ROOT | |
ac1b6d75 | 81 | %ninja_install -C build |
6f9a93a4 WF |
82 | |
83 | %find_lang %{kaname} --all-name --with-kde | |
84 | ||
85 | %clean | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files -f %{kaname}.lang | |
92 | %defattr(644,root,root,755) | |
5c2f8291 | 93 | %ghost %{_libdir}/libKF5Mime.so.5 |
6f9a93a4 | 94 | %attr(755,root,root) %{_libdir}/libKF5Mime.so.*.*.* |
405d46b6 | 95 | %{_datadir}/qlogging-categories5/kmime.categories |
6f9a93a4 WF |
96 | |
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
99 | %{_includedir}/KF5/KMime | |
6f9a93a4 | 100 | %{_libdir}/cmake/KF5Mime |
5c2f8291 | 101 | %{_libdir}/libKF5Mime.so |
6f9a93a4 | 102 | %{_libdir}/qt5/mkspecs/modules/qt_KMime.pri |