1 %define dictname mueller7acc
2 Summary: English-Russian dictionary with accents for dictd
3 Summary(pl): S³ownik angielsko-rosyjski z akcentami dla dictd
8 Group: Applications/Dictionaries
9 Source0: http://mueller-dic.chat.ru/Mueller7accentGPL.tgz
10 # Source0-md5: b882581e130ffa0ea3baea5eeea484a2
11 # This one is compressed with bzip2 (do not trust tgz!)
12 #Source0: http://www.geocities.com/mueller_dic/Mueller7accentGPL.tgz
13 Source1: http://www.math.sunysb.edu/~comech/tools/to-dict
14 # Source1-md5: 3c1b69c290fb4c06bf3456baf5bf8b97
15 URL: http://mueller-dic.chat.ru/
16 BuildRequires: dictfmt
17 BuildRequires: dictzip
18 Requires: %{_sysconfdir}/dictd
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 Electronic version of 7th edition of English-Russian dictionary with
24 accents by V. K. Mueller.
27 Elektroniczna wersja 7. wydania s³ownika angielsko rosyjskiego z
28 akcentami V. K. Muellera.
36 ./to-dict --no-trans usr/local/share/dict/Mueller7accentGPL.koi mueller7acc.notr
37 ./to-dict --src-data mueller7acc.notr mueller7acc.data && rm -f mueller7acc.notr
38 ./to-dict --data-dict mueller7acc.data mueller7acc && rm -f mueller7acc.data
39 ./to-dict --expand-index mueller7acc.index mueller7acc.index.exp
40 mv -f mueller7acc.index.exp mueller7acc.index
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
46 dictprefix=%{_datadir}/dictd/%{dictname}
47 echo "# Mueller English-Russian dictionary, 7-th edition with accents (%{version})
48 database %{dictname} {
49 data \"$dictprefix.dict\"
50 index \"$dictprefix.index\"
51 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
52 mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
55 rm -rf $RPM_BUILD_ROOT
58 if [ -f /var/lock/subsys/dictd ]; then
59 /etc/rc.d/init.d/dictd restart 1>&2
63 if [ -f /var/lock/subsys/dictd ]; then
64 /etc/rc.d/init.d/dictd restart 1>&2 || true
68 %defattr(644,root,root,755)
69 %doc usr/local/share/mova/Mueller7.txt
70 %lang(ru) %doc usr/local/share/mova/Mueller7_koi.txt
71 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
72 %{_datadir}/dictd/%{dictname}.*