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