]> git.pld-linux.org Git - packages/dict-wn.git/blob - dict-wn.spec
93cf100bfa28fc28fb816136550848d2db80e67e
[packages/dict-wn.git] / dict-wn.spec
1 %define         dictname wn
2 Summary:        WordNet lexical reference system formatted as dictionary for dictd
3 Name:           dict-%{dictname}
4 Version:        1.5
5 Release:        1
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
12 Requires:       dictd 
13 BuildArch:      noarch
14
15 %description 
16 This package contains WordNet (r) 1.6 Lexical Database
17 formatted for use by the dictionary server in the dictd package.
18
19 %prep 
20 %setup -q
21
22 %build
23 %configure 
24 %{__make} db 
25
26 %install
27 rm -rf $RPM_BUILD_ROOT
28 install -d $RPM_BUILD_ROOT%{_datadir}/dictd/
29
30 DICTDIR="$RPM_BUILD_ROOT%{_datadir}/dictd/"
31 make install dictdir="$DICTDIR" 
32
33 %clean
34 rm -rf $RPM_BUILD_ROOT
35
36 %post
37 prefix=%{_datadir}/dictd/%{dictname}
38
39 if ! grep ' %{dictname} ' /etc/dictd.conf >/dev/null; then 
40    echo "Edit /etc/dictd.conf to see %{dictname} dictionary under dictd"
41 echo "# Uncommment this to configure WordNet Lexical Database dictionary
42 #database %{dictname} {
43 #    data  \"$prefix.dict.dz\"
44 #    index \"$prefix.index\" }
45 " >> /etc/dictd.conf
46 fi
47
48 %files
49 %defattr(644,root,root,755)
50 %{_datadir}/dictd/%{dictname}*
This page took 0.057019 seconds and 3 git commands to generate.