]> git.pld-linux.org Git - packages/ka5-kmime.git/blame - ka5-kmime.spec
- updated to 23.08.5
[packages/ka5-kmime.git] / ka5-kmime.spec
CommitLineData
026f212a
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
c59379de 4%define kdeappsver 23.08.5
e48ae81c 5%define qtver 5.15.2
6f9a93a4
WF
6%define kaname kmime
7Summary: KMime
8Name: ka5-%{kaname}
c59379de 9Version: 23.08.5
511f0a78 10Release: 1
6f9a93a4
WF
11License: GPL v2+/LGPL v2.1+
12Group: X11/Libraries
511f0a78 13Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
c59379de 14# Source0-md5: 4019ac058036e32f4de7b50831696349
6f9a93a4 15URL: http://www.kde.org/
511f0a78
WF
16BuildRequires: Qt5Core-devel >= %{qtver}
17BuildRequires: Qt5Test-devel >= 5.9.0
f5ec74ec 18BuildRequires: cmake >= 3.20
b772e3da 19BuildRequires: gettext-devel
511f0a78
WF
20BuildRequires: kf5-extra-cmake-modules >= 5.53.0
21BuildRequires: kf5-kcodecs-devel >= 5.51.0
22BuildRequires: kf5-ki18n-devel
23BuildRequires: kf5-ki18n-devel >= 5.51.0
ac1b6d75 24BuildRequires: ninja
511f0a78 25BuildRequires: qt5-build >= %{qtver}
6f9a93a4
WF
26BuildRequires: rpmbuild(macros) >= 1.164
27BuildRequires: shared-mime-info
28BuildRequires: tar >= 1:1.22
29BuildRequires: xz
30BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32%description
33KMime is a library for handling mail messages and newsgroup articles.
34Both mail messages and newsgroup articles are based on the same
35standard 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 40%description -l pl.UTF-8
511f0a78
WF
41KMime jest biblioteką do obsługi wiadomości pocztowych i
42artykułów grup Usenetowych. Zarówno wiadomości pocztowe i
43artykuły są oparte na tym samym standardzie zwanym MIME
91494f72
WF
44- **Multipurpose Internet Mail Extensions**, (**Uniweralne
45 roszszerzenie poczty internetowej**). W tym dokumencie, termin
511f0a78
WF
46 `wiadomość` oznacza zarówno wiadomości pocztowe, jak i artykuły
47 grup news.
91494f72 48
6f9a93a4
WF
49%package devel
50Summary: Header files for %{kaname} development
51Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kpname}
52Group: X11/Development/Libraries
53Requires: %{name} = %{version}-%{release}
54
55%description devel
56Header files for %{kaname} development.
57
58%description devel -l pl.UTF-8
59Pliki nagłówkowe dla programistów używających %{kaname}.
60
61%prep
62%setup -q -n %{kaname}-%{version}
63
64%build
f5ec74ec
WF
65%cmake -B build \
66 -G Ninja \
026f212a 67 %{!?with_tests:-DBUILD_TESTING=OFF} \
ac1b6d75 68 -DHTML_INSTALL_DIR=%{_kdedocdir} \
f5ec74ec
WF
69 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON
70%ninja_build -C build
6f9a93a4 71
026f212a 72%if %{with tests}
f5ec74ec 73ctest --test-dir build
026f212a
WF
74%endif
75
76
6f9a93a4
WF
77%install
78rm -rf $RPM_BUILD_ROOT
ac1b6d75 79%ninja_install -C build
6f9a93a4
WF
80
81%find_lang %{kaname} --all-name --with-kde
82
83%clean
84rm -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)
511f0a78
WF
91%{_datadir}/qlogging-categories5/kmime.categories
92%ghost %{_libdir}/libKPim5Mime.so.5
93%attr(755,root,root) %{_libdir}/libKPim5Mime.so.*.*.*
6f9a93a4
WF
94
95%files devel
96%defattr(644,root,root,755)
511f0a78
WF
97%{_libdir}/cmake/KF5Mime
98%{_libdir}/qt5/mkspecs/modules/qt_KMime.pri
99%{_includedir}/KPim5/KMime
100%{_libdir}/cmake/KPim5Mime
101%{_libdir}/libKPim5Mime.so
This page took 0.855346 seconds and 4 git commands to generate.