]> git.pld-linux.org Git - packages/dict-web1913.git/blob - dict-web1913.spec
40f0715cf7ef37b0b5aa30c9f30447e8c7887ffe
[packages/dict-web1913.git] / dict-web1913.spec
1 %define         dictname web1913
2 %define         dictversion 0.46-a
3 Summary:        Webster's Revised Unabridged Dictionary
4 Summary(pl):    S³ownik Webster's Revised Unabridged Dictionary
5 Name:           dict-%{dictname}
6 Version:        1.4
7 Release:        2
8 License:        Free to use, but see http://www.cogsci.princeton.edu/~wn/
9 Group:          Applications/Dictionaries
10 URL:            http://www.dict.org/
11 Source0:        ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
12 Source1:        ftp://ftp.dict.org/pub/dict/%{dictname}-%{dictversion}.tar.gz
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14 BuildRequires:  dictzip
15 BuildRequires:  autoconf
16 BuildRequires:  flex
17 BuildRequires:  bison
18 Requires:       dictd
19 Requires:       %{_sysconfdir}/dictd
20
21 %description
22 Webster's Revised Unabridged Dictionary (1913).
23
24 %description -l pl
25 S³ownik Webstera (angielsko-angielski): Webster's Revised Unabridged
26 Dictionary (1913).
27
28 %prep
29 %setup -q
30
31 %build
32 autoconf
33 (cd libmaa; autoconf)
34 %configure --with-local-libmaa --with-datapath=%{dictname}-%{dictversion}
35 %{__make}
36 tar xfz %{SOURCE1}
37 %{__make} db
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
42 #make install dictdir="$RPM_BUILD_ROOT%{_datadir}/dictd/"
43 install %{dictname}.{dict.dz,index} $RPM_BUILD_ROOT%{_datadir}/dictd
44
45 dictprefix=%{_datadir}/dictd/%{dictname}
46 echo "# Webster's Revised Unabridged Dictionary
47 database %{dictname} {
48     data  \"$dictprefix.dict.dz\"
49     index \"$dictprefix.index\"
50 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
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 %postun
61 if [ "$1" = "0" -a -f /var/lock/subsys/dictd ]; then
62         /etc/rc.d/init.d/dictd restart 1>&2 || true
63 fi
64
65 %files
66 %defattr(644,root,root,755)
67 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
68 %{_datadir}/dictd/%{dictname}*
This page took 0.081665 seconds and 3 git commands to generate.