File kdepim4-runtime.spec of Package kdepim4-runtime

#
# spec file for package kdepim4-runtime
#
# Copyright (c) 2012 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:           kdepim4-runtime
Version:        4.8.4
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
Source1:        akonadi.png
Patch0:         4_8_BRANCH.diff
Patch1:         disable-knut.diff
BuildRequires:  fdupes
BuildRequires:  libkdepimlibs4-devel >= %version
BuildRequires:  xz
Suggests:       kontact
Obsoletes:      kde4-akonadi < 4.2.90
Provides:       kde4-akonadi = 4.2.90
Obsoletes:      kdepim4-runtime-devel < 4.5.81svn1202101
Provides:       kdepim4-runtime-devel = 4.5.81svn1202101
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}
%patch0 -p1
%patch1

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

%install
  cd build
  %make_install
  cd ..
  #remove menu entries of development tools
  mkdir -p %{buildroot}%{_datadir}/pixmaps
  install $RPM_SOURCE_DIR/akonadi.png %{buildroot}%{_datadir}/pixmaps/
  %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
  %kde_post_install

%post   -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
  rm -rf %{buildroot}
  rm -rf filelists

%files
%defattr(-,root,root)
%{_datadir}/akonadi
%{_datadir}/autostart/kaddressbookmigrator.desktop
%{_datadir}/dbus-1/interfaces/*
%{_datadir}/mime/packages/*.xml
%{_datadir}/pixmaps/akonadi.png
%{_datadir}/ontology/kde/
%{_kde4_applicationsdir}/accountwizard.desktop
%{_kde4_applicationsdir}/akonaditray.desktop
%{_kde4_appsdir}/akonadi
%{_kde4_appsdir}/akonadi_maildispatcher_agent/
%{_kde4_bindir}/*
%{_kde4_configdir}/*
%{_kde4_iconsdir}/hicolor/*/apps/*.png
%{_kde4_libdir}/libakonadi-filestore.so.4*
%{_kde4_libdir}/libakonadi-xml.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_servicetypesdir}/akonadinepomukfeeder.desktop
%{_kde4_sharedir}/services
%{_kde4_libdir}/libnepomukfeederpluginlib.a
%{_kde4_libdir}/libkdepim-runtime-dms-copy.so
%{_kde4_libdir}/libkdepim-copy.so

%changelog
openSUSE Build Service is sponsored by