File plasma-addons.spec of Package plasma-addons

#
# spec file for package plasma-addons
#
# 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/
#

# norootforbuild


Name:           plasma-addons
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  kopete
BuildRequires:  libattica-devel
BuildRequires:  libeigen2-devel
BuildRequires:  libkdepimlibs4-devel
BuildRequires:  libkexiv2-devel
BuildRequires:  libQtWebKit-devel
BuildRequires:  libqalculate-devel
BuildRequires:  libqca2-devel
BuildRequires:  libqimageblitz-devel
BuildRequires:  libsoprano-devel
BuildRequires:  marble-devel
BuildRequires:  python-qt4-devel
BuildRequires:  soprano-backend-redland
BuildRequires:  fdupes
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        Additional Plasma Widgets
Url:            http://www.kde.org/
Version:        4.6.0
Release:        4.<RELEASE2>
Source0:        kdeplasma-addons-%{version}.tar.bz2
Patch0:         4_6_BRANCH.diff
Patch1:         krunner-akonadi-dont-cause-start.diff
Patch2:         lancelot-suse.diff
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
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Recommends:     plasma-addons-marble
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
%kde4_runtime_requires
%kde4_pimlibs_requires
%kde4_akonadi_requires
Requires:       kdepim4-runtime
Requires(post):     shared-mime-info
Requires(postun):   shared-mime-info

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



Authors:
--------
    The KDE Team

%package devel
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        Additional Plasmoids (Development)
Requires:       plasma-addons = %version
Provides:       kde4-plasma-addons-devel = 4.2.96
Obsoletes:      kde4-plasma-addons-devel <= 4.2.96

%description devel
Development files of Plasmoids



Authors:
--------
    The KDE Team

%package marble
License:        GPLv2+
Group:          System/GUI/KDE
Summary:        Additional Plasmoids Depending on Marble
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



Authors:
--------
   The KDE Team

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

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %makeinstall
  cd ..
  # remove .so, not needed for development
  %if %suse_version > 1020
  %fdupes -s $RPM_BUILD_ROOT
  %endif
  %kde_post_install

%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 marble -p /sbin/ldconfig

%postun marble -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files devel
%defattr(-,root,root)
%dir /usr/include/lancelot-datamodels
/usr/include/lancelot
/usr/include/KDE/Lancelot
/usr/include/lancelot-datamodels/
%_kde4_libdir/liblancelot.so
%_kde4_libdir/liblancelot-datamodels.so
%if 0
%_kde4_libdir/libconversion.so
%endif
%_kde4_libdir/libplasmacomicprovidercore.so
%_kde4_libdir/libplasmapotdprovidercore.so
%_kde4_libdir/libplasmaweather.so
%_kde4_libdir/libplasma_groupingcontainment.so
%_kde4_libdir/librtm.so
%_kde4_appsdir/cmake/modules/FindLancelot*

%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
%dir %_kde4_appsdir/plasma-applet-opendesktop-activities
%_kde4_modulesdir/kcm_krunner_spellcheck.so
%_kde4_modulesdir/kcm_krunner_audioplayercontrol.so
%_kde4_modulesdir/kcm_krunner_charrunner.so
%_kde4_modulesdir/kcm_plasma_runner_events.so
%_kde4_modulesdir/krunner_browserhistory.so
%_kde4_modulesdir/krunner_audioplayercontrol.so
%_kde4_modulesdir/krunner_kopete.so
%_kde4_modulesdir/krunner_charrunner.so
%_kde4_modulesdir/krunner_mediawiki.so
#%_kde4_modulesdir/krunner_contacts.so
%_kde4_modulesdir/krunner_converter.so
%if 0
%_kde4_libdir/libconversion.so.*
%endif
%_kde4_modulesdir/krunner_katesessions.so
%_kde4_modulesdir/krunner_konquerorsessions.so
%_kde4_modulesdir/krunner_konsolesessions.so
%_kde4_modulesdir/krunner_spellcheckrunner.so
%_kde4_modulesdir/krunner_contacts.so
%exclude %_kde4_modulesdir/plasma_wallpaper_marble.so
%_kde4_modulesdir/plasma_*
%_kde_config_dir/comic.knsrc
%_kde_config_dir/pastebin.knsrc
%_kde_config_dir/virus_wallpaper.knsrc
%_kde_config_dir/plasmaweather.knsrc
%_kde4_appsdir/bball
%_kde4_appsdir/desktoptheme/*
%_kde4_appsdir/plasma/services/tweet.operations
%_kde4_appsdir/rssnow
%exclude %_kde4_servicesdir/plasma-wallpaper-marble.desktop
%_kde4_servicesdir/*
%_kde4_servicetypes/plasma_comicprovider.desktop
%_kde4_libdir/libplasmacomicprovidercore.so.*
%_kde4_libdir/libplasmaweather.so.*
%_kde4_libdir/libplasma_groupingcontainment.so.*
%_kde4_iconsdir/hicolor/*/apps/previewer.*
%_kde4_iconsdir/hicolor/scalable/apps/fifteenpuzzle.svgz
%_kde4_iconsdir/*/*/apps/bball.*
%_kde4_iconsdir/*/*/apps/qalculate-applet.*
%_kde4_iconsdir/*/*/apps/lancelot-start.*
%_kde4_iconsdir/hicolor/scalable/apps/accessories-dictionary.svgz
%_kde4_bindir/lancelot
%_kde4_libdir/liblancelot.so.*
%_kde4_libdir/liblancelot-datamodels.so.*
#/usr/share/dbus-1/services/org.kde.lancelot.service
#%_kde4_iconsdir/hicolor/*/apps/lancelot-part.*
%_kde4_iconsdir/hicolor/*/apps/plasmaapplet-shelf.png
%_kde4_iconsdir/hicolor/*/apps/lancelot.*
%_kde4_iconsdir/hicolor/*/apps/lifegame.*
%_kde4_iconsdir/hicolor/*/apps/luna.*
%_kde4_iconsdir/hicolor/*/apps/eyes.*
/usr/share/mime/packages/lancelotpart-mime.xml
%_kde4_modulesdir/plasma-applet_systemloadviewer.so
%_kde4_appsdir/lancelot
%_kde4_appsdir/plasma_wallpaper_pattern
%_kde4_appsdir/plasma_pastebin
%_kde4_libdir/libplasmapotdprovidercore.so.*
%_kde4_libdir/librtm.so.*
%_kde4_appsdir/plasma-applet-opendesktop
%_kde4_appsdir/plasma/services/rtmauth.operations
%_kde4_appsdir/plasma/services/rtmtask.operations
%_kde4_appsdir/plasma/services/rtmtasks.operations
%_kde4_appsdir/plasma/services/kdeobservatory.operations
%dir %_kde4_appsdir/plasmaboard
%_kde4_appsdir/plasmaboard/basic.xml
%_kde4_appsdir/plasmaboard/extended.xml
%_kde4_appsdir/plasmaboard/full.xml
%_kde4_appsdir/plasmaboard/mid.xml
%_kde4_appsdir/plasmaboard/tablet.xml
%_kde4_servicetypes/plasma_potdprovider.desktop
%_kde4_appsdir/plasma-applet-frame
%_kde4_appsdir/plasma/services/ocsPerson.operations
%_kde4_appsdir/plasma-applet-opendesktop-activities/plasma-applet-opendesktop-activities.notifyrc

%changelog
openSUSE Build Service is sponsored by