]> git.pld-linux.org Git - packages/dict-mueller24.git/blob - dict-mueller24.spec
- adapterized (sorted %verify flags)
[packages/dict-mueller24.git] / dict-mueller24.spec
1 %define         dictname mueller24
2 Summary:        English-Russian dictionary for dictd
3 Summary(pl):    S³ownik angielsko-rosyjski dla dictd
4 Name:           dict-%{dictname}
5 Version:        1.6
6 Release:        1
7 License:        unknown
8 Group:          Applications/Dictionaries
9 Source0:        http://mueller-dic.chat.ru/Mueller24.tgz
10 # Source0-md5:  386d71c149f3f793d3ff064fd4b16c65
11 # This one is compressed with szip: http://www.compressconsult.com/szip
12 #Source0:       http://www.geocities.com/mueller_dic/Mueller24.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
19 Requires:       dictd
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %description
23 Electronic version of 24th edition of English-Russian dictionary by V.
24 K. Mueller.
25
26 %description -l pl
27 Elektroniczna wersja 24. wydania s³ownika angielsko rosyjskiego V. K.
28 Muellera.
29
30 %prep
31 %setup -q -c
32
33 %build
34 cp %{SOURCE1} .
35 chmod +x ./to-dict
36 ./to-dict --src-data usr/local/share/dict/Mueller24.koi mueller24.data
37 ./to-dict --data-dict mueller24.data mueller24 && rm -f mueller24.data
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
42
43 dictprefix=%{_datadir}/dictd/%{dictname}
44 echo "# Mueller English-Russian dictionary, 24-th edition (%{version})
45 database %{dictname} {
46         data  \"$dictprefix.dict.dz\"
47         index \"$dictprefix.index\"
48 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
49 mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %post
55 if [ -f /var/lock/subsys/dictd ]; then
56         /etc/rc.d/init.d/dictd restart 1>&2
57 fi
58
59 %postun
60 if [ -f /var/lock/subsys/dictd ]; then
61         /etc/rc.d/init.d/dictd restart 1>&2 || true
62 fi
63
64 %files
65 %defattr(644,root,root,755)
66 %doc usr/local/share/mova/Mueller24.txt
67 %lang(ru) %doc usr/local/share/mova/Mueller24_koi.txt
68 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
69 %{_datadir}/dictd/%{dictname}.*
This page took 0.136615 seconds and 3 git commands to generate.