File akonadi-runtime.spec of Package akonadi-runtime

#
# spec file for package akonadi-runtime
#
# Copyright (c) 2011 SUSE LINUX Products 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
BuildRequires:  cmake kde4-filesystem libmysqlclient-devel
BuildRequires:  automoc4 boost-devel libsoprano-devel libxslt mysql shared-mime-info
BuildRequires:  fdupes
Version:        1.5.0
Release:        3.<RELEASE2>
%define rversion %version
License:        LGPLv2.1+
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Url:            http://akonadi-project.org
Group:          System/GUI/KDE
Summary:        PIM Storage Service
# http://download.akonadi-project.org
Source0:        akonadi-%rversion.tar.bz2
Patch0:         1_5_BRANCH.diff
Requires:       libqt4 >= %(rpm -q --queryformat '%{VERSION}' libqt4)
Requires(post):    shared-mime-info
Requires(postun):  shared-mime-info
# rename from 10.3, which had 4.x version
Provides:       akonadi = %version
Obsoletes:      akonadi < 4.1
Requires:       libakonadiprotocolinternals1 = %version
Requires:       libqt4-sql-mysql
Requires:       mysql
Suggests:       mysql-community-server

%description
This package contains the data files of Akonadi, the KDE PIM storage
service.



Authors:
--------
    The KDE Team <kde@kde.org>

%package -n libakonadiprotocolinternals-devel
License:        LGPLv2.1+
Group:          Development/Libraries/X11
Summary:        PIM Storage Service: Build Environment
Requires:       libqt4-devel >= %( echo `rpm -q --queryformat '%{VERSION}' libqt4-devel`)
Requires:       %name = %version libsoprano-devel
Requires:       libakonadiprotocolinternals1 = %version
# rename from 10.3, which had 4.x version
Provides:       akonadi-devel = %version
Obsoletes:      akonadi-devel < 4.1

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



Authors:
--------
    The KDE Team <kde@kde.org>

%package -n libakonadiprotocolinternals1
Summary:        PIM Storage Service
License:        LGPLv2.1+
Group:          System/GUI/KDE
%requires_ge    libqt4

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



Authors:
--------
    The KDE Team <kde@kde.org>

%prep
%setup -q -n akonadi-%rversion
#%patch0

%build
  %cmake_kde4 -d build -- -DCONFIG_INSTALL_DIR=/etc
  %make_jobs

%install
  cd build
  %makeinstall
  %fdupes -s $RPM_BUILD_ROOT/usr/include

%post
/sbin/ldconfig
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :

%postun
/sbin/ldconfig
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :

%post -n libakonadiprotocolinternals1 -p /sbin/ldconfig

%postun -n libakonadiprotocolinternals1 -p /sbin/ldconfig

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
/usr/bin/akonadi_control
/usr/bin/akonadictl
/usr/bin/akonadi_rds
/usr/bin/akonadi_agent_server
/usr/bin/akonadi_agent_launcher
/usr/bin/akonadiserver
%dir /etc/akonadi
%config /etc/akonadi/mysql-global.conf
%config /etc/akonadi/mysql-global-mobile.conf
/usr/share/mime/packages/akonadi-mime.xml
/usr/share/dbus-1/services/org.freedesktop.Akonadi.Control.service
%if %suse_version > 1120
%dir %_libdir/qt4/plugins/sqldrivers
# A database access plugin, not a development file
%_libdir/qt4/plugins/sqldrivers/libqsqlite3.so
%endif

%files -n libakonadiprotocolinternals-devel
%defattr(-,root,root)
%dir /usr/include/akonadi
%dir %_libdir/cmake
%_libdir/cmake/Akonadi
/usr/include/akonadi/private
/usr/share/dbus-1/interfaces/org.freedesktop.Akonadi.*.xml
%_libdir/libakonadiprotocolinternals.so
%_libdir/pkgconfig/akonadi.pc

%files -n libakonadiprotocolinternals1
%defattr(-,root,root)
%_libdir/libakonadiprotocolinternals.so.1*

%changelog
openSUSE Build Service is sponsored by