File kding.spec of Package kding
#
# spec file for package kding
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# norootforbuild
Name: kding
Summary: KDing is a KDE port of Ding, a dictionary lookup program
Version: 0.4.3
Release: 1
License: GPL-2.0
Group: Productivity/Office/Dictionary
Url: http://www.rexi.org/software/kding/
Vendor: openSUSE-Education
Source0: %{name}-%{version}.tar.bz2
BuildRequires: kdelibs3-devel libjpeg-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define kdedir /opt/kde3
Patch0: kding-deprecate-update-desktop-files.patch
%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.
Author:
-------
Michael Rex <me@rexi.org>
%prep
%setup -q
. /etc/opt/kde3/common_options
update_admin --no-unsermake
%patch -P 0 -p1
%build
. /etc/opt/kde3/common_options
%configure $configkde --disable-final
%__make %{?jobs:-j%jobs}
%install
%makeinstall
# move to the right place
mkdir -p %{buildroot}/opt/kde3/share/applications/kde
mv %{buildroot}/opt/kde3/share/applnk/kde/kding.desktop %{buildroot}/opt/kde3/share/applications/kde/kding.desktop
%find_lang %name
%clean
rm -rf %buildroot
%files -f %name.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%kdedir/bin/%name
%kdedir/share/icons/
%kdedir/share/apps/
%dir %_datadir/config.kcfg
%_datadir/config.kcfg/kding.kcfg
%kdedir/share/applications/kde/kding.desktop
%changelog