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 URL: http://www.dict.org/
14 BuildRequires: autoconf
15 BuildRequires: dictfmt
16 BuildRequires: dictzip
18 Requires: %{_sysconfdir}/dictd
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This package contains misc dictionaries for use by the dictionary
23 server in the dictd package.
26 Ten pakiet zawiera ró¿ne s³owniki do u¿ywania z serwerem s³ownika
29 %package -n dict-devil
30 Summary: Devil's dictionary for DICTD
31 Summary(pl): S³ownik Devil's Dictionary dla dictd
32 Group: Applications/Dictionaries
34 Requires: %{_sysconfdir}/dictd
36 %description -n dict-devil
37 This package contains The Devil's Dictionary, a cynical and irreverent
38 dictionary of common words, formatted for use by the dictionary server
41 %description -n dict-devil -l pl
42 S³ownik The Devil's Dictionary, zawieraj±cy cyniczne i lekcewa¿±ce
43 opisy s³ów - do u¿ywania z serwerem s³ownika dictd.
45 %package -n dict-easton
46 Summary: easton dictionary for DICTD
47 Summary(pl): S³ownik easton dla dictd
48 Group: Applications/Dictionaries
50 Requires: %{_sysconfdir}/dictd
52 %description -n dict-easton
53 This package contains Easton's 1897 Bible Dictionary, based on M.G.
54 Easton M.A., D.D.'s Illustrated Bible Dictionary, Third Edition,
55 published by Thomas Nelson, 1897, for use by the dictionary server in
58 %description -n dict-easton -l pl
59 Ten pakiet zawiera s³ownik Easton's 1897 Bible Dictionary do u¿ywania
60 z serwerem s³ownika dictd.
62 %package -n dict-elements
63 Summary: elements dictionary for DICTD
64 Summary(pl): S³ownik elements dla dictd
65 Group: Applications/Dictionaries
67 Requires: %{_sysconfdir}/dictd
69 %description -n dict-elements
70 This package contains a freely-distributed database of elemental
71 information, edited by Jay Kominek, for use by the dictionary server
74 %description -n dict-elements -l pl
75 Ten pakiet zawiera bazê danych informacji o pierwiastkach,
76 przygotowan± przez Jaya Kominka, do u¿ywania z serwerem s³ownika
79 %package -n dict-foldoc
80 Summary: foldoc dictionary for DICTD
81 Summary(pl): S³ownik foldoc dla dictd
82 Group: Applications/Dictionaries
84 Requires: %{_sysconfdir}/dictd
86 %description -n dict-foldoc
87 This package contains The Free On-line Dictionary of Computing for use
88 by the dictionary server in the dictd package.
90 %description -n dict-foldoc -l pl
91 Ten pakiet zawiera s³ownik The Free On-line Dictionary of Computing do
92 u¿ywania z serwerem s³ownika dictd.
94 %package -n dict-hitchcock
95 Summary: hitchcock dictionary for DICTD
96 Summary(pl): S³ownik hitchcock dla dictd
97 Group: Applications/Dictionaries
99 Requires: %{_sysconfdir}/dictd
101 %description -n dict-hitchcock
102 This package contains Hitchcock's Bible Names Dictionary, derived from
103 Hitchcock's New and Complete Analysis of the Holy Bible, published in
104 the late 1800's, for use by the dictionary server in the dictd
107 %description -n dict-hitchcock -l pl
108 Ten pakiet zawiera s³ownik Hitchcock's Bible Names Dictionary do
109 u¿ywania z serwerem s³ownika dictd.
111 %package -n dict-journo
112 Summary: Journalism dictionary for DICTD
113 Summary(pl): S³ownik Journalism dla dictd
114 Group: Applications/Dictionaries
116 Requires: %{_sysconfdir}/dictd
118 %description -n dict-journo
119 This package contains Free Journalism Dictionary for use by the
120 dictionary server in the dictd package.
122 %description -n dict-journo -l pl
123 Ten pakiet zawiera s³ownik Free Journalism Dictionary do u¿ywania z
124 serwerem s³ownika dictd.
127 Summary: PTM dictionary for DICTD
128 Summary(pl): S³ownik PTM dla dictd
129 Group: Applications/Dictionaries
131 Requires: %{_sysconfdir}/dictd
133 %description -n dict-ptm
134 This package contains dictionary created by Projekt Tlumaczenia
135 Manuali for use by the dicitonary server in the dictd package.
137 %description -n dict-ptm -l pl
138 Ten pakiet zawiera s³ownik Projektu T³umaczenia Manuali, do u¿ycia z
141 %package -n dict-world95
142 Summary: world95 dictionary for DICTD
143 Summary(pl): S³ownik world95 dla dictd
144 Group: Applications/Dictionaries
146 Requires: %{_sysconfdir}/dictd
148 %description -n dict-world95
149 This package contains The 1995 CIA World Factbook for use by the
150 dictionary server in the dictd package.
152 %description -n dict-world95 -l pl
153 Ten pakiet zawiera s³ownik The 1995 CIA World Factbook do u¿ywania z
154 serwerem s³ownika dictd.
166 sed 's/^[[:alpha:]]\{2,\}$/:&:/' journo-1.1/journalism.dict | \
167 dictfmt -j -u "http://dsl.org/lit/" -s Journalism journo
170 sed 's/^[[:upper:]]\{2,\}/:&:/' devils.txt | \
171 dictfmt -j -u http://wiretap.area.com/Gopher/Library/Classic/devils.txt \
172 -s "The Devil's Dictionary (1881-1906)" devil
175 #egrep -v "^#" slownik | tr -d \[\] | tr ê󱶳¿¼æñ eoaslzzcn | \
176 egrep -v "^#" slownik | tr -d \[\] | \
177 sed 's/^\([[:alnum:]]\{2,\}\)\ \ /:\1:/' | \
178 dictfmt -j -u "http://ptm.linux.pl/slownik" \
179 -s "Projekt Tlumaczenia Manuali" ptm
183 rm -rf $RPM_BUILD_ROOT
184 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd,%{_bindir}}
185 %{__make} install dictdir=$RPM_BUILD_ROOT%{_datadir}/dictd
186 install ptm.* journo.* devil.* $RPM_BUILD_ROOT%{_datadir}/dictd
188 # jargon has separate package
189 rm -f $RPM_BUILD_ROOT%{_datadir}/dictd/jargon.*
191 for i in easton elements foldoc hitchcock world95 journo ptm devil; do
192 dictprefix=%{_datadir}/dictd/$i
193 echo "# Misc Dictionaries - $i
195 data \"$dictprefix.dict.dz\"
196 index \"$dictprefix.index\"
197 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/$i.dictconf
201 rm -rf $RPM_BUILD_ROOT
204 if [ -f /var/lock/subsys/dictd ]; then
205 /etc/rc.d/init.d/dictd restart 1>&2
208 %postun -n dict-devil
209 if [ -f /var/lock/subsys/dictd ]; then
210 /etc/rc.d/init.d/dictd restart 1>&2 || true
214 if [ -f /var/lock/subsys/dictd ]; then
215 /etc/rc.d/init.d/dictd restart 1>&2
218 %postun -n dict-easton
219 if [ -f /var/lock/subsys/dictd ]; then
220 /etc/rc.d/init.d/dictd restart 1>&2 || true
223 %post -n dict-elements
224 if [ -f /var/lock/subsys/dictd ]; then
225 /etc/rc.d/init.d/dictd restart 1>&2
228 %postun -n dict-elements
229 if [ -f /var/lock/subsys/dictd ]; then
230 /etc/rc.d/init.d/dictd restart 1>&2 || true
234 if [ -f /var/lock/subsys/dictd ]; then
235 /etc/rc.d/init.d/dictd restart 1>&2
238 %postun -n dict-foldoc
239 if [ -f /var/lock/subsys/dictd ]; then
240 /etc/rc.d/init.d/dictd restart 1>&2 || true
243 %post -n dict-hitchcock
244 if [ -f /var/lock/subsys/dictd ]; then
245 /etc/rc.d/init.d/dictd restart 1>&2
248 %postun -n dict-hitchcock
249 if [ -f /var/lock/subsys/dictd ]; then
250 /etc/rc.d/init.d/dictd restart 1>&2 || true
254 if [ -f /var/lock/subsys/dictd ]; then
255 /etc/rc.d/init.d/dictd restart 1>&2
258 %postun -n dict-journo
259 if [ -f /var/lock/subsys/dictd ]; then
260 /etc/rc.d/init.d/dictd restart 1>&2
264 if [ -f /var/lock/subsys/dictd ]; then
265 /etc/rc.d/init.d/dictd restart 1>&2
269 if [ -f /var/lock/subsys/dictd ]; then
270 /etc/rc.d/init.d/dictd restart 1>&2
273 %post -n dict-world95
274 if [ -f /var/lock/subsys/dictd ]; then
275 /etc/rc.d/init.d/dictd restart 1>&2
278 %postun -n dict-world95
279 if [ -f /var/lock/subsys/dictd ]; then
280 /etc/rc.d/init.d/dictd restart 1>&2 || true
284 %defattr(644,root,root,755)
285 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/devil.dictconf
286 %{_datadir}/dictd/devil.*
288 %files -n dict-easton
289 %defattr(644,root,root,755)
290 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/easton.dictconf
291 %{_datadir}/dictd/easton.*
293 %files -n dict-elements
294 %defattr(644,root,root,755)
295 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/elements.dictconf
296 %{_datadir}/dictd/elements.*
298 %files -n dict-foldoc
299 %defattr(644,root,root,755)
300 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/foldoc.dictconf
301 %{_datadir}/dictd/foldoc.*
303 %files -n dict-hitchcock
304 %defattr(644,root,root,755)
305 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/hitchcock.dictconf
306 %{_datadir}/dictd/hitchcock.*
308 %files -n dict-journo
309 %defattr(644,root,root,755)
310 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/journo.dictconf
311 %{_datadir}/dictd/journo.*
314 %defattr(644,root,root,755)
315 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/ptm.dictconf
316 %{_datadir}/dictd/ptm.*
318 %files -n dict-world95
319 %defattr(644,root,root,755)
320 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/world95.dictconf
321 %{_datadir}/dictd/world95.*