]> git.pld-linux.org Git - packages/dict-wn.git/blob - dict-wn.spec
ab6cfb875f05109cab2a041e198f4750b583154f
[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-wn
4 Version:        1.5
5 Release:        2
6 License:        Free to use, but see http://www.cogsci.princeton.edu/~wn/
7 Group:          Applications/Dictionaries
8 Group(de):      Applikationen/Wörterbücher
9 Group(pl):      Aplikacje/S³owniki
10 URL:            http://www.dict.org/
11 Source0:        ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13 BuildRequires:  dictzip
14 BuildRequires:  autoconf
15 Requires:       dictd 
16 Requires:       %{_sysconfdir}/dictd
17
18 %description 
19 This package contains WordNet (r) 1.6 Lexical Database formatted for
20 use by the dictionary server in the dictd package.
21
22 %prep 
23 %setup -q
24
25 %build
26 autoconf
27 %configure 
28 %{__make} db 
29
30 %install
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd}
33 %{__make} install dictdir="$RPM_BUILD_ROOT%{_datadir}/dictd/"
34
35 dictprefix=%{_datadir}/dictd/wn
36 echo "# WordNet 1.6 Lexical Database dictionary
37 database %{dictname} {
38     data  \"$dictprefix.dict.dz\"
39     index \"$dictprefix.index\" 
40 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %postun
46 if [ -f /var/lock/subsys/dictd ]; then
47         /etc/rc.d/init.d/dictd restart 1>&2 || true
48 fi
49
50 %post
51 if [ -f /var/lock/subsys/dictd ]; then
52         /etc/rc.d/init.d/dictd restart 1>&2
53 fi
54
55 %files
56 %defattr(644,root,root,755)
57 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
58 %{_datadir}/dictd/%{dictname}*
This page took 0.153033 seconds and 3 git commands to generate.