2 Summary: misc 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: dictzip
17 Requires: %{_sysconfdir}/dictd
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 This package contains misc dictionaries for use by the dictionary
22 server in the dictd package.
25 Ten pakiet zawiera ró¿ne s³owniki do u¿ywania z serwerem s³ownika
28 %package -n dict-devil
29 Summary: Devil's dictionary for DICTD
30 Summary(pl): S³ownik Devil's Dictionary dla dictd
31 Group: Applications/Dictionaries
33 Requires: %{_sysconfdir}/dictd
35 %description -n dict-devil
36 This package contains The Devil's Dictionary, a cynical and irreverent
37 dictionary of common words, formatted for use by the dictionary server
40 %description -n dict-devil -l pl
41 S³ownik The Devil's Dictionary, zawieraj±cy cyniczne i lekcewa¿±ce
42 opisy s³ów - do u¿ywania z serwerem s³ownika dictd.
44 %package -n dict-easton
45 Summary: easton dictionary for DICTD
46 Summary(pl): S³ownik easton dla dictd
47 Group: Applications/Dictionaries
49 Requires: %{_sysconfdir}/dictd
51 %description -n dict-easton
52 This package contains Easton's 1897 Bible Dictionary, based on M.G.
53 Easton M.A., D.D.'s Illustrated Bible Dictionary, Third Edition,
54 published by Thomas Nelson, 1897, for use by the dictionary server in
57 %description -n dict-easton -l pl
58 Ten pakiet zawiera s³ownik Easton's 1897 Bible Dictionary do u¿ywania
59 z serwerem s³ownika dictd.
61 %package -n dict-elements
62 Summary: elements dictionary for DICTD
63 Summary(pl): S³ownik elements dla dictd
64 Group: Applications/Dictionaries
66 Requires: %{_sysconfdir}/dictd
68 %description -n dict-elements
69 This package contains a freely-distributed database of elemental
70 information, edited by Jay Kominek, for use by the dictionary server
73 %description -n dict-elements -l pl
74 Ten pakiet zawiera bazê danych informacji o pierwiastkach,
75 przygotowan± przez Jaya Kominka, do u¿ywania z serwerem s³ownika
78 %package -n dict-foldoc
79 Summary: foldoc dictionary for DICTD
80 Summary(pl): S³ownik foldoc dla dictd
81 Group: Applications/Dictionaries
83 Requires: %{_sysconfdir}/dictd
85 %description -n dict-foldoc
86 This package contains The Free On-line Dictionary of Computing for use
87 by the dictionary server in the dictd package.
89 %description -n dict-foldoc -l pl
90 Ten pakiet zawiera s³ownik The Free On-line Dictionary of Computing do
91 u¿ywania z serwerem s³ownika dictd.
93 %package -n dict-hitchcock
94 Summary: hitchcock dictionary for DICTD
95 Summary(pl): S³ownik hitchcock dla dictd
96 Group: Applications/Dictionaries
98 Requires: %{_sysconfdir}/dictd
100 %description -n dict-hitchcock
101 This package contains Hitchcock's Bible Names Dictionary, derived from
102 Hitchcock's New and Complete Analysis of the Holy Bible, published in
103 the late 1800's, for use by the dictionary server in the dictd
106 %description -n dict-hitchcock -l pl
107 Ten pakiet zawiera s³ownik Hitchcock's Bible Names Dictionary do
108 u¿ywania z serwerem s³ownika dictd.
110 %package -n dict-journo
111 Summary: Journalism dictionary for DICTD
112 Summary(pl): S³ownik Journalism dla dictd
113 Group: Applications/Dictionaries
115 Requires: %{_sysconfdir}/dictd
117 %description -n dict-journo
118 This package contains Free Journalism Dictionary for use by the
119 dictionary server in the dictd package.
121 %description -n dict-journo -l pl
122 Ten pakiet zawiera s³ownik Free Journalism Dictionary do u¿ywania z
123 serwerem s³ownika dictd.
126 Summary: PTM dictionary for DICTD
127 Summary(pl): S³ownik PTM dla dictd
128 Group: Applications/Dictionaries
130 Requires: %{_sysconfdir}/dictd
132 %description -n dict-ptm
133 This package contains dictionary created by Projekt Tlumaczenia
134 Manuali for use by the dicitonary server in the dictd package.
136 %description -n dict-ptm -l pl
137 Ten pakiet zawiera s³ownik Projektu T³umaczenia Manuali, do u¿ycia z
140 %package -n dict-world95
141 Summary: world95 dictionary for DICTD
142 Summary(pl): S³ownik world95 dla dictd
143 Group: Applications/Dictionaries
145 Requires: %{_sysconfdir}/dictd
147 %description -n dict-world95
148 This package contains The 1995 CIA World Factbook for use by the
149 dictionary server in the dictd package.
151 %description -n dict-world95 -l pl
152 Ten pakiet zawiera s³ownik The 1995 CIA World Factbook do u¿ywania z
153 serwerem s³ownika dictd.
165 sed -e 's/^[[:alpha:]]\{2,\}$/:&:/' < journo-1.1/journalism.dict \
167 ./dictfmt -j -u "http://dsl.org/lit/" -s Journalism journo < journalism.txt
170 sed 's/^[[:upper:]]\{2,\}/:&:/' ./devils.txt | ./dictfmt \
171 -j -u http://wiretap.area.com/Gopher/Library/Classic/devils.txt \
172 -s "The Devil's Dictionary (1881-1906)" devil
176 egrep -v "^#" slownik > slownik.1
177 tr -d \[\] <slownik.1 > slownik.2
178 tr ê󱶳¿¼æñ eoaslzzcn <slownik.2 > slownik.3
179 sed -e 's/^\([[:alnum:]]\{2,\}\)\ \ /:\1:/' < slownik.3 > slownik.4
180 ./dictfmt -j -u "http://ptm.linux.pl/slownik" -s "Projek Tlumaczenia Manuali" ptm < slownik.4
184 rm -rf $RPM_BUILD_ROOT
185 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd,%{_bindir}}
186 %{__make} install dictdir="$RPM_BUILD_ROOT%{_datadir}/dictd/"
187 install ptm.* journo.* devil.* $RPM_BUILD_ROOT%{_datadir}/dictd/
189 # jargon has separate package
190 rm -f $RPM_BUILD_ROOT%{_datadir}/dictd/jargon.*
192 for i in easton elements foldoc hitchcock world95 journo ptm devil; do
193 dictprefix=%{_datadir}/dictd/$i
194 echo "# Misc Dictionaries - $i
196 data \"$dictprefix.dict.dz\"
197 index \"$dictprefix.index\"
198 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/$i.dictconf
202 rm -rf $RPM_BUILD_ROOT
205 if [ -f /var/lock/subsys/dictd ]; then
206 /etc/rc.d/init.d/dictd restart 1>&2
209 %postun -n dict-devil
210 if [ -f /var/lock/subsys/dictd ]; then
211 /etc/rc.d/init.d/dictd restart 1>&2 || true
215 if [ -f /var/lock/subsys/dictd ]; then
216 /etc/rc.d/init.d/dictd restart 1>&2
219 %postun -n dict-easton
220 if [ -f /var/lock/subsys/dictd ]; then
221 /etc/rc.d/init.d/dictd restart 1>&2 || true
224 %post -n dict-elements
225 if [ -f /var/lock/subsys/dictd ]; then
226 /etc/rc.d/init.d/dictd restart 1>&2
229 %postun -n dict-elements
230 if [ -f /var/lock/subsys/dictd ]; then
231 /etc/rc.d/init.d/dictd restart 1>&2 || true
235 if [ -f /var/lock/subsys/dictd ]; then
236 /etc/rc.d/init.d/dictd restart 1>&2
239 %postun -n dict-foldoc
240 if [ -f /var/lock/subsys/dictd ]; then
241 /etc/rc.d/init.d/dictd restart 1>&2 || true
244 %post -n dict-hitchcock
245 if [ -f /var/lock/subsys/dictd ]; then
246 /etc/rc.d/init.d/dictd restart 1>&2
249 %postun -n dict-hitchcock
250 if [ -f /var/lock/subsys/dictd ]; then
251 /etc/rc.d/init.d/dictd restart 1>&2 || true
255 if [ -f /var/lock/subsys/dictd ]; then
256 /etc/rc.d/init.d/dictd restart 1>&2
259 %postun -n dict-journo
260 if [ -f /var/lock/subsys/dictd ]; then
261 /etc/rc.d/init.d/dictd restart 1>&2
265 if [ -f /var/lock/subsys/dictd ]; then
266 /etc/rc.d/init.d/dictd restart 1>&2
270 if [ -f /var/lock/subsys/dictd ]; then
271 /etc/rc.d/init.d/dictd restart 1>&2
274 %post -n dict-world95
275 if [ -f /var/lock/subsys/dictd ]; then
276 /etc/rc.d/init.d/dictd restart 1>&2
279 %postun -n dict-world95
280 if [ -f /var/lock/subsys/dictd ]; then
281 /etc/rc.d/init.d/dictd restart 1>&2 || true
285 %defattr(644,root,root,755)
286 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/devil.dictconf
287 %{_datadir}/dictd/devil.*
289 %files -n dict-easton
290 %defattr(644,root,root,755)
291 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/easton.dictconf
292 %{_datadir}/dictd/easton.*
294 %files -n dict-elements
295 %defattr(644,root,root,755)
296 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/elements.dictconf
297 %{_datadir}/dictd/elements.*
299 %files -n dict-foldoc
300 %defattr(644,root,root,755)
301 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/foldoc.dictconf
302 %{_datadir}/dictd/foldoc.*
304 %files -n dict-hitchcock
305 %defattr(644,root,root,755)
306 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/hitchcock.dictconf
307 %{_datadir}/dictd/hitchcock.*
309 %files -n dict-journo
310 %defattr(644,root,root,755)
311 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/journo.dictconf
312 %{_datadir}/dictd/journo.*
315 %defattr(644,root,root,755)
316 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/ptm.dictconf
317 %{_datadir}/dictd/ptm.*
319 %files -n dict-world95
320 %defattr(644,root,root,755)
321 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/world95.dictconf
322 %{_datadir}/dictd/world95.*