File libksieve.spec of Package libksieve.openSUSE_Leap_42.2_Update

#
# spec file for package libksieve
#
# 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:           libksieve
Version:        16.08.2
Release:        0
Summary:        Base package of kdepim
License:        GPL-2.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-crash.patch boo#1041850, kde#363723 -- fix possible kmail crashs if sieve support is enabled
Patch:          fix-crash.patch
# It can only build on the same platforms as Qt Webengine
ExclusiveArch:  %ix86 x86_64 %arm aarch64 mips mips64
BuildRequires:  akonadi-server-devel
BuildRequires:  cyrus-sasl-devel
BuildRequires:  extra-cmake-modules >= 5.23.0
BuildRequires:  karchive-devel
BuildRequires:  kf5-filesystem
BuildRequires:  ki18n-devel
BuildRequires:  kiconthemes-devel
BuildRequires:  kidentitymanagement-devel
BuildRequires:  kmailtransport-devel
BuildRequires:  kmime-devel
BuildRequires:  knewstuff-devel
BuildRequires:  kpimtextedit-devel
BuildRequires:  kwindowsystem-devel
BuildRequires:  libkdepim-devel
BuildRequires:  pimcommon-devel = %{version}
BuildRequires:  pkgconfig(Qt5PrintSupport) >= 5.6.0
BuildRequires:  pkgconfig(Qt5Test) >= 5.6.0
BuildRequires:  pkgconfig(Qt5WebEngine) >= 5.6.0
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.6.0
BuildRequires:  pkgconfig(Qt5Xml) >= 5.6.0
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains the libksieve library.

%prep
%setup -q
%patch -p1

%build
%cmake_kf5 -d build -- -DQTWEBENGINE_SUPPORT_OPTION=TRUE
%make_jobs

%install
%kf5_makeinstall -C build

%post   -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%package devel
Summary:        Development package for libksieve
License:        LGPL-2.1+
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group:          Development/Libraries
Requires:       libksieve = %{version}

%description devel
The development package for the libksieve libraries

%files devel
%defattr(-,root,root)
%{_includedir}/KF5/KManageSieve/
%{_includedir}/KF5/KSieveUi/
%{_includedir}/KF5/kmanagesieve/
%{_includedir}/KF5/ksieveui/
%{_includedir}/KF5/libksieve_version.h
%{_libdir}/cmake/KF5LibKSieve/
%{_libdir}/qt5/mkspecs/modules/qt_KManageSieve.pri
%{_libdir}/qt5/mkspecs/modules/qt_KSieve.pri
%{_libdir}/qt5/mkspecs/modules/qt_KSieveUi.pri
%{_libdir}/libKF5KManageSieve.so
%{_libdir}/libKF5KSieve.so
%{_libdir}/libKF5KSieveUi.so

%files
%defattr(-,root,root)
%{_kf5_configdir}/ksieve_script.knsrc
%{_kf5_configdir}/libksieve.categories
%{_datadir}/sieve/
%{_kf5_htmldir}/en/kioslave5
%{_libdir}/libKF5KManageSieve.so.*
%{_libdir}/libKF5KSieve.so.*
%{_libdir}/libKF5KSieveUi.so.*
%dir %{_kf5_plugindir}/kf5
%{_kf5_plugindir}/kf5/kio/
%{_kf5_servicesdir}/sieve.protocol

%changelog
openSUSE Build Service is sponsored by