1 Summary: Dictionary database server
2 Summary(pl): Serwer bazy s³owników
7 Group: Networking/Daemons
8 Source0: ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
9 # Source0-md5: baa8f18dd0373e7053658be99d40d5db
11 Source2: %{name}.sysconfig
12 Patch0: %{name}-no_libnsl.patch
13 Patch1: %{name}-opt.patch
14 Patch2: %{name}-ac253.patch
15 URL: http://www.dict.org/
16 BuildRequires: autoconf
17 BuildRequires: automake
20 BuildRequires: libltdl-devel
21 BuildRequires: zlib-devel
22 Requires(post,preun): /sbin/chkconfig
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Server for the Dictionary Server Protocol (DICT), a TCP transaction
27 based query/response protocol that allows a client to access
28 dictionary definitions from a set of natural language dictionary
32 Serwer dla Dictionary Server Protocol (DICT), bazuj±cego na TCP
33 protoko³u zapytañ i odpowiedzi umo¿liwiaj±cego klientom na dostêp do
34 definicji s³ownikowych z zestawu baz danych.
37 Summary: DICT Protocol Client
38 Summary(pl): Klient protoko³u DICT
39 Group: Applications/Networking
42 Client for the Dictionary Server Protocol (DICT), a TCP transaction
43 based query/response protocol that provides access to dictionary
44 definitions from a set of natural language dictionary databases.
46 %description -n dict -l pl
47 Klient dla Dictionary Server Protocol (DICT), bazuj±cego na TCP
48 protoko³u zapytañ i odpowiedzi umo¿liwiaj±cego klientom na dostêp do
49 definicji s³ownikowych z zestawu baz danych.
52 Summary: dictfmt utility to convert databases in various formats into dict format
53 Summary(pl): Narzêdzie dictfmt do konwersji baz w ró¿nych formatach na format dict
54 Group: Applications/Text
58 %description -n dictfmt
59 dictfmt utility is designed to convert databases in various formats
60 into working databases and indexes for the DICT server.
61 This package also includes other tools for formating databases:
62 dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat.
64 %description -n dictfmt -l pl
65 Narzêdzie dictfmt s³u¿y do konwertowania baz danych w ró¿nych
66 formatach na dzia³aj±ce bazy danych i indeksy dla serwera s³owników
68 Ten pakiet zawiera tak¿e inne narzêdzia do formatowania baz:
69 dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat.
72 Summary: Compress (or expand) files, allowing random access
73 Summary(pl): Kompresja (i dekompresja) plików pozwalaj±ca na swobodny dostêp
74 Group: Applications/Archiving
76 %description -n dictzip
77 dictzip compresses files using the gzip(1) algorithm (LZ77) in a
78 manner which is completely compatible with the gzip file format. An
79 extension to the gzip file format (Extra Field, described in 2.3.1.1
80 of RFC 1952) allows extra data to be stored in the header of a
81 compressed file. Dictd, the DICT protocol dictionary server will make
82 use of this data to perform pseudo-random access on the file.
84 %description -n dictzip -l pl
85 dictzip kompresuje pliki korzystaj±c z zawartego w gzip(1) algorytmu
86 (LZ77) który jest ca³kowicie kompatybilny z formatem plików gzip.
87 Rozszerzenie do formatu plików gzip (pole dodatkowe, opisane w 2.3.1.1
88 RFC 1952) pozwalaj±cego na dodatkowe dane zapisane w nag³ówku
89 skompresowanego pliku. Dictd, serwer protoko³u DICT wykorzystuje te
90 dane do pseudo-swobodnego dostêpu do pliku.
99 cp -f %{_datadir}/automake/config.* .
103 cp -f %{_datadir}/automake/config.* .
107 CFLAGS="%{rpmcflags} -DUID_NOBODY=99 -DGID_NOBODY=99"
113 rm -rf $RPM_BUILD_ROOT
114 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,%{name}},%{_bindir},%{_sbindir}} \
115 $RPM_BUILD_ROOT{%{_datadir}/%{name},%{_mandir}/man{1,8}}
117 install dict dictzip dictfmt{,_{index2suffix,index2word,plugin,virtual}} \
118 dictunformat $RPM_BUILD_ROOT%{_bindir}
119 install dict*.1 $RPM_BUILD_ROOT%{_mandir}/man1
121 install %{name} $RPM_BUILD_ROOT%{_sbindir}
122 install %{name}.8 $RPM_BUILD_ROOT%{_mandir}/man8
124 echo "server localhost" > dict.conf
125 echo -e "access {\n\tallow localhost\n\tdeny *\n}\n" > %{name}-main.conf
127 install dict.conf $RPM_BUILD_ROOT%{_sysconfdir}
128 install dictd-main.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
129 :> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
130 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
131 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
133 mv -f doc/security.doc security.txt
136 rm -rf $RPM_BUILD_ROOT
139 /sbin/chkconfig --add %{name}
140 if [ -f /var/lock/subsys/%{name} ]; then
141 /etc/rc.d/init.d/%{name} restart >&2
143 echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
147 if [ "$1" = "0" ]; then
148 if [ -f /var/lock/subsys/%{name} ]; then
149 /etc/rc.d/init.d/%{name} stop >&2
151 /sbin/chkconfig --del %{name}
155 %defattr(644,root,root,755)
156 %doc ANNOUNCE ChangeLog README* TODO dictd.conf example* security.txt
157 %ghost %{_sysconfdir}/%{name}.conf
158 %dir %{_sysconfdir}/%{name}
159 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/%{name}-main.conf
160 %config(noreplace) %verify(not md5 size mtime) /etc/sysconfig/%{name}
161 %attr(754,root,root) /etc/rc.d/init.d/%{name}
162 %attr(755,root,root) %{_sbindir}/%{name}
163 %dir %{_datadir}/%{name}
164 %{_mandir}/man8/%{name}*
167 %defattr(644,root,root,755)
168 %config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/dict.conf
169 %attr(755,root,root) %{_bindir}/dict
170 %{_mandir}/man1/dict.1*
173 %defattr(644,root,root,755)
174 %attr(755,root,root) %{_bindir}/dictfmt*
175 %attr(755,root,root) %{_bindir}/dictunformat
176 %{_mandir}/man1/dictfmt*.1*
177 %{_mandir}/man1/dictunformat.1*
180 %defattr(644,root,root,755)
181 %attr(755,root,root) %{_bindir}/dictzip
182 %{_mandir}/man1/dictzip.1*