2 Summary: WordNet lexical reference system formatted as dictionary for dictd
6 License: Free to use, but see http://www.cogsci.princeton.edu/~wn/
7 Group: Applications/Dictionary
8 URL: http://www.dict.org/
9 Source0: ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
10 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
11 BuildRequires: dictzip
13 Requires: %{_sysconfdir}/dictd
17 This package contains WordNet (r) 1.6 Lexical Database
18 formatted for use by the dictionary server in the dictd package.
28 rm -rf $RPM_BUILD_ROOT
29 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
30 make install dictdir="$RPM_BUILD_ROOT%{_datadir}/dictd/"
32 dictprefix=%{_datadir}/dictd/%{dictname}
33 echo "# WordNet 1.6 Lexical Database dictionary
34 database %{dictname} {
35 data \"$dictprefix.dict.dz\"
36 index \"$dictprefix.index\"
37 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
40 rm -rf $RPM_BUILD_ROOT
43 if [ -f /var/lock/subsys/dictd ]; then
44 /etc/rc.d/init.d/dictd restart 1>&2 || true
48 if [ -f /var/lock/subsys/dictd ]; then
49 /etc/rc.d/init.d/dictd restart 1>&2
53 %defattr(644,root,root,755)
54 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
55 %{_datadir}/dictd/%{dictname}*