]> git.pld-linux.org Git - packages/dict-mueller7.git/blame - dict-mueller7.spec
- dictionary file is dzipped
[packages/dict-mueller7.git] / dict-mueller7.spec
CommitLineData
30bb16af
TP
1%define dictname mueller7
2Summary: English-Russian dictionary for dictd
426eec3a 3Summary(pl.UTF-8): Słownik angielsko-rosyjski dla dictd
30bb16af
TP
4Name: dict-%{dictname}
5Version: 1.2
13b816c2 6Release: 7
30bb16af
TP
7License: GPL
8Group: Applications/Dictionaries
9Source0: http://mueller-dic.chat.ru/Mueller7GPL.tgz
2c55afd5 10# Source0-md5: 0b3cd75e916f078b2caa4f2dc59508e4
30bb16af
TP
11# This one is compressed with bzip2 (do not trust tgz!)
12#Source0: http://www.geocities.com/mueller_dic/Mueller7GPL.tgz
13Source1: http://www.math.sunysb.edu/~comech/tools/to-dict
2c55afd5 14# Source1-md5: 3c1b69c290fb4c06bf3456baf5bf8b97
30bb16af 15URL: http://mueller-dic.chat.ru/
13b816c2 16BuildRequires: rpmbuild(macros) >= 1.268
30bb16af
TP
17BuildRequires: dictfmt
18BuildRequires: dictzip
10d63367
JB
19%if "%(locale -a | grep '^ru_RU.koi8r$')" == ""
20BuildRequires: glibc-localedb-all
21%endif
22BuildRequires: sed >= 4.0
30bb16af 23Requires: %{_sysconfdir}/dictd
91da0d36 24Requires: dictd
30bb16af
TP
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28Electronic version of 7th edition of English-Russian dictionary by V.
29K. Mueller.
30
fcae89d3
JR
31%description -l pl.UTF-8
32Elektroniczna wersja 7. wydania słownika angielsko rosyjskiego V. K.
30bb16af
TP
33Muellera.
34
35%prep
36%setup -q -c
30bb16af 37cp %{SOURCE1} .
1f9e9e2e 38sed -i -e 's/dictfmt -p/dictfmt --locale ru_RU.koi8r -p/' to-dict
13b816c2 39chmod +x ./to-dict
10d63367
JB
40
41%build
30bb16af
TP
42./to-dict --no-trans usr/local/share/dict/Mueller7GPL.koi mueller7.notr
43./to-dict --src-data mueller7.notr mueller7.data && rm -f mueller7.notr
44./to-dict --data-dict mueller7.data mueller7 && rm -f mueller7.data
45./to-dict --expand-index mueller7.index mueller7.index.exp
46mv -f mueller7.index.exp mueller7.index
47
48%install
49rm -rf $RPM_BUILD_ROOT
50install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
51
52dictprefix=%{_datadir}/dictd/%{dictname}
60b49f5d 53echo "# Mueller English-Russian dictionary, 7-th edition (%{version})
30bb16af 54database %{dictname} {
5305b5c1 55 data \"$dictprefix.dict.dz\"
30bb16af
TP
56 index \"$dictprefix.index\"
57}" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
58mv %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
59
60%clean
61rm -rf $RPM_BUILD_ROOT
62
63%post
13b816c2 64%service -q dictd restart
30bb16af
TP
65
66%postun
13b816c2
ER
67if [ "$1" = 0 ]; then
68 %service -q dictd restart
30bb16af
TP
69fi
70
71%files
72%defattr(644,root,root,755)
73%doc usr/local/share/mova/Mueller7.txt
74%lang(ru) %doc usr/local/share/mova/Mueller7_koi.txt
91da0d36 75%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
30bb16af 76%{_datadir}/dictd/%{dictname}.*
This page took 0.066231 seconds and 4 git commands to generate.