1 Summary: Dictionary database server
2 Summary(pl.UTF-8): Serwer bazy słowników
7 Group: Networking/Daemons
8 Source0: http://dl.sourceforge.net/dict/%{name}-%{version}.tar.gz
9 # Source0-md5: 1c0b7583e6fa25fd27fca5fca9ddb91f
11 Source2: %{name}.sysconfig
12 Patch0: %{name}-opt.patch
13 URL: http://www.dict.org/
14 BuildRequires: autoconf
15 BuildRequires: automake
18 BuildRequires: judy-devel
19 BuildRequires: libdbi-devel
20 BuildRequires: perl-base
21 BuildRequires: zlib-devel
22 Requires(post,preun): /sbin/chkconfig
23 Requires: /sbin/chkconfig
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 %define specflags_ia32 -fomit-frame-pointer
29 Server for the Dictionary Server Protocol (DICT), a TCP transaction
30 based query/response protocol that allows a client to access
31 dictionary definitions from a set of natural language dictionary
34 %description -l pl.UTF-8
35 Serwer dla Dictionary Server Protocol (DICT), bazującego na TCP
36 protokołu zapytań i odpowiedzi umożliwiającego klientom na dostęp do
37 definicji słownikowych z zestawu baz danych.
40 Summary: Package for dictd plugins development
41 Summary(pl.UTF-8): Pakiet programistyczny do tworzenia wtyczek dictd
42 Group: Development/Libraries
43 # doesn't require base
46 Package for dictd plugins development.
48 %description devel -l pl.UTF-8
49 Pakiet programistyczny do tworzenia wtyczek dictd.
52 Summary: DBI plygin for dictd server
53 Summary(pl.UTF-8): Wtyczka DBI dla serwera dictd
55 Requires: %{name} = %{version}-%{release}
57 %description plugin-dbi
58 DBI plygin for dictd server.
60 %description plugin-dbi -l pl.UTF-8
61 Wtyczka DBI dla serwera dictd.
64 Summary: Judy plygin for dictd server
65 Summary(pl.UTF-8): Wtyczka Judy dla serwera dictd
67 Requires: %{name} = %{version}-%{release}
69 %description plugin-judy
70 Judy plygin for dictd server.
72 %description plugin-judy -l pl.UTF-8
73 Wtyczka Judy dla serwera dictd.
76 Summary: DICT Protocol Client
77 Summary(pl.UTF-8): Klient protokołu DICT
78 Group: Applications/Networking
81 Client for the Dictionary Server Protocol (DICT), a TCP transaction
82 based query/response protocol that provides access to dictionary
83 definitions from a set of natural language dictionary databases.
85 %description -n dict -l pl.UTF-8
86 Klient dla Dictionary Server Protocol (DICT), bazującego na TCP
87 protokołu zapytań i odpowiedzi umożliwiającego klientom na dostęp do
88 definicji słownikowych z zestawu baz danych.
91 Summary: dictfmt utility to convert databases in various formats into dict format
92 Summary(pl.UTF-8): Narzędzie dictfmt do konwersji baz w różnych formatach na format dict
93 Group: Applications/Text
96 %description -n dictfmt
97 dictfmt utility is designed to convert databases in various formats
98 into working databases and indexes for the DICT server. This package
99 also includes other tools for formating databases:
100 dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat.
102 %description -n dictfmt -l pl.UTF-8
103 Narzędzie dictfmt służy do konwertowania baz danych w różnych
104 formatach na działające bazy danych i indeksy dla serwera słowników
105 DICT. Ten pakiet zawiera także inne narzędzia do formatowania baz:
106 dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat.
109 Summary: Compress (or expand) files, allowing random access
110 Summary(pl.UTF-8): Kompresja (i dekompresja) plików pozwalająca na swobodny dostęp
111 Group: Applications/Archiving
113 %description -n dictzip
114 dictzip compresses files using the gzip(1) algorithm (LZ77) in a
115 manner which is completely compatible with the gzip file format. An
116 extension to the gzip file format (Extra Field, described in 2.3.1.1
117 of RFC 1952) allows extra data to be stored in the header of a
118 compressed file. Dictd, the DICT protocol dictionary server will make
119 use of this data to perform pseudo-random access on the file.
121 %description -n dictzip -l pl.UTF-8
122 dictzip kompresuje pliki korzystając z zawartego w gzip(1) algorytmu
123 (LZ77) który jest całkowicie kompatybilny z formatem plików gzip.
124 Rozszerzenie do formatu plików gzip (pole dodatkowe, opisane w 2.3.1.1
125 RFC 1952) pozwalającego na dodatkowe dane zapisane w nagłówku
126 skompresowanego pliku. Dictd, serwer protokołu DICT wykorzystuje te
127 dane do pseudo-swobodnego dostępu do pliku.
133 # broken test if >1 plugins
134 %{__perl} -pi -e 's/test \$\(PLUGINS\)/test "\$\(PLUGINS\)"/' Makefile.in
137 cp -f /usr/share/automake/config.* .
141 cp -f /usr/share/automake/config.* .
145 CFLAGS="%{rpmcflags} -DUID_NOBODY=99 -DGID_NOBODY=99"
151 rm -rf $RPM_BUILD_ROOT
152 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,%{name}},%{_datadir}/%{name}}
155 DESTDIR=$RPM_BUILD_ROOT
157 echo "server localhost" > dict.conf
158 echo -e "access {\n\tallow localhost\n\tdeny *\n}\n" > %{name}-main.conf
160 install dict.conf $RPM_BUILD_ROOT%{_sysconfdir}
161 install dictd-main.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
162 :> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
163 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
164 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
166 mv -f doc/security.doc security.txt
169 rm -rf $RPM_BUILD_ROOT
172 /sbin/chkconfig --add %{name}
173 if [ -f /var/lock/subsys/%{name} ]; then
174 /etc/rc.d/init.d/%{name} restart >&2
176 echo "Run \"/etc/rc.d/init.d/%{name} start\" to start %{name} daemon."
180 if [ "$1" = "0" ]; then
181 if [ -f /var/lock/subsys/%{name} ]; then
182 /etc/rc.d/init.d/%{name} stop >&2
184 /sbin/chkconfig --del %{name}
188 %defattr(644,root,root,755)
189 %doc ANNOUNCE NEWS README* TODO examples/dictd* security.txt
190 %ghost %{_sysconfdir}/%{name}.conf
191 %dir %{_sysconfdir}/%{name}
192 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}-main.conf
193 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
194 %attr(754,root,root) /etc/rc.d/init.d/%{name}
195 %attr(755,root,root) %{_sbindir}/%{name}
196 %dir %{_datadir}/%{name}
197 %{_mandir}/man8/%{name}*
200 %defattr(644,root,root,755)
201 %attr(755,root,root) %{_bindir}/dictdplugin-config
202 %{_includedir}/dictdplugin.h
205 %defattr(644,root,root,755)
206 %attr(755,root,root) %{_libdir}/dictdplugin_dbi.so
209 %defattr(644,root,root,755)
210 %attr(755,root,root) %{_libdir}/dictdplugin_judy.so
213 %defattr(644,root,root,755)
214 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dict.conf
215 %attr(755,root,root) %{_bindir}/colorit
216 %attr(755,root,root) %{_bindir}/dict
217 %attr(755,root,root) %{_bindir}/dictl
218 %{_mandir}/man1/colorit.1*
219 %{_mandir}/man1/dict.1*
220 %{_mandir}/man1/dictl.1*
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{_bindir}/dictfmt*
225 %attr(755,root,root) %{_bindir}/dictunformat
226 %{_mandir}/man1/dictfmt*.1*
227 %{_mandir}/man1/dictunformat.1*
230 %defattr(644,root,root,755)
231 %attr(755,root,root) %{_bindir}/dictzip
232 %{_mandir}/man1/dictzip.1*