LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File plasma-addons.spec of Package plasma-addons (Project KDE:Unstable:SC)

#
# spec file for package plasma-addons
#
# 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:           plasma-addons
Version:        4.9.80_20121119
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
Patch0:         4_7_BRANCH.diff
Patch1:         krunner-akonadi-dont-cause-start.diff
Patch2:         lancelot-suse.diff
BuildRequires:  fdupes
BuildRequires:  ibus-devel
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  kopete-devel
BuildRequires:  libdbusmenu-qt-devel
BuildRequires:  libeigen2-devel
BuildRequires:  libkexiv2-devel
BuildRequires:  libqalculate-devel
BuildRequires:  libqca2-devel
BuildRequires:  libqimageblitz-devel
BuildRequires:  marble-devel
BuildRequires:  python-qt4-devel
BuildRequires:  xz
BuildRequires:  libqjson-devel
BuildRequires:  mediastreamer2-devel
BuildRequires:  libortp-devel
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}
%patch0 -p1
%patch1
%patch2

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %make_install
  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 %{_includedir}/lancelot-datamodels
%{_includedir}/lancelot
%{_includedir}/KDE/Lancelot
%{_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

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

%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_appsdir}/bball
%{_kde4_appsdir}/desktoptheme/
%exclude %{_kde4_appsdir}/desktoptheme/*/lancelot
%dir %{_kde4_appsdir}/kdeplasma-addons
%{_kde4_appsdir}/kdeplasma-addons/mediabuttonsrc
%{_kde4_appsdir}/plasma/services/
%{_kde4_appsdir}/plasma-applet-*
%{_kde4_appsdir}/plasmaboard/
%{_kde4_appsdir}/plasma_pastebin
%{_kde4_appsdir}/plasma/packages/
%{_kde4_appsdir}/plasma/wallpapers/
%{_kde4_appsdir}/plasma_wallpaper_pattern
%{_kde4_appsdir}/rssnow
%config %{_kde_config_dir}/*.knsrc
%{_kde4_iconsdir}/*/*/apps/*
%exclude %{_kde4_iconsdir}/*/*/apps/lancelot*.png
%{_kde4_libdir}/libplasma*.so.*
%{_kde4_libdir}/librtm.so.*
%{_kde4_libexecdir}/kimpanel-ibus-panel
%{_kde4_modulesdir}/plasma_*
%exclude %{_kde4_modulesdir}/plasma_applet_lancelot*.so
%{_kde4_modulesdir}/plasma-applet_systemloadviewer.so
%exclude %{_kde4_modulesdir}/plasma_wallpaper_marble.so
%{_kde4_servicesdir}/*
%{_kde4_servicetypes}/plasma_*.desktop
%{_kde4_sharedir}/config.kcfg/kimpanelconfig.kcfg
%exclude %{_kde4_servicesdir}/lancelot.desktop
%exclude %{_kde4_servicesdir}/plasma-applet-lancelot*.desktop
%exclude %{_kde4_servicesdir}/plasma-wallpaper-marble.desktop
%{_kde4_appsdir}/plasma/plasmoids/konqprofiles/
%{_kde4_appsdir}/plasma/plasmoids/konsoleprofiles/
%{_kde4_modulesdir}/krunner_*.so
%{_kde4_modulesdir}/kcm_krunner_*.so
%{_kde4_modulesdir}/kcm_plasma_runner_events*.so
%{_kde4_iconsdir}/hicolor/*/actions/youtube.*
%{_kde4_appsdir}/plasma/plasmoids/nowplaying/
%{_kde4_appsdir}/plasma/plasmoids/calculator/

%changelog