File kdepim-runtime.spec of Package kdepim-runtime

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

%bcond_without lang

Name:           kdepim-runtime
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:        Base package of kdepim
License:        GPL-2.0
Group:          System/GUI/KDE
Source:         kdepim-runtime-%{version}.tar.xz
BuildRequires:  akonadi-calendar-devel >= %{_kapp_version}
BuildRequires:  akonadi-contact-devel >= %{_kapp_version}
BuildRequires:  akonadi-mime-devel >= %{_kapp_version}
BuildRequires:  akonadi-notes-devel >= %{_kapp_version}
BuildRequires:  extra-cmake-modules
BuildRequires:  kalarmcal-devel >= %{_kapp_version}
BuildRequires:  kcalcore-devel >= %{_kapp_version}
BuildRequires:  kcalutils-devel >= %{_kapp_version}
BuildRequires:  kcodecs-devel >= %{kf5_version}
BuildRequires:  kconfig-devel >= %{kf5_version}
BuildRequires:  kcontacts-devel >= %{_kapp_version}
BuildRequires:  kdav-devel >= %{_kapp_version}
BuildRequires:  kdelibs4support-devel >= %{kf5_version}
BuildRequires:  kf5-filesystem
BuildRequires:  kidentitymanagement-devel >= %{_kapp_version}
BuildRequires:  kimap-devel >= %{_kapp_version}
BuildRequires:  kio-devel >= %{kf5_version}
BuildRequires:  kitemmodels-devel >= %{kf5_version}
BuildRequires:  kmailtransport-devel >= %{_kapp_version}
BuildRequires:  kmbox-devel >= %{_kapp_version}
BuildRequires:  kmime-devel >= %{_kapp_version}
BuildRequires:  knewstuff-devel >= %{kf5_version}
BuildRequires:  knotifyconfig-devel >= %{kf5_version}
BuildRequires:  kwallet-devel >= %{kf5_version}
BuildRequires:  kwidgetsaddons-devel >= %{kf5_version}
BuildRequires:  libkgapi-devel >= 1.9.81
BuildRequires:  libkolab-qt5-devel >= 1.0
BuildRequires:  libkolabxml-devel >= 1.1
BuildRequires:  libxslt-devel
# broken KF5::AkonadiContact, phonon is in interface includes, but private link library
BuildRequires:  phonon4qt5-devel
BuildRequires:  pkgconfig
BuildRequires:  shared-mime-info
BuildRequires:  syndication-devel >= %{_kapp_version}
BuildRequires:  xz
BuildRequires:  cmake(KF5Akonadi)
BuildRequires:  pkgconfig(Qt5DBus) >= 5.5.0
BuildRequires:  pkgconfig(Qt5Test) >= 5.5.0
BuildRequires:  pkgconfig(Qt5UiTools) >= 5.5.0
BuildRequires:  pkgconfig(Qt5WebEngine) >= 5.6.0
BuildRequires:  pkgconfig(Qt5WebKitWidgets) >= 5.5.0
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.5.0
BuildRequires:  pkgconfig(Qt5XmlPatterns) >= 5.5.0
Requires(post): shared-mime-info
Requires(postun): shared-mime-info
Provides:       kio-pimlibs = %{version}
Obsoletes:      kio-pimlibs < %{version}
# It can only build on the same platforms as Qt Webengine
ExclusiveArch:  %{ix86} x86_64 %{arm} aarch64 mips mips64
Obsoletes:      kdepim4-runtime < %{version}
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This package contains the Akonadi files of the kdepim module.

%if %{with lang}

%setup -q -n kdepim-runtime-%{version}

%cmake_kf5 -d build -- -DBUILD_TESTING=ON -DKF5_INCLUDE_INSTALL_DIR=%{_kf5_includedir}


  %kf5_makeinstall -C build
  %if %{with lang}
    %find_lang %{name} --with-man --all-name
  rm -rvf %{buildroot}%{_kf5_libdir}/*.so



%config %{_kf5_configdir}/kdepim-runtime.categories
%config %{_kf5_configdir}/kdepim-runtime.renamecategories

%if %{with lang}
%files lang -f %{name}.lang