From 71a6358586ba6bda7d81297be75d9eba0ad4c071 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20Vr=C3=A1til?= Date: Thu, 27 Aug 2015 18:05:29 +0200 Subject: [PATCH] Add support for optional Akonadi integration (disabled for now) --- kaccounts-integration.spec | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/kaccounts-integration.spec b/kaccounts-integration.spec index fd8fbd6..abfb2e0 100644 --- a/kaccounts-integration.spec +++ b/kaccounts-integration.spec @@ -1,6 +1,8 @@ +#global with_akonadi 1 + Name: kaccounts-integration -Version: 15.08.0 -Release: 1%{?dist} +Version: 15.08.0 +Release: 1%{?dist} Summary: Small system to administer web accounts across the KDE desktop License: GPLv2+ URL: https://projects.kde.org/projects/kde/kdenetwork/kaccounts-integration @@ -26,6 +28,9 @@ BuildRequires: kf5-kiconthemes-devel BuildRequires: kf5-kconfig-devel BuildRequires: kf5-kwallet-devel BuildRequires: kf5-kdbusaddons-devel +%if 0%{?with_akonadi} +BuildRequires: kf5-akonadi-devel +%endif BuildRequires: libaccounts-qt5-devel BuildRequires: signon-devel @@ -78,6 +83,10 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %{_kf5_qtplugindir}/kded_accounts.so %{_kf5_datadir}/kservices5/kded/accounts.desktop %{_kf5_libdir}/libkaccounts.so.* +%{_kf5_qmldir}/org/kde/kaccounts +%if 0%{?with_akonadi} +%{_kf5_qtplugindir}/kaccounts/daemonplugins/kaccounts_akonadi_plugin.so +%endif %files devel %{_kf5_libdir}/libkaccounts.so