1 Summary: Dictionary database server
2 Summary(pl.UTF-8): Serwer bazy słowników
7 Group: Networking/Daemons
8 Source0: http://downloads.sourceforge.net/dict/%{name}-%{version}.tar.gz
9 # Source0-md5: 7008ec3bb0001c302ce751580f9d2ea4
11 Source2: %{name}.sysconfig
12 Patch0: %{name}-umask.patch
13 URL: http://www.dict.org/
14 BuildRequires: autoconf >= 2.53
15 BuildRequires: automake
18 BuildRequires: judy-devel
19 BuildRequires: libdbi-devel
20 BuildRequires: libmaa-devel
21 BuildRequires: perl-base
22 BuildRequires: rpmbuild(macros) >= 1.268
23 BuildRequires: zlib-devel
24 Requires(post,preun): /sbin/chkconfig
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define skip_post_check_so dictdplugin_judy.so.*
31 %define _libexecdir %{_libdir}/dictd
33 %define specflags_ia32 -fomit-frame-pointer
36 Server for the Dictionary Server Protocol (DICT), a TCP transaction
37 based query/response protocol that allows a client to access
38 dictionary definitions from a set of natural language dictionary
41 %description -l pl.UTF-8
42 Serwer dla Dictionary Server Protocol (DICT), bazującego na TCP
43 protokołu zapytań i odpowiedzi umożliwiającego klientom na dostęp do
44 definicji słownikowych z zestawu baz danych.
47 Summary: Package for dictd plugins development
48 Summary(pl.UTF-8): Pakiet programistyczny do tworzenia wtyczek dictd
49 Group: Development/Libraries
50 # doesn't require base
53 Package for dictd plugins development.
55 %description devel -l pl.UTF-8
56 Pakiet programistyczny do tworzenia wtyczek dictd.
59 Summary: DBI plugin for dictd server
60 Summary(pl.UTF-8): Wtyczka DBI dla serwera dictd
62 Requires: %{name} = %{version}-%{release}
64 %description plugin-dbi
65 DBI plugin for dictd server.
67 %description plugin-dbi -l pl.UTF-8
68 Wtyczka DBI dla serwera dictd.
71 Summary: Judy plugin for dictd server
72 Summary(pl.UTF-8): Wtyczka Judy dla serwera dictd
74 Requires: %{name} = %{version}-%{release}
76 %description plugin-judy
77 Judy plugin for dictd server.
79 %description plugin-judy -l pl.UTF-8
80 Wtyczka Judy dla serwera dictd.
83 Summary: DICT Protocol Client
84 Summary(pl.UTF-8): Klient protokołu DICT
85 Group: Applications/Networking
88 Client for the Dictionary Server Protocol (DICT), a TCP transaction
89 based query/response protocol that provides access to dictionary
90 definitions from a set of natural language dictionary databases.
92 %description -n dict -l pl.UTF-8
93 Klient dla Dictionary Server Protocol (DICT), bazującego na TCP
94 protokołu zapytań i odpowiedzi umożliwiającego klientom na dostęp do
95 definicji słownikowych z zestawu baz danych.
98 Summary: dictfmt utility to convert databases in various formats into dict format
99 Summary(pl.UTF-8): Narzędzie dictfmt do konwersji baz w różnych formatach na format dict
100 Group: Applications/Text
103 %description -n dictfmt
104 dictfmt utility is designed to convert databases in various formats
105 into working databases and indexes for the DICT server. This package
106 also includes other tools for formating databases:
107 dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat.
109 %description -n dictfmt -l pl.UTF-8
110 Narzędzie dictfmt służy do konwertowania baz danych w różnych
111 formatach na działające bazy danych i indeksy dla serwera słowników
112 DICT. Ten pakiet zawiera także inne narzędzia do formatowania baz:
113 dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat.
116 Summary: Compress (or expand) files, allowing random access
117 Summary(pl.UTF-8): Kompresja (i dekompresja) plików pozwalająca na swobodny dostęp
118 Group: Applications/Archiving
120 %description -n dictzip
121 dictzip compresses files using the gzip(1) algorithm (LZ77) in a
122 manner which is completely compatible with the gzip file format. An
123 extension to the gzip file format (Extra Field, described in 2.3.1.1
124 of RFC 1952) allows extra data to be stored in the header of a
125 compressed file. Dictd, the DICT protocol dictionary server will make
126 use of this data to perform pseudo-random access on the file.
128 %description -n dictzip -l pl.UTF-8
129 dictzip kompresuje pliki korzystając z zawartego w gzip(1) algorytmu
130 (LZ77) który jest całkowicie kompatybilny z formatem plików gzip.
131 Rozszerzenie do formatu plików gzip (pole dodatkowe, opisane w 2.3.1.1
132 RFC 1952) pozwalającego na dodatkowe dane zapisane w nagłówku
133 skompresowanego pliku. Dictd, serwer protokołu DICT wykorzystuje te
134 dane do pseudo-swobodnego dostępu do pliku.
141 cp -f /usr/share/automake/config.* .
144 CFLAGS="%{rpmcflags} -DUID_NOBODY=99 -DGID_NOBODY=99"
148 --with-system-utf8-funcs
153 rm -rf $RPM_BUILD_ROOT
154 install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},%{_sysconfdir}/%{name},%{_datadir}/%{name}}
157 DESTDIR=$RPM_BUILD_ROOT
159 echo "server localhost" > dict.conf
160 echo -e "access {\n\tallow localhost\n\tdeny *\n}\n" > %{name}-main.conf
162 install dict.conf $RPM_BUILD_ROOT%{_sysconfdir}
163 install dictd-main.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
164 :> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf
165 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
166 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
168 %{__rm} $RPM_BUILD_ROOT%{_libexecdir}/dictdplugin_*.{la,a}
170 mv -f doc/security.doc security.txt
173 rm -rf $RPM_BUILD_ROOT
176 /sbin/chkconfig --add %{name}
177 %service dictd restart
180 if [ "$1" = "0" ]; then
182 /sbin/chkconfig --del %{name}
186 %defattr(644,root,root,755)
187 %doc ANNOUNCE ChangeLog NEWS README TODO examples/dictd* security.txt
188 %ghost %{_sysconfdir}/%{name}.conf
189 %dir %{_sysconfdir}/%{name}
190 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}-main.conf
191 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name}
192 %attr(754,root,root) /etc/rc.d/init.d/%{name}
193 %attr(755,root,root) %{_sbindir}/%{name}
194 %dir %{_datadir}/%{name}
196 %{_mandir}/man8/dictd.8*
199 %defattr(644,root,root,755)
200 %attr(755,root,root) %{_bindir}/dictdplugin-config
201 %{_includedir}/dictdplugin.h
204 %defattr(644,root,root,755)
205 %attr(755,root,root) %{_libexecdir}/dictdplugin_dbi.so*
208 %defattr(644,root,root,755)
209 %attr(755,root,root) %{_libexecdir}/dictdplugin_judy.so*
212 %defattr(644,root,root,755)
213 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dict.conf
214 %attr(755,root,root) %{_bindir}/colorit
215 %attr(755,root,root) %{_bindir}/dict
216 %attr(755,root,root) %{_bindir}/dictl
217 %{_mandir}/man1/colorit.1*
218 %{_mandir}/man1/dict.1*
219 %{_mandir}/man1/dictl.1*
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_bindir}/dictfmt*
224 %attr(755,root,root) %{_bindir}/dictunformat
225 %{_mandir}/man1/dictfmt*.1*
226 %{_mandir}/man1/dictunformat.1*
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_bindir}/dictzip
231 %{_mandir}/man1/dictzip.1*