]>
Commit | Line | Data |
---|---|---|
1be74967 | 1 | Summary: Dictionary database server |
e64a8f95 | 2 | Summary(pl.UTF-8): Serwer bazy słowników |
1be74967 | 3 | Name: dictd |
03230a10 | 4 | Version: 1.10.4 |
b823e60b | 5 | Release: 2 |
1be74967 | 6 | License: GPL |
1adc6dca | 7 | Group: Networking/Daemons |
dcbc288b | 8 | Source0: http://dl.sourceforge.net/dict/%{name}-%{version}.tar.gz |
03230a10 | 9 | # Source0-md5: 1c0b7583e6fa25fd27fca5fca9ddb91f |
1be74967 | 10 | Source1: %{name}.init |
6e0c49a8 | 11 | Source2: %{name}.sysconfig |
9d566f06 | 12 | Patch0: %{name}-opt.patch |
6319e511 | 13 | Patch1: %{name}-umask.patch |
669e86c4 | 14 | URL: http://www.dict.org/ |
13f156bb JB |
15 | BuildRequires: autoconf |
16 | BuildRequires: automake | |
95d87f1c | 17 | BuildRequires: bison |
d3a8dc3f | 18 | BuildRequires: flex |
000a288b | 19 | BuildRequires: judy-devel |
e9f0e51a | 20 | BuildRequires: libdbi-devel |
fb8487cf | 21 | BuildRequires: perl-base |
b823e60b | 22 | BuildRequires: rpmbuild(macros) >= 1.268 |
95d87f1c | 23 | BuildRequires: zlib-devel |
be28fcbd | 24 | Requires(post,preun): /sbin/chkconfig |
b823e60b | 25 | Requires: rc-scripts |
1be74967 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
b823e60b | 28 | %define specflags_ia32 -fomit-frame-pointer |
1a4feb65 | 29 | |
1cc49823 | 30 | %description |
1be74967 | 31 | Server for the Dictionary Server Protocol (DICT), a TCP transaction |
32 | based query/response protocol that allows a client to access | |
33 | dictionary definitions from a set of natural language dictionary | |
34 | databases. | |
35 | ||
b6759d8f JR |
36 | %description -l pl.UTF-8 |
37 | Serwer dla Dictionary Server Protocol (DICT), bazującego na TCP | |
38 | protokołu zapytań i odpowiedzi umożliwiającego klientom na dostęp do | |
39 | definicji słownikowych z zestawu baz danych. | |
d40ba2a0 | 40 | |
e9f0e51a JB |
41 | %package devel |
42 | Summary: Package for dictd plugins development | |
e64a8f95 | 43 | Summary(pl.UTF-8): Pakiet programistyczny do tworzenia wtyczek dictd |
e9f0e51a JB |
44 | Group: Development/Libraries |
45 | # doesn't require base | |
46 | ||
47 | %description devel | |
48 | Package for dictd plugins development. | |
49 | ||
b6759d8f | 50 | %description devel -l pl.UTF-8 |
e9f0e51a JB |
51 | Pakiet programistyczny do tworzenia wtyczek dictd. |
52 | ||
53 | %package plugin-dbi | |
54 | Summary: DBI plygin for dictd server | |
e64a8f95 | 55 | Summary(pl.UTF-8): Wtyczka DBI dla serwera dictd |
e9f0e51a JB |
56 | Group: Libraries |
57 | Requires: %{name} = %{version}-%{release} | |
58 | ||
59 | %description plugin-dbi | |
60 | DBI plygin for dictd server. | |
61 | ||
b6759d8f | 62 | %description plugin-dbi -l pl.UTF-8 |
e9f0e51a JB |
63 | Wtyczka DBI dla serwera dictd. |
64 | ||
000a288b JB |
65 | %package plugin-judy |
66 | Summary: Judy plygin for dictd server | |
e64a8f95 | 67 | Summary(pl.UTF-8): Wtyczka Judy dla serwera dictd |
000a288b JB |
68 | Group: Libraries |
69 | Requires: %{name} = %{version}-%{release} | |
70 | ||
71 | %description plugin-judy | |
72 | Judy plygin for dictd server. | |
73 | ||
b6759d8f | 74 | %description plugin-judy -l pl.UTF-8 |
000a288b JB |
75 | Wtyczka Judy dla serwera dictd. |
76 | ||
669e86c4 | 77 | %package -n dict |
1be74967 | 78 | Summary: DICT Protocol Client |
e64a8f95 | 79 | Summary(pl.UTF-8): Klient protokołu DICT |
1be74967 | 80 | Group: Applications/Networking |
1be74967 | 81 | |
82 | %description -n dict | |
83 | Client for the Dictionary Server Protocol (DICT), a TCP transaction | |
84 | based query/response protocol that provides access to dictionary | |
85 | definitions from a set of natural language dictionary databases. | |
86 | ||
b6759d8f JR |
87 | %description -n dict -l pl.UTF-8 |
88 | Klient dla Dictionary Server Protocol (DICT), bazującego na TCP | |
89 | protokołu zapytań i odpowiedzi umożliwiającego klientom na dostęp do | |
90 | definicji słownikowych z zestawu baz danych. | |
d40ba2a0 | 91 | |
3de56aee TP |
92 | %package -n dictfmt |
93 | Summary: dictfmt utility to convert databases in various formats into dict format | |
e64a8f95 | 94 | Summary(pl.UTF-8): Narzędzie dictfmt do konwersji baz w różnych formatach na format dict |
3de56aee TP |
95 | Group: Applications/Text |
96 | Obsoletes: dict-fmt | |
3de56aee TP |
97 | |
98 | %description -n dictfmt | |
99 | dictfmt utility is designed to convert databases in various formats | |
2bd6bc44 ER |
100 | into working databases and indexes for the DICT server. This package |
101 | also includes other tools for formating databases: | |
3de56aee TP |
102 | dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat. |
103 | ||
b6759d8f JR |
104 | %description -n dictfmt -l pl.UTF-8 |
105 | Narzędzie dictfmt służy do konwertowania baz danych w różnych | |
106 | formatach na działające bazy danych i indeksy dla serwera słowników | |
107 | DICT. Ten pakiet zawiera także inne narzędzia do formatowania baz: | |
3de56aee TP |
108 | dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat. |
109 | ||
669e86c4 | 110 | %package -n dictzip |
1be74967 | 111 | Summary: Compress (or expand) files, allowing random access |
e64a8f95 | 112 | Summary(pl.UTF-8): Kompresja (i dekompresja) plików pozwalająca na swobodny dostęp |
d40ba2a0 | 113 | Group: Applications/Archiving |
1be74967 | 114 | |
115 | %description -n dictzip | |
116 | dictzip compresses files using the gzip(1) algorithm (LZ77) in a | |
117 | manner which is completely compatible with the gzip file format. An | |
118 | extension to the gzip file format (Extra Field, described in 2.3.1.1 | |
119 | of RFC 1952) allows extra data to be stored in the header of a | |
120 | compressed file. Dictd, the DICT protocol dictionary server will make | |
121 | use of this data to perform pseudo-random access on the file. | |
122 | ||
b6759d8f JR |
123 | %description -n dictzip -l pl.UTF-8 |
124 | dictzip kompresuje pliki korzystając z zawartego w gzip(1) algorytmu | |
125 | (LZ77) który jest całkowicie kompatybilny z formatem plików gzip. | |
126 | Rozszerzenie do formatu plików gzip (pole dodatkowe, opisane w 2.3.1.1 | |
127 | RFC 1952) pozwalającego na dodatkowe dane zapisane w nagłówku | |
128 | skompresowanego pliku. Dictd, serwer protokołu DICT wykorzystuje te | |
129 | dane do pseudo-swobodnego dostępu do pliku. | |
d40ba2a0 | 130 | |
1be74967 | 131 | %prep |
d40ba2a0 | 132 | %setup -q |
9d566f06 | 133 | %patch0 -p1 |
6319e511 | 134 | %patch1 -p1 |
1be74967 | 135 | |
000a288b JB |
136 | # broken test if >1 plugins |
137 | %{__perl} -pi -e 's/test \$\(PLUGINS\)/test "\$\(PLUGINS\)"/' Makefile.in | |
138 | ||
1be74967 | 139 | %build |
fb8487cf | 140 | cp -f /usr/share/automake/config.* . |
f5e8d649 | 141 | %{__aclocal} |
dd4b0ca1 | 142 | %{__autoconf} |
f5e8d649 | 143 | cd libmaa |
fb8487cf | 144 | cp -f /usr/share/automake/config.* . |
f5e8d649 JB |
145 | %{__aclocal} |
146 | %{__autoconf} | |
147 | cd .. | |
865f5935 | 148 | CFLAGS="%{rpmcflags} -DUID_NOBODY=99 -DGID_NOBODY=99" |
95d87f1c JB |
149 | %configure |
150 | ||
1be74967 | 151 | %{__make} |
152 | ||
153 | %install | |
154 | rm -rf $RPM_BUILD_ROOT | |
9d566f06 | 155 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig,%{name}},%{_datadir}/%{name}} |
1be74967 | 156 | |
9d566f06 JB |
157 | %{__make} install \ |
158 | DESTDIR=$RPM_BUILD_ROOT | |
1be74967 | 159 | |
160 | echo "server localhost" > dict.conf | |
1cc49823 | 161 | echo -e "access {\n\tallow localhost\n\tdeny *\n}\n" > %{name}-main.conf |
6e0c49a8 | 162 | |
9b7e2eb7 | 163 | install dict.conf $RPM_BUILD_ROOT%{_sysconfdir} |
164 | install dictd-main.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name} | |
3de56aee | 165 | :> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf |
9b7e2eb7 | 166 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
167 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
1be74967 | 168 | |
169 | mv -f doc/security.doc security.txt | |
1be74967 | 170 | |
171 | %clean | |
172 | rm -rf $RPM_BUILD_ROOT | |
173 | ||
174 | %post | |
71d80b0e | 175 | /sbin/chkconfig --add %{name} |
b823e60b | 176 | %service dictd restart |
1cc49823 | 177 | |
1be74967 | 178 | %preun |
9d00363d | 179 | if [ "$1" = "0" ]; then |
b823e60b | 180 | %service dictd stop |
9b7e2eb7 | 181 | /sbin/chkconfig --del %{name} |
71d80b0e | 182 | fi |
1be74967 | 183 | |
184 | %files | |
185 | %defattr(644,root,root,755) | |
03230a10 | 186 | %doc ANNOUNCE NEWS README* TODO examples/dictd* security.txt |
d40ba2a0 | 187 | %ghost %{_sysconfdir}/%{name}.conf |
1adc6dca | 188 | %dir %{_sysconfdir}/%{name} |
2bd6bc44 ER |
189 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}-main.conf |
190 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} | |
669e86c4 | 191 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
1adc6dca | 192 | %attr(755,root,root) %{_sbindir}/%{name} |
d40ba2a0 | 193 | %dir %{_datadir}/%{name} |
1be74967 | 194 | %{_mandir}/man8/%{name}* |
1be74967 | 195 | |
e9f0e51a JB |
196 | %files devel |
197 | %defattr(644,root,root,755) | |
9d566f06 | 198 | %attr(755,root,root) %{_bindir}/dictdplugin-config |
e9f0e51a JB |
199 | %{_includedir}/dictdplugin.h |
200 | ||
201 | %files plugin-dbi | |
202 | %defattr(644,root,root,755) | |
203 | %attr(755,root,root) %{_libdir}/dictdplugin_dbi.so | |
9d566f06 | 204 | |
000a288b JB |
205 | %files plugin-judy |
206 | %defattr(644,root,root,755) | |
207 | %attr(755,root,root) %{_libdir}/dictdplugin_judy.so | |
208 | ||
1be74967 | 209 | %files -n dict |
210 | %defattr(644,root,root,755) | |
2bd6bc44 | 211 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dict.conf |
9d566f06 | 212 | %attr(755,root,root) %{_bindir}/colorit |
1be74967 | 213 | %attr(755,root,root) %{_bindir}/dict |
9d566f06 JB |
214 | %attr(755,root,root) %{_bindir}/dictl |
215 | %{_mandir}/man1/colorit.1* | |
56577837 | 216 | %{_mandir}/man1/dict.1* |
9d566f06 | 217 | %{_mandir}/man1/dictl.1* |
3de56aee TP |
218 | |
219 | %files -n dictfmt | |
220 | %defattr(644,root,root,755) | |
221 | %attr(755,root,root) %{_bindir}/dictfmt* | |
222 | %attr(755,root,root) %{_bindir}/dictunformat | |
56577837 TP |
223 | %{_mandir}/man1/dictfmt*.1* |
224 | %{_mandir}/man1/dictunformat.1* | |
1be74967 | 225 | |
226 | %files -n dictzip | |
227 | %defattr(644,root,root,755) | |
228 | %attr(755,root,root) %{_bindir}/dictzip | |
56577837 | 229 | %{_mandir}/man1/dictzip.1* |