]> git.pld-linux.org Git - packages/dict-mueller7acc.git/blob - dict-mueller7acc.spec
- some pld.org.pl->pld-linux.org cosmetics
[packages/dict-mueller7acc.git] / dict-mueller7acc.spec
1 %define         dictname mueller7acc
2 Summary:        English-Russian dictionary with accents for dictd
3 Summary(pl):    S³ownik angielsko-rosyjski z akcentami dla dictd
4 Name:           dict-%{dictname}
5 Version:        1.2
6 Release:        1
7 License:        GPL
8 Group:          Applications/Dictionaries
9 Source0:        http://mueller-dic.chat.ru/Mueller7accentGPL.tgz
10 # This one is compressed with bzip2 (do not trust tgz!)
11 #Source0:       http://www.geocities.com/mueller_dic/Mueller7accentGPL.tgz
12 Source1:        http://www.math.sunysb.edu/~comech/tools/to-dict
13 URL:            http://mueller-dic.chat.ru/
14 BuildRequires:  dictfmt
15 BuildRequires:  dictzip
16 Requires:       dictd
17 Requires:       %{_sysconfdir}/dictd
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 Electronic version of 7th edition of English-Russian dictionary with
22 accents by V. K. Mueller.
23
24 %description -l pl
25 Elektroniczna wersja 7. wydania s³ownika angielsko rosyjskiego z
26 akcentami V. K. Muellera.
27
28 %prep
29 %setup -q -c
30
31 %build
32 cp %{SOURCE1} .
33 chmod +x ./to-dict
34 ./to-dict --no-trans usr/local/share/dict/Mueller7accentGPL.koi mueller7acc.notr
35 ./to-dict --src-data mueller7acc.notr mueller7acc.data && rm -f mueller7acc.notr
36 ./to-dict --data-dict mueller7acc.data mueller7acc && rm -f mueller7acc.data
37 ./to-dict --expand-index mueller7acc.index mueller7acc.index.exp
38 mv -f mueller7acc.index.exp mueller7acc.index
39
40 %install
41 rm -rf $RPM_BUILD_ROOT
42 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
43
44 dictprefix=%{_datadir}/dictd/%{dictname}
45 echo "# Mueller English-Russian dictionary, 7-th edition with accents (%version)
46 database %{dictname} {
47         data  \"$dictprefix.dict.dz\"
48         index \"$dictprefix.index\"
49 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
50 mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
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 [ -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 %doc usr/local/share/mova/Mueller7.txt
68 %lang(ru) %doc usr/local/share/mova/Mueller7_koi.txt
69 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/%{dictname}.dictconf
70 %{_datadir}/dictd/%{dictname}.*
This page took 0.049202 seconds and 3 git commands to generate.