File kdepim4-runtime.spec of Package kdepim4-runtime

#
# spec file for package kdepim4-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:           kdepim4-runtime
Version:        4.14.10
Release:        0
Summary:        Base package of kdepim
License:        LGPL-2.1+
Group:          System/GUI/KDE
Url:            http://www.kde.org
Source0:        kdepim-runtime-%{version}.tar.xz
BuildRequires:  boost-devel >= 1.34.0
BuildRequires:  cyrus-sasl-devel
BuildRequires:  fdupes
BuildRequires:  libakonadiprotocolinternals-devel >= 1.11.80
BuildRequires:  libkde4-devel >= %{version}
BuildRequires:  libkdepimlibs4-devel >= %{version}
BuildRequires:  libkfbapi-devel >= 1.0
BuildRequires:  libkgapi-devel >= 1.9.81
BuildRequires:  libkolab-devel >= 0.5.0
BuildRequires:  libkolabxml-devel >= 1.0
BuildRequires:  libxslt-devel
BuildRequires:  shared-mime-info
BuildRequires:  xz
Suggests:       kontact
Requires(post):     shared-mime-info
Requires(postun):   shared-mime-info
Recommends:     baloo-pim >= %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_akonadi_requires
%kde4_pimlibs_requires
%kde4_runtime_requires

%description
This package contains the Akonadi files of the kdepim module.

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

%build
%ifarch ppc64
RPM_OPT_FLAGS="%{optflags} -mminimal-toc"
%endif
  %cmake_kde4 -d build
  %make_jobs

%install
  %kde4_makeinstall -C build
  #remove menu entries of development tools
  %suse_update_desktop_file -u akonaditray      Network  Email
  %fdupes -s %{buildroot}
  # remove stuff we don't want to package
  rm %{buildroot}%{_kde4_libdir}/libakonadi*.so
  rm %{buildroot}%{_kde4_libdir}/libkmindexreader.so
  rm %{buildroot}%{_kde4_libdir}/libmaildir.so
  rm %{buildroot}%{_kde4_libdir}/libfolderarchivesettings.so
  rm %{buildroot}%{_kde4_libdir}/libkdepim-copy.so
  %kde_post_install

%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 || :

%files
%defattr(-,root,root)
%doc COPYING*
%{_kde4_applicationsdir}/accountwizard.desktop
%{_kde4_applicationsdir}/akonaditray.desktop
%{_kde4_appsdir}/akonadi
%{_kde4_appsdir}/akonadi_facebook_resource/
%{_kde4_appsdir}/akonadi_kolabproxy_resource/
%{_kde4_appsdir}/akonadi_maildispatcher_agent/
%{_kde4_appsdir}/akonadi_newmailnotifier_agent/
%{_kde4_appsdir}/kconf_update/
%{_kde4_bindir}/*
%{_kde4_configdir}/*
%{_kde4_datadir}/akonadi
%{_kde4_datadir}/autostart/kaddressbookmigrator.desktop
%{_kde4_datadir}/dbus-1/interfaces/*
%{_kde4_datadir}/mime/packages/*.xml
%{_kde4_iconsdir}/hicolor/*/apps/*
%{_kde4_libdir}/libakonadi-filestore.so.4*
%{_kde4_libdir}/libfolderarchivesettings.so.4*
%{_kde4_libdir}/libkdepim-copy.so.4*
%{_kde4_libdir}/libkmindexreader.so.4*
%{_kde4_libdir}/libmaildir.so.4*
%{_kde4_modulesdir}/*
%{_kde4_servicetypesdir}/davgroupwareprovider.desktop
%{_kde4_sharedir}/services

%changelog
openSUSE Build Service is sponsored by