File kdepim-addons.spec of Package kdepim-addons
#
# spec file for package kdepim-addons
#
# Copyright (c) 2018 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/
#
%bcond_without lang
Name: kdepim-addons
Version: 17.12.3
Release: 0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 17.08 in KA, but 17.11.80 in KUA)
%{!?_kapp_version: %global _kapp_version %(echo %{version}| awk -F. '{print $1"."$2}')}
Summary: Addons for KDEPIM applications
License: GPL-2.0-only
Group: Productivity/Graphics/Other
Url: http://www.kde.org
Source0: %{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM
Patch0: Place-events-without-start-date-at-end-date.patch
BuildRequires: akonadi-calendar-devel
BuildRequires: akonadi-import-wizard-devel
BuildRequires: akonadi-notes-devel
BuildRequires: akonadi-server-devel
BuildRequires: calendarsupport-devel
BuildRequires: eventviews-devel
BuildRequires: extra-cmake-modules
BuildRequires: fdupes
BuildRequires: grantleetheme-devel
BuildRequires: incidenceeditor-devel
BuildRequires: kcalutils-devel
BuildRequires: kconfig-devel
BuildRequires: kdbusaddons-devel
BuildRequires: kdeclarative-devel
BuildRequires: kdepim-apps-libs-devel
BuildRequires: kf5-filesystem
BuildRequires: ki18n-devel
BuildRequires: kmailtransport-devel
BuildRequires: ktnef-devel
BuildRequires: kxmlgui-devel
BuildRequires: libgravatar-devel
BuildRequires: libkdepim-devel
BuildRequires: libkgapi-devel
BuildRequires: libkleo-devel
BuildRequires: mailcommon-devel
BuildRequires: mailimporter-devel
BuildRequires: messagelib-devel
BuildRequires: pimcommon-devel
BuildRequires: prison-qt5-devel
BuildRequires: update-desktop-files
BuildRequires: cmake(KF5LibKSieve)
BuildRequires: pkgconfig(Qt5Concurrent) >= 5.6.0
BuildRequires: pkgconfig(Qt5DBus) >= 5.6.0
BuildRequires: pkgconfig(Qt5OpenGL) >= 5.6.0
BuildRequires: pkgconfig(Qt5Test) >= 5.6.0
BuildRequires: pkgconfig(Qt5UiTools) >= 5.6.0
BuildRequires: pkgconfig(Qt5WebEngine) >= 5.6.0
BuildRequires: pkgconfig(Qt5WebEngineWidgets) >= 5.6.0
BuildRequires: pkgconfig(Qt5Widgets) >= 5.6.0
BuildRequires: pkgconfig(Qt5X11Extras) >= 5.6.0
BuildRequires: pkgconfig(Qt5XmlPatterns) >= 5.6.0
%if 0%{?suse_version} > 1325
BuildRequires: libboost_headers-devel
%else
BuildRequires: boost-devel
%endif
%if %{with lang}
Recommends: %{name}-lang
%endif
Requires(post): shared-mime-info
Requires(postun): shared-mime-info
# 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
addons for kdepim apps (as kmail addons/ kmail theme/ kaddressbook addons etc)
%if %{with lang}
%lang_package
%endif
%prep
%setup -q
%patch0 -p1
%build
%cmake_kf5 -d build -- -DKDEPIMADDONS_BUILD_EXAMPLES=FALSE
%make_jobs
%install
%kf5_makeinstall -C build
%if %{with lang}
%find_lang %{name} --with-man --all-name
%endif
%post
/sbin/ldconfig
%mime_database_post
%postun
/sbin/ldconfig
%mime_database_postun
%files
%defattr(-,root,root)
%config %{_kf5_configdir}/kdepim-addons.categories
%config %{_kf5_configdir}/kdepim-addons.renamecategories
%config %{_kf5_configdir}/kmail.antispamrc
%config %{_kf5_configdir}/kmail.antivirusrc
%dir %{_kf5_libdir}/contacteditor
%dir %{_kf5_libdir}/contacteditor/editorpageplugins
%dir %{_kf5_plugindir}
%dir %{_kf5_plugindir}/messageviewer
%dir %{_kf5_plugindir}/messageviewer/bodypartformatter
%dir %{_kf5_qmldir}/org/kde/plasma
%{_kf5_bindir}/kmail_antivir.sh
%{_kf5_bindir}/kmail_clamav.sh
%{_kf5_bindir}/kmail_fprot.sh
%{_kf5_bindir}/kmail_sav.sh
%{_kf5_libdir}/contacteditor/editorpageplugins/cryptopageplugin.so
%{_kf5_libdir}/libadblocklibprivate.so.*
%{_kf5_libdir}/libkaddressbookimportexportlibprivate.so.*
%{_kf5_libdir}/libkaddressbookmergelibprivate.so.*
%{_kf5_libdir}/libshorturlpluginprivate.so*
%{_kf5_plugindir}/importwizard/
%{_kf5_plugindir}/contacteditor/
%{_kf5_plugindir}/kaddressbook/
%{_kf5_plugindir}/kmail/
%{_kf5_plugindir}/korg_datenums.so
%{_kf5_plugindir}/korg_picoftheday.so
%{_kf5_plugindir}/korg_thisdayinhistory.so
%{_kf5_plugindir}/libksieve/
%{_kf5_plugindir}/mailtransport/
%{_kf5_plugindir}/pimcommon/
%{_kf5_plugindir}/plasmacalendarplugins/
%{_kf5_plugindir}/templateparser/
%{_kf5_plugindir}/webengineviewer/
%{_kf5_plugindir}/messageviewer/bodypartformatter/messageviewer_bodypartformatter*.so
%{_kf5_plugindir}/messageviewer/messageviewer_*.so
%{_kf5_qmldir}/org/kde/plasma/PimCalendars/
%{_kf5_servicesdir}/korganizer/
%{_kf5_sharedir}/contacteditor/
%{_kf5_sharedir}/kconf_update/webengineurlinterceptoradblock.upd
%{_kf5_sharedir}/kmail2/
%{_kf5_sharedir}/mime/packages/application-vnd-apple-pkpass.xml
%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING*
%endif
%changelog