File kding.spec of Package kding

#
# spec file for package kding
#
# Copyright (c) 2012 Lars Vogdt
#
# 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:           kding
Version:        0.6
Release:        1
License:        GPL-2.0+
Summary:        A KDE port of Ding, a dictionary lookup program
Url:            http://www.rexi.org/software/kding/
Group:          Productivity/Office/Dictionary
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  cmake
BuildRequires:  docbook-xsl-stylesheets
BuildRequires:  gcc-c++
BuildRequires:  gettext-devel
BuildRequires:  kdelibs4-doc
BuildRequires:  libkdecore4-devel
BuildRequires:  libkde4-devel
BuildRequires:  libqt4-devel
BuildRequires:  libjpeg-devel
BuildRequires:  update-desktop-files
%kde4_runtime_requires
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
KDing is a KDE port of Ding, a dictionary lookup program.

It is a simple program sitting in KDE's system tray that can translate
the current clipboard content. The user can also enter a single word or
a phrase for translation.

KDing is intended to translate between German and English, but it can
be used for every language for which a word list is available for Ding.

%prep
%setup -q

%build
sed -i "s|.*doc.*||g" CMakeLists.txt
%cmake_kde4
%{__make} %{?_smp_mflags}

%install
%kde4_makeinstall
%suse_update_desktop_file %{name} Office Dictionary
%find_lang %name

%clean
rm -rf %{buildroot}

%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%dir %{_datadir}/kde4/apps/%{name}
%{_bindir}/%{name}
%{_datadir}/applications/kde4/%{name}.desktop
%{_datadir}/kde4/apps/%{name}/*
%{_datadir}/kde4/config.kcfg/%{name}.kcfg
%{_datadir}/icons/hicolor/*/*/*

%changelog
openSUSE Build Service is sponsored by