3 %bcond_with tests # build with tests
4 %define kdeappsver 23.04.1
11 License: GPL v2+/LGPL v2.1+
13 Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
14 # Source0-md5: e5f803e082aab07f55f51cc15c2e24a8
15 URL: http://www.kde.org/
16 BuildRequires: Qt5Core-devel >= %{qtver}
17 BuildRequires: Qt5Test-devel >= 5.9.0
18 BuildRequires: cmake >= 2.8.12
19 BuildRequires: gettext-devel
20 BuildRequires: kf5-extra-cmake-modules >= 5.53.0
21 BuildRequires: kf5-kcodecs-devel >= 5.51.0
22 BuildRequires: kf5-ki18n-devel
23 BuildRequires: kf5-ki18n-devel >= 5.51.0
25 BuildRequires: qt5-build >= %{qtver}
26 BuildRequires: rpmbuild(macros) >= 1.164
27 BuildRequires: shared-mime-info
28 BuildRequires: tar >= 1:1.22
30 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
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
40 %description -l pl.UTF-8
41 KMime jest biblioteką do obsługi wiadomości pocztowych i
42 artykułów grup Usenetowych. Zarówno wiadomości pocztowe i
43 artykuły są oparte na 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
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}
56 Header files for %{kaname} development.
58 %description devel -l pl.UTF-8
59 Pliki nagłówkowe dla programistów używających %{kaname}.
62 %setup -q -n %{kaname}-%{version}
68 %{!?with_tests:-DBUILD_TESTING=OFF} \
69 -DHTML_INSTALL_DIR=%{_kdedocdir} \
70 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
80 rm -rf $RPM_BUILD_ROOT
81 %ninja_install -C build
83 %find_lang %{kaname} --all-name --with-kde
86 rm -rf $RPM_BUILD_ROOT
88 %post -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
91 %files -f %{kaname}.lang
92 %defattr(644,root,root,755)
93 %{_datadir}/qlogging-categories5/kmime.categories
94 %ghost %{_libdir}/libKPim5Mime.so.5
95 %attr(755,root,root) %{_libdir}/libKPim5Mime.so.*.*.*
98 %defattr(644,root,root,755)
99 %{_libdir}/cmake/KF5Mime
100 %{_libdir}/qt5/mkspecs/modules/qt_KMime.pri
101 %{_includedir}/KPim5/KMime
102 %{_libdir}/cmake/KPim5Mime
103 %{_libdir}/libKPim5Mime.so