]>
Commit | Line | Data |
---|---|---|
0aa4475a WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
a816815b | 4 | %define kdeappsver 24.02.1 |
0aa4475a WF |
5 | %define qtver 5.15.2 |
6 | %define kaname kmime | |
7 | Summary: KMime | |
8 | Name: ka6-%{kaname} | |
a816815b | 9 | Version: 24.02.1 |
0aa4475a WF |
10 | Release: 1 |
11 | License: GPL v2+/LGPL v2.1+ | |
12 | Group: X11/Libraries | |
13 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz | |
a816815b | 14 | # Source0-md5: 39959c929a7837fd18ef6bb0de9f6ed3 |
0aa4475a WF |
15 | URL: http://www.kde.org/ |
16 | BuildRequires: Qt6Core-devel >= %{qtver} | |
17 | BuildRequires: Qt6Test-devel >= 5.9.0 | |
18 | BuildRequires: cmake >= 3.20 | |
19 | BuildRequires: gettext-devel | |
20 | BuildRequires: kf6-extra-cmake-modules >= 5.53.0 | |
21 | BuildRequires: kf6-kcodecs-devel >= 5.51.0 | |
22 | BuildRequires: kf6-ki18n-devel | |
23 | BuildRequires: kf6-ki18n-devel >= 5.51.0 | |
24 | BuildRequires: ninja | |
25 | BuildRequires: qt6-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 | ||
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 | ||
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 | %cmake -B build \ | |
66 | -G Ninja \ | |
67 | %{!?with_tests:-DBUILD_TESTING=OFF} \ | |
68 | -DKDE_INSTALL_DOCBUNDLEDIR=%{_kdedocdir} \ | |
69 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON | |
70 | %ninja_build -C build | |
71 | ||
72 | %if %{with tests} | |
73 | ctest --test-dir build | |
74 | %endif | |
75 | ||
76 | ||
77 | %install | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | %ninja_install -C build | |
80 | ||
81 | %find_lang %{kaname} --all-name --with-kde | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post -p /sbin/ldconfig | |
87 | %postun -p /sbin/ldconfig | |
88 | ||
89 | %files -f %{kaname}.lang | |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{_libdir}/libKPim6Mime.so.*.* | |
92 | %ghost %{_libdir}/libKPim6Mime.so.6 | |
93 | %{_datadir}/qlogging-categories6/kmime.categories | |
94 | ||
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %{_includedir}/KPim6/KMime | |
98 | %{_libdir}/cmake/KPim6Mime | |
99 | %{_libdir}/libKPim6Mime.so |