File plasma-addons.spec of Package plasma-addons.openSUSE_13.1_Update

#
# spec file for package plasma-addons
#
# Copyright (c) 2013 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:           plasma-addons
Version:        4.11.4
Release:        0
Summary:        Additional Plasma Widgets
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://www.kde.org/
Source0:        kdeplasma-addons-%{version}.tar.xz
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch1:         krunner-akonadi-dont-cause-start.diff
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch2:         lancelot-suse.diff
BuildRequires:  fdupes
BuildRequires:  ibus-devel
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  libdbusmenu-qt-devel
BuildRequires:  libeigen2-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libkexiv2-devel
BuildRequires:  libqalculate-devel
BuildRequires:  libqca2-devel
BuildRequires:  libqimageblitz-devel
BuildRequires:  libqjson-devel
BuildRequires:  marble-devel
BuildRequires:  nepomuk-core-devel
BuildRequires:  python-qt4-devel
BuildRequires:  qoauth-devel
BuildRequires:  xz
Recommends:     plasma-addons-akonadi
Recommends:     plasma-addons-lancelot
Recommends:     plasma-addons-marble
Provides:       extragear-plasma = 4.0.80
Obsoletes:      extragear-plasma < 4.0.80
Provides:       kdebase4-workspace-plasmoids = 4.0.4
Obsoletes:      kdebase4-workspace-plasmoids < 4.0.4
Provides:       kdeplasmoids4 = 4.0.85
Obsoletes:      kdeplasmoids4 < 4.0.85
Provides:       kde4-plasma-addons = 4.2.96
Obsoletes:      kde4-plasma-addons < 4.2.96
Provides:       plasmoid-qalculate = 0.7.2
Obsoletes:      plasmoid-qalculate < 0.7.2
Provides:       plasmoid-icon-tasks = 0.9.3
Obsoletes:      plasmoid-icon-tasks < 0.9.3
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires(post):     shared-mime-info
Requires(postun):   shared-mime-info
%kde4_runtime_requires

%description
Additional plasmoids from upstream for use on the KDE workspace

%package devel
Summary:        Development files for %{name}
Group:          Development/Libraries/KDE
Requires:       plasma-addons = %{version}
Requires:       plasma-addons-akonadi = %{version}
Requires:       plasma-addons-lancelot = %{version}
Provides:       kde4-plasma-addons-devel = 4.2.96
Obsoletes:      kde4-plasma-addons-devel < 4.2.96

%description devel
Development files and headers needed to build software
using %{name}

%package akonadi

Summary:        Additional Plasmoids Depending on Akonadi
Group:          System/GUI/KDE
Requires:       kdepim4-runtime
%kde4_pimlibs_requires
%kde4_akonadi_requires
%kde4_runtime_requires

%description akonadi
Additional plasmoids from upstream that require Akonadi

%package lancelot
Summary:        Additional Lancelot Launcher Plasmoid
Group:          System/GUI/KDE
Requires:       kdepim4-runtime
%kde4_pimlibs_requires
%kde4_akonadi_requires
%kde4_runtime_requires

%description lancelot
Additional launcher plasmoid from upstream that requires Akonadi

%package marble
Summary:        Additional Plasmoids Depending on Marble
Group:          System/GUI/KDE
Requires:       marble = %{version}
Provides:       kde4-plasma-addons-marble = 4.2.96
Obsoletes:      kde4-plasma-addons-marble < 4.2.96
%kde4_runtime_requires

%description marble
Additional plasmoids from upstream that require Marble

%prep
%setup -q -n kdeplasma-addons-%{version}
%patch1
%patch2

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %kde4_makeinstall
  cd ..
  %fdupes -s %{buildroot}
  %kde_post_install

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

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

%post   akonadi -p /sbin/ldconfig
%postun akonadi -p /sbin/ldconfig

%post   lancelot -p /sbin/ldconfig
%postun lancelot -p /sbin/ldconfig

%post   marble -p /sbin/ldconfig
%postun marble -p /sbin/ldconfig

%files devel
%defattr(-,root,root)
%dir %{_kde4_includedir}/lancelot-datamodels
%{_kde4_includedir}/lancelot
%{_kde4_includedir}/KDE/Lancelot
%{_kde4_includedir}/lancelot-datamodels/
%{_kde4_libdir}/liblancelot.so
%{_kde4_libdir}/liblancelot-datamodels.so
%{_kde4_libdir}/libplasma*.so
%{_kde4_libdir}/librtm.so
%{_kde4_appsdir}/cmake/modules/FindLancelot*

%files akonadi
%defattr(-,root,root)
%doc COPYING
%{_kde4_modulesdir}/kcm_plasma_runner_events.so
%{_kde4_modulesdir}/krunner_contacts.so
%{_kde4_modulesdir}/plasma_runner_events.so
%{_kde4_servicesdir}/plasma-runner-contacts.desktop
%{_kde4_servicesdir}/plasma-runner-events*.desktop

%files lancelot
%defattr(-,root,root)
%doc COPYING
%{_kde4_appsdir}/desktoptheme/*/lancelot
%{_kde4_appsdir}/lancelot
%{_kde4_bindir}/lancelot
%{_kde4_datadir}/mime/packages/lancelotpart-mime.xml
%{_kde4_iconsdir}/*/*/apps/lancelot*.png
%{_kde4_libdir}/liblancelot-datamodels.so.*
%{_kde4_libdir}/liblancelot.so.*
%{_kde4_modulesdir}/plasma_applet_lancelot*.so
%{_kde4_servicesdir}/lancelot.desktop
%{_kde4_servicesdir}/plasma-applet-lancelot*.desktop

%files marble
%defattr(-,root,root)
%doc COPYING
%{_kde4_modulesdir}/plasma_wallpaper_marble.so
%{_kde4_servicesdir}/plasma-wallpaper-marble.desktop

%files
%defattr(-,root,root)
%doc COPYING
%config %{_kde_config_dir}/*.knsrc
%dir %{_kde4_appsdir}/kdeplasma-addons
%exclude %{_kde4_appsdir}/desktoptheme/*/lancelot
%exclude %{_kde4_iconsdir}/*/*/apps/lancelot*.png
%exclude %{_kde4_modulesdir}/kcm_plasma_runner_events.so
%exclude %{_kde4_modulesdir}/krunner_contacts.so
%exclude %{_kde4_modulesdir}/plasma_applet_lancelot*.so
%exclude %{_kde4_modulesdir}/plasma_runner_events.so
%exclude %{_kde4_modulesdir}/plasma_wallpaper_marble.so
%exclude %{_kde4_servicesdir}/lancelot.desktop
%exclude %{_kde4_servicesdir}/plasma-applet-lancelot*.desktop
%exclude %{_kde4_servicesdir}/plasma-runner-contacts.desktop
%exclude %{_kde4_servicesdir}/plasma-runner-events*.desktop
%exclude %{_kde4_servicesdir}/plasma-wallpaper-marble.desktop
%{_kde4_appsdir}/bball/
%{_kde4_appsdir}/desktoptheme/
%{_kde4_appsdir}/kdeplasma-addons/mediabuttonsrc
%{_kde4_appsdir}/plasma-applet-frame/
%{_kde4_appsdir}/plasma-applet-opendesktop/
%{_kde4_appsdir}/plasma-applet-opendesktop-activities/
%{_kde4_appsdir}/plasma/packages/
%{_kde4_appsdir}/plasma/plasmoids/calculator/
%{_kde4_appsdir}/plasma/plasmoids/konqprofiles/
%{_kde4_appsdir}/plasma/plasmoids/konsoleprofiles/
%{_kde4_appsdir}/plasma/plasmoids/nowplaying/
%{_kde4_appsdir}/plasma/services/
%{_kde4_appsdir}/plasma/wallpapers/
%{_kde4_appsdir}/plasma_pastebin/
%{_kde4_appsdir}/plasma_wallpaper_pattern/
%{_kde4_appsdir}/plasmaboard/
%{_kde4_appsdir}/rssnow/
%{_kde4_iconsdir}/*/*/apps/*
%{_kde4_iconsdir}/hicolor/*/actions/*youtube.*
%{_kde4_libdir}/libplasma*.so.*
%{_kde4_libdir}/librtm.so.*
%{_kde4_modulesdir}/kcm_*.so
%{_kde4_modulesdir}/krunner_*.so
%{_kde4_modulesdir}/plasma-applet_systemloadviewer.so
%{_kde4_modulesdir}/plasma_*
%{_kde4_servicesdir}/*
%{_kde4_servicetypes}/plasma_*.desktop
%{_kde4_sharedir}/config.kcfg/kimpanelconfig.kcfg
%if %{suse_version} > 1220
%{_kde4_libexecdir}/kimpanel-ibus-panel
%endif

%changelog
openSUSE Build Service is sponsored by