ding/ding.spec

Name: ding
Summary: Dictionary lookup program
Version: 1.6
Release: 1
License: GPL
Group: Applications/Internet
URL: http://www-user.tu-chemnitz.de/~fri/ding/
Description: Ding is a dictionary lookup program for the X Window system on Linux/Unix. It comes with a German-English Dictionary with about 180,000 entries. It is based on Tk version >= 8.3 and uses the agrep or egrep tools for searching. In addition ding can also search in English dictionaries using dict(1) and check spelling using ispell(1). It has many configuration options, such as search preferences, interface language (English or German), and colors. It has history and help functions and comes with useful key and mouse bindings for quick and easy lookups.

CentOS 7 x86_64

The build could not start because the following file is missing: ding-1.6.tar.gz

Build Status

CentOS 6 x86_64

The build could not start because the following file is missing: ding-1.6.tar.gz

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dries
# Upstream: Frank Richter <fri$hrz,tu,chemnitz,de>


%{?rh7:%define _without_freedesktop 1}
%{?el2:%define _without_freedesktop 1}

%define desktop_vendor rpmforge

Summary: Dictionary lookup program
Name: ding
Version: 1.6
Release: 1%{?dist}
License: GPL
Group: Applications/Internet
URL: http://www-user.tu-chemnitz.de/~fri/ding/

Source: http://wftp.tu-chemnitz.de/pub/Local/urz/ding/ding-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

Buildarch: noarch
Requires: tk
%{?!_without_freedesktop:BuildRequires: desktop-file-utils}

%description
Ding is a dictionary lookup program for the X Window system on Linux/Unix. It
comes with a German-English Dictionary with about 180,000 entries. It is
based on Tk version >= 8.3 and uses the agrep or egrep tools for searching.
In addition ding can also search in English dictionaries using dict(1) and
check spelling using ispell(1). It has many configuration options, such as
search preferences, interface language (English or German), and colors. It
has history and help functions and comes with useful key and mouse bindings
for quick and easy lookups.

%prep
%setup

%build

%install
%{__rm} -rf %{buildroot}
%{__install} -Dp -m0755 ding %{buildroot}%{_bindir}/ding
%{__install} -Dp -m0644 ding.png %{buildroot}%{_datadir}/pixmaps/ding.png
%{__install} -Dp -m0644 ding.1 %{buildroot}%{_mandir}/man1/ding.1

%{__install} -d %{buildroot}%{_datadir}/dict/
%{__install} -Dp -m0644 *-*.txt %{buildroot}%{_datadir}/dict/

%if %{?_without_freedesktop:1}0
	%{__install} -Dp -m0644 ding.desktop %{buildroot}/etc/X11/applnk/Utilities/ding.desktop
%else
%{__mkdir_p} %{buildroot}%{_datadir}/applications/
	desktop-file-install --vendor %{desktop_vendor}    \
		--dir %{buildroot}%{_datadir}/applications \
		ding.desktop
%endif

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc COPYING README
%doc %{_mandir}/man1/ding.1*
%{_bindir}/ding
%{_datadir}/dict/de-en.txt
%{_datadir}/pixmaps/ding.png
%{!?_without_freedesktop:%{_datadir}/applications/%{desktop_vendor}-ding.desktop}
%{?_without_freedesktop:/etc/X11/applnk/Utilities/ding.desktop}

%changelog
* Sat Apr 18 2009 Dries Verachtert <dries@ulyssis.org> - 1.6-1
- Updated to release 1.6.

* Mon Apr 16 2007 Dries Verachtert <dries@ulyssis.org> - 1.5-1
- Updated to release 1.5.

* Fri Oct 14 2005 Dries Verachtert <dries@ulyssis.org> - 1.4-1
- Initial package.