File kdepim-addons.spec of Package kdepim-addons

#
# spec file for package kdepim-addons
#
# 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/
#


%bcond_without lang

Name:           kdepim-addons
Version:        17.04.2
Release:        0
%define kf5_version 5.26.0
# Latest stable Applications (e.g. 16.08 in KA, but 16.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
Group:          Productivity/Graphics/Other
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-calendar-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:  ktnef-devel
BuildRequires:  kxmlgui-devel
BuildRequires:  libgravatar-devel
BuildRequires:  libkdepim-devel
BuildRequires:  libkgapi-devel
BuildRequires:  libkleo-devel
BuildRequires:  mailcommon-devel
BuildRequires:  messagelib-devel
BuildRequires:  pimcommon-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
Recommends:     %{name}-lang
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

%build
%cmake_kf5 -d build
%make_jobs

%install
  %kf5_makeinstall -C build
  %if %{with lang}
    %find_lang %{name} --with-man --all-name
  %endif

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

%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
%{_bindir}/kmail_antivir.sh
%{_bindir}/kmail_clamav.sh
%{_bindir}/kmail_fprot.sh
%{_bindir}/kmail_sav.sh
%dir %{_libdir}/akonadi/
%dir %{_libdir}/akonadi/contact/
%dir %{_libdir}/akonadi/contact/editorpageplugins/
%{_libdir}/akonadi/contact/editorpageplugins/cryptopageplugin.so
%{_libdir}/libshorturlpluginprivate.so*
%{_kf5_plugindir}/kmail/
%{_kf5_plugindir}/korg_datenums.so
%{_kf5_plugindir}/korg_hebrew.so
%{_kf5_plugindir}/korg_picoftheday.so
%{_kf5_plugindir}/korg_thisdayinhistory.so
%{_kf5_plugindir}/messageviewer/
%{_kf5_plugindir}/pimcommon/
%{_datadir}/kmail2/
%{_kf5_servicesdir}/korganizer/
%{_kf5_plugindir}/kaddressbook/
%{_libdir}/libkaddressbookmergelibprivate.so.*
%{_libdir}/libkaddressbookimportexportlibprivate.so.*
%{_kf5_plugindir}/messageviewer_bodypartformatter_application_mstnef.so
%{_kf5_plugindir}/messageviewer_bodypartformatter_text_vcard.so
%{_kf5_plugindir}/messageviewer_bodypartformatter_text_xdiff.so
%{_kf5_plugindir}/messageviewer_bodypartformatter_application_gnupgwks.so
%{_datadir}/messageviewer/
%{_libdir}/libadblocklibprivate.so.*
%{_kf5_plugindir}/messageviewer_bodypartformatter_text_calendar.so
%{_kf5_plugindir}/plasmacalendarplugins/
%{_kf5_plugindir}/webengineviewer/
%dir %{_kf5_qmldir}/org/kde/plasma
%{_kf5_qmldir}/org/kde/plasma/PimCalendars/
%{_datadir}/kconf_update/webengineurlinterceptoradblock.upd
%{_kf5_plugindir}/libksieve/

%if %{with lang}
%files lang -f %{name}.lang
%doc COPYING*
%endif

%changelog
openSUSE Build Service is sponsored by