File ding.spec of Package ding

#
# spec file for package ding (Version 1.5)
#
# Copyright (c) 2008 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:        GPL v2 or later
Group:          Productivity/Office/Dictionary
Requires:       tcl tk ispell-ngerman ispell-american
AutoReqProv:    on
Summary:        An X Window System Dictionary Tool
Version:        1.5
Release:        134
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
* Tue Oct 28 2008 coolo@suse.de
- remove quotes from GenericName
* Fri Apr 18 2008 hvogel@suse.de
- Require american/german ispell packages for spellchecking
* Sat Apr 21 2007 bwalle@suse.de
- update to 1.5
  o New version of German-English translation file, now over
  216,000 entries
  o Some more keyboard shortcuts: ^W, ^U
  o bug fix in internal search
  o changed colors when selecting text in result
  o copy to clipboard in popup/file menu
  o remote invoking changes the query entry (Debian bug #292978)
  o internal search mode works again (tcl_nonwordchars)
  o Minor bug fixes (install.sh)
* Sat Apr 07 2007 bwalle@suse.de
- added application icon  (accepted already upstream, but due to
  long release cycles added to the package)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Sep 05 2005 hvogel@suse.de
- require tk for the wish binary [#115259]
* Mon May 09 2005 hvogel@suse.de
- update to version 1.4
* Thu Mar 18 2004 hvogel@suse.de
- add desktop file (Bug #36504)
- move ding to /usr
* Mon Feb 16 2004 hvogel@suse.de
- update to version 1.3
- in fact ding is noarch
* Thu Nov 13 2003 hvogel@suse.de
- make use of %%defattr in %%files
* Thu Nov 13 2003 hvogel@suse.de
- dont build as root
* Mon May 26 2003 sndirsch@suse.de
- adjusted install.sh for using BuildRoot; ding works again
* Wed Apr 16 2003 coolo@suse.de
- use BuildRoot
* Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides
* Fri Aug 02 2002 freitag@suse.de
- update to version 1.2
  removed tcl from the neededforbuild and put tcl to requires.
  Moved dictionary file to /usr/share/dicts
* Mon Aug 13 2001 freitag@suse.de
- removed kde1 desktopfiles and made an entry to the database for
  better appearance o the desktop.
  bzipped the source
* Sat Dec 09 2000 nashif@suse.de
- sorted
* Thu May 25 2000 freitag@suse.de
- update to version 1.1
* Mon Feb 28 2000 freitag@suse.de
- Group Tag inserted and ftp-Source
* Tue Dec 14 1999 freitag@suse.de
- initial version 1.0
openSUSE Build Service is sponsored by