File ding.spec of Package ding

#
# spec file for package ding (Version 1.7)
#
# Copyright (c) 2010 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:           ding
BuildRequires:  tk update-desktop-files
License:        GPLv2+
Group:          Productivity/Office/Dictionary
Requires:       tcl tk ispell-ngerman ispell-american
AutoReqProv:    on
Summary:        An X Window System Dictionary Tool
Version:        1.7
Release:        1
Url:            http://www-user.tu-chemnitz.de/~fri/ding/
Source:         ftp://ftp.tu-chemnitz.de/pub/Local/urz/ding/ding-%{version}.tar.bz2
Source1:        ding.desktop
Patch:          ding-install.diff
Patch1:         ding-tk-version.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Ding is a smart X Window System English-to-German dictionary.  It works
with a local database file. For full functionality, agrep should be
installed.



Authors:
--------
    Frank Richter <Frank.Richter@hrz.tu-chemnitz.de>

%prep
%setup -q
%patch -p1
%patch1 -p1

%install
install -d $RPM_BUILD_ROOT%_bindir
install -d $RPM_BUILD_ROOT%_datadir/dict
./install.sh <<EOF
y
$RPM_BUILD_ROOT%_bindir
$RPM_BUILD_ROOT%_datadir/dict
y
EOF
install -d $RPM_BUILD_ROOT%{_datadir}/applications/
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/applications/%name.desktop
%suse_update_desktop_file %name Office Dictionary

%files
%defattr(-,root,root)
%doc COPYING README CHANGES
%_bindir/ding
%_datadir/dict/de-en.txt
%_datadir/applications/%name.desktop

%changelog
openSUSE Build Service is sponsored by