File messagelib.spec of Package messagelib.6886
#
# spec file for package messagelib
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: messagelib
Version: 16.08.2
Release: 0
Summary: Base package of kdepim
License: GPL-2.0 and GPL-3.0 and LGPL-2.1+
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Development/Libraries
Url: http://www.kde.org
Source0: %{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM fix-opening-links.patch boo#1015303 -- fixes that clicking on certain links doesn't open them in the browser
Patch0: fix-opening-links.patch
# PATCH-FIX-UPSTREAM fix-drag-and-drop-of attachments.patch boo#1012346 -- fixes dragging attachments from kmail to other applications
Patch1: fix-drag-and-drop-of-attachments.patch
# PATCH-FIX-UPSTREAM Fix-Attachments-are-included-as-plain-text-in-replied-mails.patch boo#1024833 -- don't include attachments as plain text in replies
Patch2: Fix-Attachments-are-included-as-plain-text-in-replied-mails.patch
# PATCH-FIX-UPSTREAM fix-clicking-on-HTML-sidebar-to-toggle-html-and-plain-text.patch kde#367997 -- fixes clicking on HTML Side Bar can no longer toggle html/plain text
Patch3: fix-clicking-on-HTML-sidebar-to-toggle-html-and-plain-text.patch
# PATCH-FIX-UPSTREAM also-encrypt-when-sending-later-cve-2017-9604.patch - fix CVE-2017-9604
Patch4: also-encrypt-when-sending-later-cve-2017-9604.patch
# It can only build on the same platforms as Qt Webengine
ExclusiveArch: %ix86 x86_64 %arm aarch64 mips mips64
BuildRequires: akonadi-mime-devel = %{version}
BuildRequires: akonadi-notes-devel = %{version}
BuildRequires: akonadi-search-devel
BuildRequires: akonadi-server-devel
BuildRequires: extra-cmake-modules
BuildRequires: gpgme-devel
BuildRequires: gpgmepp5-devel
BuildRequires: grantlee5-devel
BuildRequires: grantleetheme-devel
BuildRequires: karchive-devel
BuildRequires: kcodecs-devel
BuildRequires: kcompletion-devel
BuildRequires: kconfig-devel
BuildRequires: kcontacts-devel
BuildRequires: kdepim-apps-libs-devel
BuildRequires: kdewebkit-devel >= 5.0
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel
BuildRequires: kiconthemes-devel
BuildRequires: kidentitymanagement-devel
BuildRequires: kitemviews-devel
BuildRequires: kldap-devel
BuildRequires: kmailtransport-devel
BuildRequires: kmbox-devel
BuildRequires: kmime-devel
BuildRequires: kpimtextedit-devel
BuildRequires: kxmlgui-devel
BuildRequires: libgravatar-devel
BuildRequires: libkdepim-devel
BuildRequires: libkleo-devel
BuildRequires: pimcommon-devel
BuildRequires: pkgconfig(Qt5Concurrent) >= 5.4.0
BuildRequires: pkgconfig(Qt5Network) >= 5.4.0
BuildRequires: pkgconfig(Qt5Test) >= 5.4.0
BuildRequires: pkgconfig(Qt5UiTools) >= 5.4.0
BuildRequires: pkgconfig(Qt5WebEngineWidgets) >= 5.4.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.4.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package contains the messagelib library.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
%cmake_kf5 -d build -- -DMESSAGEVIEWER_USE_QTWEBENGINE=TRUE -DQTWEBENGINE_SUPPORT_OPTION=TRUE
%make_jobs
%install
%kf5_makeinstall -C build
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%package devel
Summary: Library for messages
License: LGPL-2.1+
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Development/Libraries
Requires: %{name} = %{version}
Requires: akonadi-mime-devel
Requires: akonadi-server-devel
Requires: kcontacts-devel
Requires: kdewebkit-devel
Requires: kidentitymanagement-devel
Requires: kmime-devel
Requires: libkleo-devel
Requires: messagelib-devel
Requires: pimcommon-devel
%description devel
The development package for the messagelib libraries
%files devel
%defattr(-,root,root)
%{_includedir}/KF5/
%{_libdir}/cmake/KF5MessageComposer/
%{_libdir}/cmake/KF5MessageCore/
%{_libdir}/cmake/KF5MessageList/
%{_libdir}/cmake/KF5MessageViewer/
%{_libdir}/cmake/KF5TemplateParser/
%{_libdir}/libKF5MessageComposer.so
%{_libdir}/libKF5MessageCore.so
%{_libdir}/libKF5MessageList.so
%{_libdir}/libKF5MessageViewer.so
%{_libdir}/libKF5TemplateParser.so
%{_libdir}/qt5/mkspecs/modules/qt_*.pri
%{_libdir}/cmake/KF5MimeTreeParser/
%{_libdir}/cmake/KF5WebEngineViewer/
%{_libdir}/libKF5MimeTreeParser.so
%{_libdir}/libKF5WebEngineViewer.so
%files
%defattr(-,root,root)
%{_kf5_configdir}/messagelib.categories
%{_kf5_configdir}/messageviewer_header_themes.knsrc
%{_libdir}/libKF5MessageComposer.so.*
%{_libdir}/libKF5MessageCore.so.*
%{_libdir}/libKF5MessageList.so.*
%{_libdir}/libKF5MessageViewer.so.*
%{_libdir}/libKF5TemplateParser.so.*
%{_libdir}/libKF5MimeTreeParser.so.*
%{_libdir}/libKF5WebEngineViewer.so.*
%{_kf5_plugindir}/messageviewer/
%{_datadir}/config.kcfg/*.kcfg
%{_datadir}/kconf_update/
%{_kf5_notifydir}/messageviewer.notifyrc
%{_datadir}/libmessageviewer/
%{_datadir}/messagelist/
%{_datadir}/messageviewer/
%changelog