File konqueror-plugins.spec of Package konqueror-plugins

#
# spec file for package konqueror-plugins
#
# 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:           konqueror-plugins
BuildRequires:  libQtWebKit-devel libkde4-devel libkonq-devel
%if %suse_version > 1110
# SLE11 only has libtidy in SDK
BuildRequires:  libtidy-devel
%endif
License:        GPLv2+
Group:          Productivity/Networking/Web/Browsers
Summary:        Konqueror Related Addons
Version:        4.3.1
Release:        11.<RELEASE3>
Source0:        konq-plugins-%version.tar.bz2
Patch1:         build.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires
%if %suse_version > 1030
Requires:       %name-lang = %version
%endif
Requires:       konqueror
Provides:       kdeaddons3-konqueror = 3.5.1
Obsoletes:      kdeaddons3-konqueror <= 3.5.1
Provides:       kde4-konqueror-plugins = 4.2.4
Obsoletes:      kde4-konqueror-plugins <= 4.2.4
Obsoletes:      kde4-konqueror-plugins-lang <= 4.2.4

%description
This package contains web-related and file-related Konqueror plugins.

%if %suse_version > 1030
%lang_package
%endif

%prep
%setup -q -n konq-plugins-%version
%patch1

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %makeinstall
  cd ..
  %if %suse_version < 1120
    # work-around bnc#457908
    for i in ca de et fr it nl pt_BR pt sv uk; do mkdir $RPM_BUILD_ROOT/usr/share/doc/kde/HTML/$i/common;done
  %endif
  for l in adblock akregator_konqplugin autorefresh babelfish crashesplugin dirfilterplugin domtreeviewer fsview imgalleryplugin khtmlsettingsplugin konqsidebar_mediaplayer konqsidebar_metabar mf_konqplugin minitoolsplugin rellinks searchbarplugin uachangerplugin validatorsplugin webarchiver konq-plugins/babel konq-plugins/crashes konq-plugins/dirfilter konq-plugins/imgallery konq-plugins/khtmlsettings konq-plugins/mediaplayer konq-plugins/uachanger konq-plugins/validators; do
    %find_lang $l suse.lang
  done
  %kde_post_install

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT
%if %suse_version > 1030

%files lang -f suse.lang
%defattr(-,root,root)
%doc /usr/share/doc/kde/HTML/*/konq-plugins

%files
%else

%files -f suse.lang
%defattr(-,root,root)
%doc /usr/share/doc/kde/HTML/*/konq-plugins
%endif
%defattr(-,root,root)
%_kde4_modules/akregatorkonqfeedicon.so
%_kde4_modules/autorefresh.so
%_kde4_modules/adblock.so
%_kde4_modules/babelfishplugin.so
%_kde4_modules/crashesplugin.so
%_kde4_modules/dirfilterplugin.so
%_kde4_modules/domtreeviewerplugin.so
%_kde4_modules/khtmlsettingsplugin.so
%_kde4_modules/kimgallery.so
%_kde4_modules/rellinksplugin.so
%_kde4_modules/uachangerplugin.so
%_kde4_modules/minitoolsplugin.so
%_kde4_modules/searchbarplugin.so
%_kde4_modules/validatorsplugin.so
%_kde4_modules/webarchiverplugin.so
%_kde_config_dir/translaterc
%_kde_share_dir/apps/akregator
%_kde_share_dir/apps/dolphinpart
%_kde_share_dir/apps/domtreeviewer
%_kde_share_dir/apps/khtml
%_kde_share_dir/apps/konqueror
%_kde_share_dir/apps/webkitpart
%_kde_share_dir/services/ServiceMenus/imageconverter.desktop
/usr/share/icons/oxygen/*/actions/babelfish.*
/usr/share/icons/oxygen/*/actions/cssvalidator.*
/usr/share/icons/oxygen/*/actions/htmlvalidator.*
/usr/share/icons/oxygen/*/actions/imagegallery.*
/usr/share/icons/oxygen/*/actions/validators.*
/usr/%_lib/kde4/webarchivethumbnail.so
/usr/share/icons/oxygen/*/actions/webarchiver.*
/usr/share/kde4/services/webarchivethumbnail.desktop
/usr/share/kde4/config.kcfg/validators.kcfg
/usr/bin/fsview
%_kde4_modules/fsviewpart.so
%_kde_share_dir/apps/fsview
/usr/share/icons/hicolor/*/apps/fsview.*
%_kde_share_dir/services/fsview_part.desktop
%if %suse_version < 1140
%dir /usr/share/locale/hsb
%dir /usr/share/locale/hsb/LC_MESSAGES
%endif
%if %suse_version < 1120
%dir /usr/share/locale/hne
%dir /usr/share/locale/hne/LC_MESSAGES
%endif

%changelog