File mailcommon.spec of Package mailcommon

#
# spec file for package mailcommon
#
# 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:           mailcommon
Version:        16.08.2
Release:        0
Summary:        Base package of kdepim
License:        GPL-2.0 and LGPL-2.1+
Group:          System/Libraries
Url:            http://www.kde.org
Source0:        %{name}-%{version}.tar.xz
# 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-server-devel
BuildRequires:  extra-cmake-modules
BuildRequires:  karchive-devel
BuildRequires:  kcodecs-devel
BuildRequires:  kconfig-devel
BuildRequires:  kf5-filesystem
BuildRequires:  ki18n-devel
BuildRequires:  kiconthemes-devel
BuildRequires:  kitemviews-devel
BuildRequires:  kldap-devel
BuildRequires:  kmailtransport-devel
BuildRequires:  kmime-devel
BuildRequires:  kwindowsystem-devel
BuildRequires:  kxmlgui-devel
BuildRequires:  libkdepim-devel
BuildRequires:  mailimporter-devel
BuildRequires:  messagelib-devel
BuildRequires:  phonon4qt5-devel
BuildRequires:  pimcommon-devel
BuildRequires:  pkgconfig(Qt5Test) >= 5.4.0
BuildRequires:  pkgconfig(Qt5UiTools) >= 5.4.0
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.4.0
BuildRequires:  xsltproc
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains the mailcommon library.

%prep
%setup -q

%build
%cmake_kf5 -d build

%make_jobs

%install
%kf5_makeinstall -C build

%package -n libKF5MailCommon5
Summary:        Common Mail library for kdepim
License:        LGPL-2.1+
Group:          System/Libraries
Requires:       %{name}

%description -n libKF5MailCommon5
Common mail library

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

%package devel
Summary:        Development package for mailcommon
License:        LGPL-2.1+
Group:          Development/Libraries/KDE
Requires:       libKF5MailCommon5 = %{version}
Requires:       akonadi-server-devel
Requires:       akonadi-mime-devel
Requires:       messagelib-devel
Requires:       pimcommon-devel

%description devel
The development package for the mailcommon libraries

%files
%defattr(-,root,root)
%{_kf5_configdir}/mailcommon.categories

%files devel
%defattr(-,root,root)
%{_includedir}/KF5/MailCommon/
%{_includedir}/KF5/mailcommon/
%{_includedir}/KF5/mailcommon_version.h
%dir %{_kf5_plugindir}/designer
%{_kf5_plugindir}/designer/mailcommonwidgets.so
%{_libdir}/cmake/KF5MailCommon/
%{_libdir}/libKF5MailCommon.so
%{_libdir}/qt5/mkspecs/modules/qt_MailCommon.pri

%files -n libKF5MailCommon5
%defattr(-,root,root)
%{_libdir}/libKF5MailCommon.so.*

%changelog
openSUSE Build Service is sponsored by