File kdeaddons3.spec of Package kdeaddons3

#
# spec file for package kdeaddons3
#
# 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:           kdeaddons3
BuildRequires:  SDL-devel
BuildRequires:  db-devel
BuildRequires:  kdebase3-apps
BuildRequires:  kdebase3-devel
BuildRequires:  kdegames3-devel
BuildRequires:  kdemultimedia3-devel
BuildRequires:  kdemultimedia3-extra
BuildRequires:  kdepim3-devel
%if %suse_version > 1120
BuildRequires:  gtk2-devel
%else
BuildRequires:  gtk-devel
%endif
Summary:        Additional Modules for Kate, Kicker, Konqueror, and Noatun
License:        GPL-2.0 and LGPL-2.0+
Group:          System/GUI/KDE
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Version:        3.5.10
Release:        0
Url:            http://www.kde.org
Requires:       kdelibs3
Source:         kdeaddons-%{version}.tar.bz2
Patch0:         3_5_BRANCH.diff
Patch1:         disable-lnk.diff
Patch2:         fix-kimgalleryplugin-output.diff
Patch3:         google-suggest.diff
Patch4:         permanent-searchbar.diff
Patch5:         use-db.diff
Patch6:         kdeaddons-3.5.10-gcc45.diff
Patch7:         kdeaddons-trinity-kate-fix-recognition-of-cpp-files.patch
Patch8:         kdeaddons-trinity-fix-ark-plugin.patch
Patch9:         kdeaddons-trinity-fix-double-entry-rar.patch

%description
This package contains some fun and useful additional modules:

* Kate

* Kicker

* Konqueror

* Noatun



Authors:
--------
    The KDE Team <kde@kde.org>

%package games
# usesubdirs atlantikdesigner
Provides:       kdeaddons3 = %{version}-%{release}
Summary:        Additional Modules for Atlantik
Group:          System/GUI/KDE

%description games
An editor to create levels for Atlantik



Authors:
--------
    The KDE Team <kde@kde.org>

%package konqueror
# usesubdirs kfile-plugins knewsticker-scripts konq-plugins
Obsoletes:      kdeaddons3-internet
Obsoletes:      metabar
Provides:       kdeaddons3 = %{version}-%{release}
Provides:       kdeaddons3-internet
Provides:       kdeaddons3:/opt/kde3/share/apps/khtml/kpartplugins/plugin_babelfish.rc
Provides:       metabar
Summary:        Konqueror Related Add-Ons
Group:          Productivity/Networking/Web/Utilities

%description konqueror
This package contains web-related (like checking for correct HTML
syntax, translating a web site, or to easily enable/disable browser
functions) and file-related (like image gallery creator, image view
kpart, ark archiver plugin, kuick copy plugin) Konqueror plug-ins.



Authors:
--------
    The KDE Team <kde@kde.org>

%package kontact
# usesubdirs kontact ksig
Requires:       kdenetwork3-news
Provides:       kdeaddons3 = %{version}-%{release}
Summary:        Additional Modules for Kontact
Group:          System/GUI/KDE

%description kontact
This package contains plugins for Kontact. They can be used on the

* newsticker plugin

* world clock



Authors:
--------
    The KDE Team <kde@kde.org>



Authors:
--------
    The KDE Team <kde@kde.org>

%package kate
# usesubdirs kate
Provides:       kdeaddons3 = %{version}-%{release}
Provides:       kdeaddons3:/opt/kde3/bin/dcop_kate
Summary:        A text editor for KDE
Group:          Productivity/Editors/Other

%description kate
This package contains extensions for kate, the default KDE text editor.
The extensions are able to check the syntax of html or xml documents
and are used to convert to different text formats and encodings.



Authors:
--------
    The KDE Team <kde@kde.org>

%package kicker
# usesubdirs kicker-applets
Provides:       kdeaddons3 = %{version}-%{release}
Provides:       kdeaddons3:/opt/kde3/share/apps/kicker/applets/ktimemon.desktop
Summary:        KDE kicker applets
Group:          Productivity/Networking/News/Clients

%description kicker
This package contains Kicker (the KDE panel) applets to monitor the
time on all regions on earth and to select a color from any place on
the desktop.



Authors:
--------
    The KDE Team <kde@kde.org>

%prep
%setup -q -n kdeaddons-%{version}
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7 -p1
%patch8 -p1
%patch9 -p1

%build
. /etc/opt/kde3/common_options
update_admin
./configure $configkde

make %{?jobs:-j%jobs}

%install
. /etc/opt/kde3/common_options
make DESTDIR=$RPM_BUILD_ROOT $INSTALL_TARGET
mkdir -p $RPM_BUILD_ROOT/opt/kde3/share/icons/hicolor/16x16/apps
mv $RPM_BUILD_ROOT/opt/kde3/share/icons/{lo,hi}color/16x16/apps/autorefresh.png
rm -f ${RPM_BUILD_ROOT}/opt/kde3/share/apps/konqsidebartng/kicker_entries/mplayer.desktop
rm -f ${RPM_BUILD_ROOT}/opt/kde3/share/apps/konqsidebartng/add/mplayer_add.desktop
rm -f ${RPM_BUILD_ROOT}/opt/kde3/share/apps/konqsidebartng/entries/mplayer.desktop
rm -f ${RPM_BUILD_ROOT}/opt/kde3/share/applnk/.hidden/fsview.desktop
%suse_update_desktop_file atlantikdesigner Game    BoardGame
%suse_update_desktop_file -r ksig          Network Email   
kde_post_install

%post
%run_ldconfig

%files konqueror
%defattr(-,root,root)
/opt/kde3/bin/fsview
/opt/kde3/bin/jpegorient
/opt/kde3/%_lib/kde3/kfile_*
/opt/kde3/%_lib/kde3/konq_sidebarnews.*
/opt/kde3/%_lib/kde3/kcm_kuick.*
/opt/kde3/%_lib/kde3/libautorefresh.*
/opt/kde3/%_lib/kde3/libbabelfishplugin.*
/opt/kde3/%_lib/kde3/libcrashesplugin.*
/opt/kde3/%_lib/kde3/libdirfilterplugin.*
/opt/kde3/%_lib/kde3/libdomtreeviewerplugin.*
/opt/kde3/%_lib/kde3/libfsviewpart.*
/opt/kde3/%_lib/kde3/libkhtmlsettingsplugin.*
/opt/kde3/%_lib/kde3/libkimgallery.*
/opt/kde3/%_lib/kde3/libkuickplugin.*
/opt/kde3/%_lib/kde3/libminitoolsplugin.*
/opt/kde3/%_lib/kde3/librenaudioplugin.*
/opt/kde3/%_lib/kde3/librenimageplugin.*
/opt/kde3/%_lib/kde3/libuachangerplugin.*
/opt/kde3/%_lib/kde3/libvalidatorsplugin.*
/opt/kde3/%_lib/kde3/libwebarchiverplugin.*
/opt/kde3/%_lib/kde3/libarkplugin.*
/opt/kde3/%_lib/kde3/libsearchbarplugin.*
/opt/kde3/%_lib/kde3/webarchivethumbnail.*
/opt/kde3/%_lib/kde3/libakregatorkonqfeedicon.*
/opt/kde3/%_lib/kde3/libakregatorkonqplugin.*
/opt/kde3/%_lib/kde3/librellinksplugin.*
/opt/kde3/share/applnk/.hidden/arkplugin.desktop
/opt/kde3/share/applnk/.hidden/katefll.desktop
/opt/kde3/share/applnk/.hidden/kcmkuick.desktop
/opt/kde3/share/applnk/.hidden/kuickplugin.desktop
/opt/kde3/share/applnk/.hidden/crashesplugin.desktop
/opt/kde3/share/applnk/.hidden/dirfilterplugin.desktop
/opt/kde3/share/applnk/.hidden/khtmlsettingsplugin.desktop
/opt/kde3/share/applnk/.hidden/kimgalleryplugin.desktop
/opt/kde3/share/applnk/.hidden/plugin_babelfish.desktop
/opt/kde3/share/applnk/.hidden/plugin_domtreeviewer.desktop
/opt/kde3/share/applnk/.hidden/plugin_validators.desktop
/opt/kde3/share/applnk/.hidden/plugin_webarchiver.desktop
/opt/kde3/share/applnk/.hidden/uachangerplugin.desktop
/opt/kde3/share/apps/domtreeviewer
/opt/kde3/share/apps/khtml/kpartplugins
/opt/kde3/share/apps/knewsticker
/opt/kde3/share/apps/konqiconview/kpartplugins/*
/opt/kde3/share/apps/konqlistview/kpartplugins/*
/opt/kde3/share/apps/konqueror/*
/opt/kde3/share/apps/fsview
%dir /opt/kde3/share/icons/*/*/*
/opt/kde3/share/apps/konqsidebartng/*
/opt/kde3/share/apps/akregator
/opt/kde3/share/apps/imagerotation
/opt/kde3/share/config/translaterc
/opt/kde3/share/config.kcfg/kbinaryclock.kcfg
/opt/kde3/share/config.kcfg/konq_sidebarnews.kcfg
/opt/kde3/share/icons/*/*/*/babelfish.*
/opt/kde3/share/icons/*/*/*/cssvalidator.*
/opt/kde3/share/icons/*/*/*/domtreeviewer.*
/opt/kde3/share/icons/*/*/*/htmlvalidator.*
/opt/kde3/share/icons/*/*/*/imagegallery.*
/opt/kde3/share/icons/*/*/*/validators.*
/opt/kde3/share/icons/*/*/*/fsview.*
/opt/kde3/share/icons/*/*/*/autorefresh.*
/opt/kde3/share/icons/*/*/*/webarchiver.*
/opt/kde3/share/icons/*/*/*/konqsidebar_news.*
/opt/kde3/share/services/kfile_*
/opt/kde3/share/services/kuick_plugin.desktop
/opt/kde3/share/services/webarchivethumbnail.desktop
/opt/kde3/share/services/ark_plugin.desktop
/opt/kde3/share/services/fsview_part.desktop
/opt/kde3/share/services/renaudiodlg.desktop
/opt/kde3/share/services/renimagedlg.desktop
/opt/kde3/share/services/akregator_konqplugin.desktop
%doc /opt/kde3/share/doc/HTML/en/konq-plugins
/opt/kde3/bin/kio_media_realfolder
/opt/kde3/%_lib/kde3/konqsidebar_delicious.la
/opt/kde3/%_lib/kde3/konqsidebar_delicious.so
/opt/kde3/%_lib/kde3/konqsidebar_metabar.la
/opt/kde3/%_lib/kde3/konqsidebar_metabar.so
/opt/kde3/%_lib/kde3/libmfkonqmficon.la
/opt/kde3/%_lib/kde3/libmfkonqmficon.so
%dir /opt/kde3/share/apps/metabar
/opt/kde3/share/apps/metabar/iconsrc
%dir /opt/kde3/share/apps/metabar/themes
%dir /opt/kde3/share/apps/metabar/themes/default
/opt/kde3/share/apps/metabar/themes/default/default.css
/opt/kde3/share/apps/metabar/themes/default/layout.html
%dir /opt/kde3/share/apps/microformat
%dir /opt/kde3/share/apps/microformat/pics
/opt/kde3/share/apps/microformat/pics/microformat.png
/opt/kde3/share/icons/*/*/*/metabar.*
/opt/kde3/share/icons/*/*/*/minitools.*
/opt/kde3/share/icons/*/*/*/konqsidebar_delicious.*
/opt/kde3/%_lib/kde3/konqsidebar_mediaplayer.*
/opt/kde3/share/applnk/.hidden/mediaplayerplugin.desktop
/opt/kde3/share/icons/*/*/apps/konqsidebar_mediaplayer.*

%files kate
%defattr(-,root,root)
/opt/kde3/%_lib/kde3/kate*
/opt/kde3/%_lib/kde3/libkatetabbarextensionplugin.*
/opt/kde3/share/apps/kate
/opt/kde3/share/apps/katexmltools
/opt/kde3/share/services/kate*
/opt/kde3/share/apps/katepart/syntax/katetemplate.xml
%doc /opt/kde3/share/doc/HTML/en/kate-plugins

%files kicker
%defattr(-,root,root)
/opt/kde3/%_lib/kde3/kbinaryclock_panelapplet.*
/opt/kde3/%_lib/kde3/kolourpicker_panelapplet.*
/opt/kde3/%_lib/kde3/ktimemon_panelapplet.*
/opt/kde3/%_lib/kde3/mediacontrol_panelapplet.*
/opt/kde3/%_lib/kde3/math_panelapplet.*
/opt/kde3/share/apps/kicker/applets/*
/opt/kde3/share/apps/mediacontrol
/opt/kde3/share/icons/*/*/*/ktimemon.*
%doc /opt/kde3/share/doc/HTML/en/kicker-applets

%files games
%defattr(-,root,root)
/opt/kde3/bin/atlantikdesigner
/opt/kde3/share/applications/kde/atlantikdesigner.desktop
/opt/kde3/share/apps/atlantikdesigner
/opt/kde3/share/icons/*/*/*/atlantikdesigner.*

%files kontact
%defattr(-,root,root)
/opt/kde3/bin/ksig
/opt/kde3/%_lib/kde3/libkaddrbk_geo_xxport.*
/opt/kde3/%_lib/kde3/libkaddrbk_gmx_xxport.*
/opt/kde3/share/apps/kaddressbook/gmx_xxportui.rc
/opt/kde3/share/services/kaddressbook/gmx_xxport.desktop
/opt/kde3/share/applications/kde/ksig.desktop
/opt/kde3/share/apps/kaddressbook/geo_xxportui.rc
/opt/kde3/share/apps/ksig
/opt/kde3/share/services/kaddressbook/geo_xxport.desktop
/opt/kde3/share/icons/*/*/*/ksig.*
%doc /opt/kde3/share/doc/HTML/en/ksig

%changelog