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