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