File kontact.spec of Package kontact
#
# spec file for package kontact
#
# Copyright (c) 2017 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: kontact
Version: 16.12.2
Release: 0
# Latest stable Applications (e.g. 16.08 in KA, but 16.12.2 in KUA)
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
Summary: Personal Information Manager
License: GPL-2.0+
Group: Productivity/Other
Url: http://www.kde.org
Source0: %{name}-%{version}.tar.xz
BuildRequires: akonadi-server-devel
BuildRequires: extra-cmake-modules
BuildRequires: grantleetheme-devel
BuildRequires: kcmutils-devel
BuildRequires: kcrash-devel
BuildRequires: kdbusaddons-devel
BuildRequires: kdepim-apps-libs-devel
BuildRequires: kdoctools-devel
BuildRequires: kf5-filesystem
BuildRequires: kiconthemes-devel
BuildRequires: kontactinterface-devel
BuildRequires: kpimtextedit-devel
BuildRequires: kwindowsystem-devel
BuildRequires: libkdepim-devel
BuildRequires: mailcommon-devel
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
BuildRequires: xz
BuildRequires: pkgconfig(Qt5DBus) >= 5.6.0
BuildRequires: pkgconfig(Qt5WebEngine) >= 5.6.0
BuildRequires: pkgconfig(Qt5WebEngineWidgets) >= 5.6.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.6.0
Recommends: kmail
Suggests: akregator
Suggests: kaddressbook
Suggests: knotes
Suggests: korganizer
Provides: kontact5 = %{version}
Obsoletes: kontact5 < %{version}
# It can only build on the same platforms as Qt Webengine
ExclusiveArch: %ix86 x86_64 %arm aarch64 mips mips64
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Kontact combines the individual applications KMail, KAddressBook and
KOrganizer as views in one window.
%prep
%setup -q
%build
%cmake_kf5 -d build
%make_jobs
%install
%kf5_makeinstall -C build
%suse_update_desktop_file org.kde.kontact Office Core-Office
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING COPYING.LIB COPYING.DOC
%dir %{_kf5_appstreamdir}/
%{_kf5_bindir}/kontact
%{_kf5_appstreamdir}/org.kde.kontact.appdata.xml
%{_kf5_applicationsdir}/org.kde.kontact.desktop
%{_kf5_applicationsdir}/kontact-admin.desktop
%{_kf5_configkcfgdir}/kontact.kcfg
%{_kf5_htmldir}/en/kontact/
%{_kf5_htmldir}/en/kontact-admin/
%{_kf5_servicesdir}/kontactconfig.desktop
%config %{_kf5_configdir}/kontact.categories
%config %{_kf5_configdir}/kontact.renamecategories
%{_libdir}/libkontactprivate.so.*
%{_kf5_plugindir}/kcm_kontact.so
%{_kf5_iconsdir}/hicolor/*/apps/kontact.png
%{_datadir}/kconf_update/
%{_kf5_kxmlguidir}/kontact/
%{_datadir}/messageviewer/
%changelog