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