2 Summary: Collaborative International Dictionary of English for dictd
3 Summary(pl.UTF-8): Słownik Collaborative International Dictionary of English dla dictd
8 Group: Applications/Dictionaries
9 Source0: ftp://ftp.dict.org/pub/dict/pre/%{name}-%{version}.tar.gz
10 # Source0-md5: 641502e6fedca32cbf9777b1f4f76afe
11 # based on ftp://ftp.gnu.org/gnu/gcide/gcide-0.46/README.DIC
12 Source1: %{name}-README.DIC
13 URL: http://www.dict.org/
14 BuildRequires: rpmbuild(macros) >= 1.268
15 Requires: %{_sysconfdir}/dictd
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 This package contains GCIDE (Collaborative International Dictionary of
21 English) %{version} formatted for use by the dictionary server in the
24 %description -l pl.UTF-8
25 Ten pakiet zawiera słownik GCIDE (Collaborative International
26 Dictionary of English) %{version} sformatowany do używania z serwerem
31 install %{SOURCE1} README.DIC
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd,%{_sysconfdir}/dictd}
37 dictprefix=%{_datadir}/dictd/%{dictname}
38 echo "# Collaborative International Dictionary of English (%{version})
39 database %{dictname} {
40 data \"$dictprefix.dict.dz\"
41 index \"$dictprefix.index\"
42 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/%{dictname}.dictconf
43 cp -a %{dictname}.* $RPM_BUILD_ROOT%{_datadir}/dictd
46 rm -rf $RPM_BUILD_ROOT
49 %service -q dictd restart
53 %service -q dictd restart
57 %defattr(644,root,root,755)
59 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/%{dictname}.dictconf
60 %{_datadir}/dictd/%{dictname}.*