]> git.pld-linux.org Git - packages/ka5-ktnef.git/blame - ka5-ktnef.spec
rebuild with qt5-5.15.6
[packages/ka5-ktnef.git] / ka5-ktnef.spec
CommitLineData
1d91e72f
WF
1#
2# Conditional build:
3%bcond_with tests # build with tests
e3d448be 4%define kdeappsver 22.08.1
c7701376
WF
5%define kframever 5.94.0
6%define qtver 5.15.2
d121b694
WF
7%define kaname ktnef
8Summary: ktnef
9Name: ka5-%{kaname}
e3d448be 10Version: 22.08.1
26678bdd 11Release: 3
d121b694
WF
12License: GPL v2+/LGPL v2.1+
13Group: X11/Libraries
a969e580 14Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz
e3d448be 15# Source0-md5: ffcf705b4b9ea9bb4719fb0e91ae81a2
d121b694
WF
16URL: http://www.kde.org/
17BuildRequires: Qt5Core-devel >= %{qtver}
18BuildRequires: Qt5Gui-devel >= 5.11.1
19BuildRequires: Qt5Test-devel >= 5.9.0
20BuildRequires: Qt5Widgets-devel
21BuildRequires: gettext-devel
d121b694 22BuildRequires: ka5-kcalutils-devel >= %{kdeappsver}
9018af09 23BuildRequires: kf5-extra-cmake-modules >= %{kframever}
caf0cd90
WF
24BuildRequires: kf5-kcalendarcore-devel >= %{kframever}
25BuildRequires: kf5-kcontacts-devel >= %{kframever}
9018af09 26BuildRequires: kf5-ki18n-devel >= %{kframever}
38bd2815 27BuildRequires: ninja
d121b694
WF
28BuildRequires: qt5-build >= %{qtver}
29BuildRequires: rpmbuild(macros) >= 1.164
30BuildRequires: shared-mime-info
31BuildRequires: tar >= 1:1.22
32BuildRequires: xz
33BuildRequires: zlib-devel
34BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36%description
37The ktnef library contains an API for the handling of TNEF data. The
38API permits access to the actual attachments, the message properties
39(TNEF/MAPI), and allows one to view/extract message formatted text in
40Rich Text Format format.
41
c9cd3ea0
WF
42%description -l pl.UTF-8
43Biblioteka ktnef zawiera API do obsługi danych TNEF. API pozwala na
44dostęp do załączników, właściwości wiadomości (TNEF/MAPI) i pozwala
45podejrzeć/wyjąć wiadomość w formacie RTF.
46
d121b694
WF
47%package devel
48Summary: Header files for %{kaname} development
49Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kaname}
50Group: X11/Development/Libraries
51Requires: %{name} = %{version}-%{release}
52
53%description devel
54Header files for %{kaname} development.
55
56%description devel -l pl.UTF-8
57Pliki nagłówkowe dla programistów używających %{kaname}.
58
59%prep
60%setup -q -n %{kaname}-%{version}
61
62%build
63install -d build
64cd build
65%cmake \
38bd2815 66 -G Ninja \
1d91e72f 67 %{!?with_tests:-DBUILD_TESTING=OFF} \
9018af09 68 -DHTML_INSTALL_DIR=%{_kdedocdir} \
d121b694
WF
69 -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
70 ..
38bd2815 71%ninja_build
d121b694 72
1d91e72f
WF
73%if %{with tests}
74ctest
75%endif
76
77
d121b694
WF
78%install
79rm -rf $RPM_BUILD_ROOT
38bd2815 80%ninja_install -C build
d121b694
WF
81
82%find_lang %{kaname} --all-name --with-kde --with-qm
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
87%post -p /sbin/ldconfig
88%postun -p /sbin/ldconfig
89
90%files -f %{kaname}.lang
91%defattr(644,root,root,755)
36cd7bcb
WF
92%ghost %{_libdir}/libKF5Tnef.so.5
93%attr(755,root,root) %{_libdir}/libKF5Tnef.so.*.*.*
caf0cd90
WF
94%{_datadir}/qlogging-categories5/ktnef.categories
95%{_datadir}/qlogging-categories5/ktnef.renamecategories
d121b694
WF
96
97%files devel
98%defattr(644,root,root,755)
99%{_includedir}/KF5/KTNEF
d121b694 100%{_libdir}/cmake/KF5Tnef
36cd7bcb 101%{_libdir}/libKF5Tnef.so
d121b694 102%{_libdir}/qt5/mkspecs/modules/qt_KTNef.pri
This page took 0.384351 seconds and 4 git commands to generate.