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

# norootforbuild

Name:           konqueror-plugins
BuildRequires:  libQtWebKit-devel libkde4-devel libkonq-devel
%if %suse_version > 1110
# SLE11 only has libtidy in SDK
BuildRequires:  libtidy-devel
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
%if %suse_version > 1030
Requires:       %name-lang = %version
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

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

%if %suse_version > 1030

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

  %cmake_kde4 -d build

  cd build
  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
  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

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%if %suse_version > 1030

%files lang -f suse.lang
%doc /usr/share/doc/kde/HTML/*/konq-plugins


%files -f suse.lang
%doc /usr/share/doc/kde/HTML/*/konq-plugins
%if %suse_version < 1140
%dir /usr/share/locale/hsb
%dir /usr/share/locale/hsb/LC_MESSAGES
%if %suse_version < 1120
%dir /usr/share/locale/hne
%dir /usr/share/locale/hne/LC_MESSAGES