2 Summary: Miscellaneous dictionaries for DICTD
3 Summary(pl): Ró¿ne s³owniki dla dictd
8 Group: Applications/Dictionaries
9 Source0: ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
10 Source1: http://dsl.org/faq/fjd/journo-1.1.tar.gz
11 Source2: http://wiretap.area.com/Gopher/Library/Classic/devils.txt
12 Source3: http://ptm.linux.pl/slownik
13 Source4: http://www.prime-project.org/dict/dict-world02--2003-02-15.tar.gz
14 URL: http://www.dict.org/
15 BuildRequires: autoconf
16 BuildRequires: automake
17 BuildRequires: dictfmt
18 BuildRequires: dictzip
20 Requires: %{_sysconfdir}/dictd
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 This package contains misc dictionaries for use by the dictionary
25 server in the dictd package.
28 Ten pakiet zawiera ró¿ne s³owniki do u¿ywania z serwerem s³ownika
31 %package -n dict-devil
32 Summary: Devil's dictionary for DICTD
33 Summary(pl): S³ownik Devil's Dictionary dla dictd
34 Group: Applications/Dictionaries
36 Requires: %{_sysconfdir}/dictd
38 %description -n dict-devil
39 This package contains The Devil's Dictionary, a cynical and irreverent
40 dictionary of common words, formatted for use by the dictionary server
43 %description -n dict-devil -l pl
44 S³ownik The Devil's Dictionary, zawieraj±cy cyniczne i lekcewa¿±ce
45 opisy s³ów - do u¿ywania z serwerem s³ownika dictd.
47 %package -n dict-easton
48 Summary: easton dictionary for DICTD
49 Summary(pl): S³ownik easton dla dictd
50 Group: Applications/Dictionaries
52 Requires: %{_sysconfdir}/dictd
54 %description -n dict-easton
55 This package contains Easton's 1897 Bible Dictionary, based on M.G.
56 Easton M.A., D.D.'s Illustrated Bible Dictionary, Third Edition,
57 published by Thomas Nelson, 1897, for use by the dictionary server in
60 %description -n dict-easton -l pl
61 Ten pakiet zawiera s³ownik Easton's 1897 Bible Dictionary do u¿ywania
62 z serwerem s³ownika dictd.
64 %package -n dict-elements
65 Summary: elements dictionary for DICTD
66 Summary(pl): S³ownik elements dla dictd
67 Group: Applications/Dictionaries
69 Requires: %{_sysconfdir}/dictd
71 %description -n dict-elements
72 This package contains a freely-distributed database of elemental
73 information, edited by Jay Kominek, for use by the dictionary server
76 %description -n dict-elements -l pl
77 Ten pakiet zawiera bazê danych informacji o pierwiastkach,
78 przygotowan± przez Jaya Kominka, do u¿ywania z serwerem s³ownika
81 %package -n dict-foldoc
82 Summary: The Free On-line Dictionary of Computing for DICTD
83 Summary(pl): Wolny s³ownik komputerów dla dictd
84 Group: Applications/Dictionaries
86 Requires: %{_sysconfdir}/dictd
88 %description -n dict-foldoc
89 This package contains The Free On-line Dictionary of Computing for use
90 by the dictionary server in the dictd package.
92 %description -n dict-foldoc -l pl
93 Ten pakiet zawiera s³ownik The Free On-line Dictionary of Computing do
94 u¿ywania z serwerem s³ownika dictd.
96 %package -n dict-hitchcock
97 Summary: hitchcock dictionary for DICTD
98 Summary(pl): S³ownik hitchcock dla dictd
99 Group: Applications/Dictionaries
101 Requires: %{_sysconfdir}/dictd
103 %description -n dict-hitchcock
104 This package contains Hitchcock's Bible Names Dictionary, derived from
105 Hitchcock's New and Complete Analysis of the Holy Bible, published in
106 the late 1800's, for use by the dictionary server in the dictd
109 %description -n dict-hitchcock -l pl
110 Ten pakiet zawiera s³ownik Hitchcock's Bible Names Dictionary do
111 u¿ywania z serwerem s³ownika dictd.
113 %package -n dict-journo
114 Summary: Journalism dictionary for DICTD
115 Summary(pl): S³ownik Journalism dla dictd
116 Group: Applications/Dictionaries
118 Requires: %{_sysconfdir}/dictd
120 %description -n dict-journo
121 This package contains Free Journalism Dictionary for use by the
122 dictionary server in the dictd package.
124 %description -n dict-journo -l pl
125 Ten pakiet zawiera s³ownik Free Journalism Dictionary do u¿ywania z
126 serwerem s³ownika dictd.
129 Summary: PTM dictionary for DICTD
130 Summary(pl): S³ownik PTM dla dictd
131 Group: Applications/Dictionaries
133 Requires: %{_sysconfdir}/dictd
135 %description -n dict-ptm
136 This package contains dictionary created by Projekt Tlumaczenia
137 Manuali for use by the dicitonary server in the dictd package.
139 %description -n dict-ptm -l pl
140 Ten pakiet zawiera s³ownik Projektu T³umaczenia Manuali, do u¿ycia z
143 %package -n dict-CIAworldbook
144 Summary: CIAworldbook dictionary for DICTD
145 Summary(pl): S³ownik CIAworldbook dla dictd
146 Group: Applications/Dictionaries
147 URL: http://www.prime-project.org/dict/
149 Requires: %{_sysconfdir}/dictd
150 Obsoletes: dict-world95
152 %description -n dict-CIAworldbook
153 This package contains The 2002 CIA World Factbook for use by the
154 dictionary server in the dictd package.
156 %description -n dict-CIAworldbook -l pl
157 Ten pakiet zawiera s³ownik The 2002 CIA World Factbook do u¿ywania z
158 serwerem s³ownika dictd.
167 cp -f %{_datadir}/automake/install-sh .
168 cp -f %{_datadir}/automake/config.sub .
172 sed 's/^[[:alpha:]]\{2,\}$/:&:/' journo-1.1/journalism.dict | \
173 dictfmt -j -u "http://dsl.org/lit/" -s Journalism journo
176 sed 's/^[[:upper:]]\{2,\}/:&:/' devils.txt | \
177 dictfmt -j -u http://wiretap.area.com/Gopher/Library/Classic/devils.txt \
178 -s "The Devil's Dictionary (1881-1906)" devil
181 #egrep -v "^#" slownik | tr -d \[\] | tr ê󱶳¿¼æñ eoaslzzcn | \
182 egrep -v "^#" slownik | tr -d \[\] | \
183 sed 's/^\([[:alnum:]]\{2,\}\)\ \ /:\1:/' | \
184 dictfmt -j -u "http://ptm.linux.pl/slownik" \
185 -s "Projekt Tlumaczenia Manuali" ptm
188 cd world02-2003-02-15
193 rm -rf $RPM_BUILD_ROOT
194 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd,%{_bindir}}
195 %{__make} install dictdir=$RPM_BUILD_ROOT%{_datadir}/dictd
196 install ptm.* journo.* devil.* $RPM_BUILD_ROOT%{_datadir}/dictd
197 install world02-2003-02-15/world02.* $RPM_BUILD_ROOT%{_datadir}/dictd
199 # jargon has separate package
200 rm -f $RPM_BUILD_ROOT%{_datadir}/dictd/jargon.*
202 for i in easton elements foldoc hitchcock world02 journo ptm devil; do
203 dictprefix=%{_datadir}/dictd/$i
204 echo "# Misc Dictionaries - $i
206 data \"$dictprefix.dict.dz\"
207 index \"$dictprefix.index\"
208 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/$i.dictconf
212 rm -rf $RPM_BUILD_ROOT
215 if [ -f /var/lock/subsys/dictd ]; then
216 /etc/rc.d/init.d/dictd restart 1>&2
219 %postun -n dict-devil
220 if [ -f /var/lock/subsys/dictd ]; then
221 /etc/rc.d/init.d/dictd restart 1>&2 || true
225 if [ -f /var/lock/subsys/dictd ]; then
226 /etc/rc.d/init.d/dictd restart 1>&2
229 %postun -n dict-easton
230 if [ -f /var/lock/subsys/dictd ]; then
231 /etc/rc.d/init.d/dictd restart 1>&2 || true
234 %post -n dict-elements
235 if [ -f /var/lock/subsys/dictd ]; then
236 /etc/rc.d/init.d/dictd restart 1>&2
239 %postun -n dict-elements
240 if [ -f /var/lock/subsys/dictd ]; then
241 /etc/rc.d/init.d/dictd restart 1>&2 || true
245 if [ -f /var/lock/subsys/dictd ]; then
246 /etc/rc.d/init.d/dictd restart 1>&2
249 %postun -n dict-foldoc
250 if [ -f /var/lock/subsys/dictd ]; then
251 /etc/rc.d/init.d/dictd restart 1>&2 || true
254 %post -n dict-hitchcock
255 if [ -f /var/lock/subsys/dictd ]; then
256 /etc/rc.d/init.d/dictd restart 1>&2
259 %postun -n dict-hitchcock
260 if [ -f /var/lock/subsys/dictd ]; then
261 /etc/rc.d/init.d/dictd restart 1>&2 || true
265 if [ -f /var/lock/subsys/dictd ]; then
266 /etc/rc.d/init.d/dictd restart 1>&2
269 %postun -n dict-journo
270 if [ -f /var/lock/subsys/dictd ]; then
271 /etc/rc.d/init.d/dictd restart 1>&2
275 if [ -f /var/lock/subsys/dictd ]; then
276 /etc/rc.d/init.d/dictd restart 1>&2
280 if [ -f /var/lock/subsys/dictd ]; then
281 /etc/rc.d/init.d/dictd restart 1>&2
284 %post -n dict-CIAworldbook
285 if [ -f /var/lock/subsys/dictd ]; then
286 /etc/rc.d/init.d/dictd restart 1>&2
289 %postun -n dict-CIAworldbook
290 if [ -f /var/lock/subsys/dictd ]; then
291 /etc/rc.d/init.d/dictd restart 1>&2 || true
295 %defattr(644,root,root,755)
296 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/devil.dictconf
297 %{_datadir}/dictd/devil.*
299 %files -n dict-easton
300 %defattr(644,root,root,755)
301 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/easton.dictconf
302 %{_datadir}/dictd/easton.*
304 %files -n dict-elements
305 %defattr(644,root,root,755)
306 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/elements.dictconf
307 %{_datadir}/dictd/elements.*
309 %files -n dict-foldoc
310 %defattr(644,root,root,755)
311 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/foldoc.dictconf
312 %{_datadir}/dictd/foldoc.*
314 %files -n dict-hitchcock
315 %defattr(644,root,root,755)
316 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/hitchcock.dictconf
317 %{_datadir}/dictd/hitchcock.*
319 %files -n dict-journo
320 %defattr(644,root,root,755)
321 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/journo.dictconf
322 %{_datadir}/dictd/journo.*
325 %defattr(644,root,root,755)
326 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/ptm.dictconf
327 %{_datadir}/dictd/ptm.*
329 %files -n dict-CIAworldbook
330 %defattr(644,root,root,755)
331 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/world02.dictconf
332 %{_datadir}/dictd/world02.*