File akonadi-runtime.spec of Package akonadi-runtime

# spec file for package akonadi-runtime
# Copyright (c) 2015 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

Name:           akonadi-runtime
Version:        1.13.0
Release:        0
%define rname   akonadi
Summary:        PIM Storage Service
License:        LGPL-2.1+
Group:          System/GUI/KDE
Source1:        baselibs.conf
Source99:       akonadi-runtime-rpmlintrc
# PATCH-FIX-UPSTREAM: Do not leak external payload files (kde#341884)
Patch0:         do-not-leak-old-external-payload-files.diff
BuildRequires:  boost-devel
BuildRequires:  cmake >= 2.8.8
BuildRequires:  fdupes
BuildRequires:  kde4-filesystem
BuildRequires:  libqt4-devel
BuildRequires:  libxml2
BuildRequires:  libxslt
BuildRequires:  mariadb
BuildRequires:  shared-mime-info
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires(post):    shared-mime-info
Requires(postun):  shared-mime-info
Requires:       libakonadiprotocolinternals1 = %{version}
Requires:       libqt4-sql-mysql
Requires:       mysql
Requires:       libqt4 >= %(rpm -q --queryformat '%{VERSION}' libqt4)
Suggests:       mariadb

This package contains the data files of Akonadi, the KDE PIM storage

%package -n libakonadiprotocolinternals-devel
Summary:        PIM Storage Service: Build Environment
Group:          Development/Libraries/X11
Requires:       libakonadiprotocolinternals1 = %{version}
Requires:       libqt4-devel >= %( echo `rpm -q --queryformat '%{VERSION}' libqt4-devel`)

%description -n libakonadiprotocolinternals-devel
This package contains development files of Akonadi, the KDE PIM storage

%package -n libakonadiprotocolinternals1
Summary:        PIM Storage Service
Group:          System/GUI/KDE
%requires_ge    libqt4

%description -n libakonadiprotocolinternals1
This package contains the data files of Akonadi, the KDE PIM storage

%setup -q -n %{rname}-%{version}
%patch0 -p1


  %kde4_makeinstall -C build
  %fdupes -s %{buildroot}%{_kde4_includedir}

> files.sqldrivers
if test -d $RPM_BUILD_ROOT%{_kde4_libdir}/qt4/plugins/sqldrivers
	# A database access plugin, not a development file
	echo "%{_kde4_libdir}/qt4" >> files.sqldrivers

%{_kde4_bindir}/update-mime-database %{_kde4_datadir}/mime > /dev/null 2>&1 || :

%{_kde4_bindir}/update-mime-database %{_kde4_datadir}/mime > /dev/null 2>&1 || :

%post -n libakonadiprotocolinternals1 -p /sbin/ldconfig

%postun -n libakonadiprotocolinternals1 -p /sbin/ldconfig

%files -f files.sqldrivers
%dir %{_kde4_sysconfdir}/akonadi
%config %{_kde4_sysconfdir}/akonadi/mysql-global.conf
%config %{_kde4_sysconfdir}/akonadi/mysql-global-mobile.conf

%files -n libakonadiprotocolinternals-devel
%dir %{_kde4_libdir}/cmake

%files -n libakonadiprotocolinternals1