]>
Commit | Line | Data |
---|---|---|
1be74967 | 1 | Summary: Dictionary database server |
e64a8f95 | 2 | Summary(pl.UTF-8): Serwer bazy słowników |
1be74967 | 3 | Name: dictd |
8f564cb8 | 4 | Version: 1.12.1 |
526cb4a0 | 5 | Release: 2 |
8ef4f982 | 6 | License: GPL v1+ |
1adc6dca | 7 | Group: Networking/Daemons |
8ef4f982 | 8 | Source0: http://downloads.sourceforge.net/dict/%{name}-%{version}.tar.gz |
8f564cb8 | 9 | # Source0-md5: 62696491174c22079f664830d07c0623 |
1be74967 | 10 | Source1: %{name}.init |
6e0c49a8 | 11 | Source2: %{name}.sysconfig |
8ef4f982 | 12 | Patch0: %{name}-umask.patch |
669e86c4 | 13 | URL: http://www.dict.org/ |
8ef4f982 | 14 | BuildRequires: autoconf >= 2.53 |
13f156bb | 15 | BuildRequires: automake |
95d87f1c | 16 | BuildRequires: bison |
d3a8dc3f | 17 | BuildRequires: flex |
000a288b | 18 | BuildRequires: judy-devel |
e9f0e51a | 19 | BuildRequires: libdbi-devel |
8ef4f982 | 20 | BuildRequires: libmaa-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 | ||
774d1214 | 28 | %define skip_post_check_so dictdplugin_judy.so.* |
d34235da | 29 | |
8ef4f982 JB |
30 | # plugins dir |
31 | %define _libexecdir %{_libdir}/dictd | |
32 | ||
b823e60b | 33 | %define specflags_ia32 -fomit-frame-pointer |
1a4feb65 | 34 | |
1cc49823 | 35 | %description |
1be74967 | 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 | |
39 | databases. | |
40 | ||
b6759d8f JR |
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. | |
d40ba2a0 | 45 | |
e9f0e51a JB |
46 | %package devel |
47 | Summary: Package for dictd plugins development | |
e64a8f95 | 48 | Summary(pl.UTF-8): Pakiet programistyczny do tworzenia wtyczek dictd |
e9f0e51a JB |
49 | Group: Development/Libraries |
50 | # doesn't require base | |
51 | ||
52 | %description devel | |
53 | Package for dictd plugins development. | |
54 | ||
b6759d8f | 55 | %description devel -l pl.UTF-8 |
e9f0e51a JB |
56 | Pakiet programistyczny do tworzenia wtyczek dictd. |
57 | ||
58 | %package plugin-dbi | |
8ef4f982 | 59 | Summary: DBI plugin for dictd server |
e64a8f95 | 60 | Summary(pl.UTF-8): Wtyczka DBI dla serwera dictd |
e9f0e51a JB |
61 | Group: Libraries |
62 | Requires: %{name} = %{version}-%{release} | |
63 | ||
64 | %description plugin-dbi | |
8ef4f982 | 65 | DBI plugin for dictd server. |
e9f0e51a | 66 | |
b6759d8f | 67 | %description plugin-dbi -l pl.UTF-8 |
e9f0e51a JB |
68 | Wtyczka DBI dla serwera dictd. |
69 | ||
000a288b | 70 | %package plugin-judy |
8ef4f982 | 71 | Summary: Judy plugin for dictd server |
e64a8f95 | 72 | Summary(pl.UTF-8): Wtyczka Judy dla serwera dictd |
000a288b JB |
73 | Group: Libraries |
74 | Requires: %{name} = %{version}-%{release} | |
75 | ||
76 | %description plugin-judy | |
8ef4f982 | 77 | Judy plugin for dictd server. |
000a288b | 78 | |
b6759d8f | 79 | %description plugin-judy -l pl.UTF-8 |
000a288b JB |
80 | Wtyczka Judy dla serwera dictd. |
81 | ||
669e86c4 | 82 | %package -n dict |
1be74967 | 83 | Summary: DICT Protocol Client |
e64a8f95 | 84 | Summary(pl.UTF-8): Klient protokołu DICT |
1be74967 | 85 | Group: Applications/Networking |
1be74967 | 86 | |
87 | %description -n dict | |
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. | |
91 | ||
b6759d8f JR |
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. | |
d40ba2a0 | 96 | |
3de56aee TP |
97 | %package -n dictfmt |
98 | Summary: dictfmt utility to convert databases in various formats into dict format | |
e64a8f95 | 99 | Summary(pl.UTF-8): Narzędzie dictfmt do konwersji baz w różnych formatach na format dict |
3de56aee TP |
100 | Group: Applications/Text |
101 | Obsoletes: dict-fmt | |
3de56aee TP |
102 | |
103 | %description -n dictfmt | |
104 | dictfmt utility is designed to convert databases in various formats | |
2bd6bc44 ER |
105 | into working databases and indexes for the DICT server. This package |
106 | also includes other tools for formating databases: | |
3de56aee TP |
107 | dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat. |
108 | ||
b6759d8f JR |
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: | |
3de56aee TP |
113 | dictfmt_{index2suffix,index2word,plugin,virtual} and dictunformat. |
114 | ||
669e86c4 | 115 | %package -n dictzip |
1be74967 | 116 | Summary: Compress (or expand) files, allowing random access |
e64a8f95 | 117 | Summary(pl.UTF-8): Kompresja (i dekompresja) plików pozwalająca na swobodny dostęp |
d40ba2a0 | 118 | Group: Applications/Archiving |
1be74967 | 119 | |
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. | |
127 | ||
b6759d8f JR |
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. | |
d40ba2a0 | 135 | |
1be74967 | 136 | %prep |
d40ba2a0 | 137 | %setup -q |
9d566f06 | 138 | %patch0 -p1 |
000a288b | 139 | |
1be74967 | 140 | %build |
fb8487cf | 141 | cp -f /usr/share/automake/config.* . |
f5e8d649 | 142 | %{__aclocal} |
dd4b0ca1 | 143 | %{__autoconf} |
865f5935 | 144 | CFLAGS="%{rpmcflags} -DUID_NOBODY=99 -DGID_NOBODY=99" |
8ef4f982 JB |
145 | %configure \ |
146 | --with-plugin-dbi \ | |
147 | --with-plugin-judy \ | |
148 | --with-system-utf8-funcs | |
95d87f1c | 149 | |
1be74967 | 150 | %{__make} |
151 | ||
152 | %install | |
153 | rm -rf $RPM_BUILD_ROOT | |
8ef4f982 | 154 | install -d $RPM_BUILD_ROOT{/etc/{rc.d/init.d,sysconfig},%{_sysconfdir}/%{name},%{_datadir}/%{name}} |
1be74967 | 155 | |
9d566f06 JB |
156 | %{__make} install \ |
157 | DESTDIR=$RPM_BUILD_ROOT | |
1be74967 | 158 | |
159 | echo "server localhost" > dict.conf | |
1cc49823 | 160 | echo -e "access {\n\tallow localhost\n\tdeny *\n}\n" > %{name}-main.conf |
6e0c49a8 | 161 | |
9b7e2eb7 | 162 | install dict.conf $RPM_BUILD_ROOT%{_sysconfdir} |
163 | install dictd-main.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name} | |
3de56aee | 164 | :> $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf |
9b7e2eb7 | 165 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
166 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name} | |
1be74967 | 167 | |
8ef4f982 JB |
168 | %{__rm} $RPM_BUILD_ROOT%{_libexecdir}/dictdplugin_*.{la,a} |
169 | ||
1be74967 | 170 | mv -f doc/security.doc security.txt |
1be74967 | 171 | |
172 | %clean | |
173 | rm -rf $RPM_BUILD_ROOT | |
174 | ||
175 | %post | |
71d80b0e | 176 | /sbin/chkconfig --add %{name} |
b823e60b | 177 | %service dictd restart |
1cc49823 | 178 | |
1be74967 | 179 | %preun |
9d00363d | 180 | if [ "$1" = "0" ]; then |
b823e60b | 181 | %service dictd stop |
9b7e2eb7 | 182 | /sbin/chkconfig --del %{name} |
71d80b0e | 183 | fi |
1be74967 | 184 | |
185 | %files | |
186 | %defattr(644,root,root,755) | |
8ef4f982 | 187 | %doc ANNOUNCE ChangeLog NEWS README TODO examples/dictd* security.txt |
d40ba2a0 | 188 | %ghost %{_sysconfdir}/%{name}.conf |
1adc6dca | 189 | %dir %{_sysconfdir}/%{name} |
2bd6bc44 ER |
190 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}-main.conf |
191 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{name} | |
669e86c4 | 192 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |
1adc6dca | 193 | %attr(755,root,root) %{_sbindir}/%{name} |
d40ba2a0 | 194 | %dir %{_datadir}/%{name} |
8ef4f982 JB |
195 | %dir %{_libexecdir} |
196 | %{_mandir}/man8/dictd.8* | |
1be74967 | 197 | |
e9f0e51a JB |
198 | %files devel |
199 | %defattr(644,root,root,755) | |
9d566f06 | 200 | %attr(755,root,root) %{_bindir}/dictdplugin-config |
e9f0e51a JB |
201 | %{_includedir}/dictdplugin.h |
202 | ||
203 | %files plugin-dbi | |
204 | %defattr(644,root,root,755) | |
8ef4f982 | 205 | %attr(755,root,root) %{_libexecdir}/dictdplugin_dbi.so* |
9d566f06 | 206 | |
000a288b JB |
207 | %files plugin-judy |
208 | %defattr(644,root,root,755) | |
8ef4f982 | 209 | %attr(755,root,root) %{_libexecdir}/dictdplugin_judy.so* |
000a288b | 210 | |
1be74967 | 211 | %files -n dict |
212 | %defattr(644,root,root,755) | |
2bd6bc44 | 213 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dict.conf |
9d566f06 | 214 | %attr(755,root,root) %{_bindir}/colorit |
1be74967 | 215 | %attr(755,root,root) %{_bindir}/dict |
9d566f06 | 216 | %attr(755,root,root) %{_bindir}/dictl |
0c3fa3a7 | 217 | %attr(755,root,root) %{_bindir}/dict_lookup |
9d566f06 | 218 | %{_mandir}/man1/colorit.1* |
56577837 | 219 | %{_mandir}/man1/dict.1* |
9d566f06 | 220 | %{_mandir}/man1/dictl.1* |
0c3fa3a7 | 221 | %{_mandir}/man1/dict_lookup.1* |
3de56aee TP |
222 | |
223 | %files -n dictfmt | |
224 | %defattr(644,root,root,755) | |
225 | %attr(755,root,root) %{_bindir}/dictfmt* | |
226 | %attr(755,root,root) %{_bindir}/dictunformat | |
56577837 TP |
227 | %{_mandir}/man1/dictfmt*.1* |
228 | %{_mandir}/man1/dictunformat.1* | |
1be74967 | 229 | |
230 | %files -n dictzip | |
231 | %defattr(644,root,root,755) | |
232 | %attr(755,root,root) %{_bindir}/dictzip | |
56577837 | 233 | %{_mandir}/man1/dictzip.1* |