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 http://bugs.opensuse.org/
#
Name: akonadi-runtime
Version: 1.13.0
Release: 0
%define rname akonadi
Summary: PIM Storage Service
License: LGPL-2.1+
Group: System/GUI/KDE
Url: http://akonadi-project.org
Source: http://download.kde.org/stable/%{rname}/src/%{rname}-%{version}.tar.bz2
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
%description
This package contains the data files of Akonadi, the KDE PIM storage
service.
%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
service.
%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
service.
%prep
%setup -q -n %{rname}-%{version}
%patch0 -p1
%build
%cmake_kde4 -d build -- -DCONFIG_INSTALL_DIR=/etc -DINSTALL_QSQLITE_IN_QT_PREFIX=TRUE -DWITH_SOPRANO=FALSE
%make_jobs
%install
%kde4_makeinstall -C build
%fdupes -s %{buildroot}%{_kde4_includedir}
> files.sqldrivers
if test -d $RPM_BUILD_ROOT%{_kde4_libdir}/qt4/plugins/sqldrivers
then
# A database access plugin, not a development file
echo "%{_kde4_libdir}/qt4" >> files.sqldrivers
fi
%post
/sbin/ldconfig
%{_kde4_bindir}/update-mime-database %{_kde4_datadir}/mime > /dev/null 2>&1 || :
%postun
/sbin/ldconfig
%{_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
%defattr(-,root,root)
%{_kde4_bindir}/asapcat
%{_kde4_bindir}/akonadi*
%dir %{_kde4_sysconfdir}/akonadi
%config %{_kde4_sysconfdir}/akonadi/mysql-global.conf
%config %{_kde4_sysconfdir}/akonadi/mysql-global-mobile.conf
%{_kde4_datadir}/dbus-1/services/org.freedesktop.Akonadi.Control.service
%{_kde4_datadir}/mime/packages/akonadi-mime.xml
%files -n libakonadiprotocolinternals-devel
%defattr(-,root,root)
%{_kde4_includedir}/akonadi/
%dir %{_kde4_libdir}/cmake
%{_kde4_libdir}/cmake/Akonadi
%{_kde4_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.*.xml
%{_kde4_libdir}/libakonadiprotocolinternals.so
%{_kde4_libdir}/pkgconfig/akonadi.pc
%files -n libakonadiprotocolinternals1
%defattr(-,root,root)
%{_kde4_libdir}/libakonadiprotocolinternals.so.1*
%changelog