2 Summary: Miscellaneous dictionaries for DICTD
3 Summary(pl.UTF-8): Różne słowniki dla dictd
8 Group: Applications/Dictionaries
9 Source0: ftp://ftp.dict.org/pub/dict/%{name}-%{version}.tar.gz
10 # Source0-md5: 74a41d916b76323482b273f8b53c31bf
11 Source1: http://dsl.org/faq/fjd/journo-1.1.tar.gz
12 # Source1-md5: e7ee9a7694e5640cca02da993839771a
13 Source2: http://wiretap.area.com/Gopher/Library/Classic/devils.txt
14 # Source2-md5: 56b2918934d8f1162ec0f711df8c9669
15 Source3: http://ptm.linux.pl/slownik
16 # Source3-md5: 7edc21ffad074041097e9f9f0e2c2b15
17 Source4: http://www.prime-project.org/dict/dict-world02--2003-02-15.tar.gz
18 # Source4-md5: 344bd453d17536e281f1874cfd318c7d
19 Source5: http://foldoc.org/foldoc/Dictionary.gz
20 # Source5-md5: c93dcdd00ac3ba1436ffe3cff2a27493
21 Patch0: %{name}-gcc.patch
22 URL: http://www.dict.org/
23 BuildRequires: autoconf
24 BuildRequires: automake
25 BuildRequires: dictfmt
26 BuildRequires: dictzip
27 Requires: %{_sysconfdir}/dictd
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 This package contains misc dictionaries for use by the dictionary
33 server in the dictd package.
35 %description -l pl.UTF-8
36 Ten pakiet zawiera różne słowniki do używania z serwerem słownika
39 %package -n dict-devil
40 Summary: Devil's dictionary for DICTD
41 Summary(pl.UTF-8): Słownik Devil's Dictionary dla dictd
42 Group: Applications/Dictionaries
43 Requires: %{_sysconfdir}/dictd
46 %description -n dict-devil
47 This package contains The Devil's Dictionary, a cynical and irreverent
48 dictionary of common words, formatted for use by the dictionary server
51 %description -n dict-devil -l pl.UTF-8
52 Słownik The Devil's Dictionary, zawierający cyniczne i lekceważące
53 opisy słów - do używania z serwerem słownika dictd.
55 %package -n dict-easton
56 Summary: Easton's dictionary for DICTD
57 Summary(pl.UTF-8): Słownik Eastona dla dictd
58 Group: Applications/Dictionaries
59 Requires: %{_sysconfdir}/dictd
62 %description -n dict-easton
63 This package contains Easton's 1897 Bible Dictionary, based on M.G.
64 Easton M.A., D.D.'s Illustrated Bible Dictionary, Third Edition,
65 published by Thomas Nelson, 1897, for use by the dictionary server in
68 %description -n dict-easton -l pl.UTF-8
69 Ten pakiet zawiera słownik Easton's 1897 Bible Dictionary do używania
70 z serwerem słownika dictd.
72 %package -n dict-elements
73 Summary: Elements dictionary for DICTD
74 Summary(pl.UTF-8): Słownik pierwiastków dla dictd
75 Group: Applications/Dictionaries
76 Requires: %{_sysconfdir}/dictd
79 %description -n dict-elements
80 This package contains a freely-distributed database of elemental
81 information, edited by Jay Kominek, for use by the dictionary server
84 %description -n dict-elements -l pl.UTF-8
85 Ten pakiet zawiera bazę danych informacji o pierwiastkach,
86 przygotowaną przez Jaya Kominka, do używania z serwerem słownika
89 %package -n dict-foldoc
90 Summary: The Free On-line Dictionary of Computing for DICTD
91 Summary(pl.UTF-8): Darmowy słownik z dziedziny obliczeń dla dictd
92 Group: Applications/Dictionaries
93 Requires: %{_sysconfdir}/dictd
96 %description -n dict-foldoc
97 This package contains The Free On-line Dictionary of Computing for use
98 by the dictionary server in the dictd package.
100 %description -n dict-foldoc -l pl.UTF-8
101 Ten pakiet zawiera słownik The Free On-line Dictionary of Computing do
102 używania z serwerem słownika dictd.
104 %package -n dict-hitchcock
105 Summary: Hitchcock's dictionary for DICTD
106 Summary(pl.UTF-8): Słownik Hitchcocka dla dictd
107 Group: Applications/Dictionaries
108 Requires: %{_sysconfdir}/dictd
111 %description -n dict-hitchcock
112 This package contains Hitchcock's Bible Names Dictionary, derived from
113 Hitchcock's New and Complete Analysis of the Holy Bible, published in
114 the late 1800's, for use by the dictionary server in the dictd
117 %description -n dict-hitchcock -l pl.UTF-8
118 Ten pakiet zawiera słownik Hitchcock's Bible Names Dictionary do
119 używania z serwerem słownika dictd.
121 %package -n dict-journo
122 Summary: Journalism dictionary for DICTD
123 Summary(pl.UTF-8): Słownik Journalism dla dictd
124 Group: Applications/Dictionaries
125 Requires: %{_sysconfdir}/dictd
128 %description -n dict-journo
129 This package contains Free Journalism Dictionary for use by the
130 dictionary server in the dictd package.
132 %description -n dict-journo -l pl.UTF-8
133 Ten pakiet zawiera słownik Free Journalism Dictionary do używania z
134 serwerem słownika dictd.
137 Summary: PTM dictionary for DICTD
138 Summary(pl.UTF-8): Słownik PTM dla dictd
139 Group: Applications/Dictionaries
140 Requires: %{_sysconfdir}/dictd
143 %description -n dict-ptm
144 This package contains dictionary created by Projekt Tlumaczenia
145 Manuali for use by the dicitonary server in the dictd package.
147 %description -n dict-ptm -l pl.UTF-8
148 Ten pakiet zawiera słownik Projektu Tłumaczenia Manuali, do użycia z
151 %package -n dict-CIAworldbook
152 Summary: CIAworldbook dictionary for DICTD
153 Summary(pl.UTF-8): Słownik CIAworldbook dla dictd
154 Group: Applications/Dictionaries
155 URL: http://www.prime-project.org/dict/
156 Requires: %{_sysconfdir}/dictd
158 Obsoletes: dict-world95
160 %description -n dict-CIAworldbook
161 This package contains The 2002 CIA World Factbook for use by the
162 dictionary server in the dictd package.
164 %description -n dict-CIAworldbook -l pl.UTF-8
165 Ten pakiet zawiera słownik The 2002 CIA World Factbook do używania z
166 serwerem słownika dictd.
173 zcat %{SOURCE5} > data/Dictionary
177 cp -f /usr/share/automake/install-sh .
178 cp -f /usr/share/automake/config.sub .
182 sed 's/^[[:alpha:]]\{2,\}$/:&:/' fjd/journalism.dict | \
183 dictfmt -j -u "http://dsl.org/lit/" -s Journalism journo
186 sed 's/^[[:upper:]]\{2,\}/:&:/' devils.txt | \
187 dictfmt -j -u http://wiretap.area.com/Gopher/Library/Classic/devils.txt \
188 -s "The Devil's Dictionary (1881-1906)" devil
191 egrep -v "^#" slownik | tr -d \[\] | \
192 sed 's/^\([[:alnum:]]\{2,\}\)\ \ /:\1:/' | \
193 dictfmt -j -u "http://ptm.linux.pl/slownik" \
194 -s "Projekt Tlumaczenia Manuali" ptm
197 cd world02-2003-02-15
202 rm -rf $RPM_BUILD_ROOT
203 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd,%{_bindir}}
206 dictdir=$RPM_BUILD_ROOT%{_datadir}/dictd
207 install ptm.* journo.* devil.* $RPM_BUILD_ROOT%{_datadir}/dictd
208 install world02-2003-02-15/world02.* $RPM_BUILD_ROOT%{_datadir}/dictd
210 # jargon has separate package
211 rm -f $RPM_BUILD_ROOT%{_datadir}/dictd/jargon.*
213 for i in easton elements foldoc hitchcock world02 journo ptm devil; do
214 dictprefix=%{_datadir}/dictd/$i
215 echo "# Misc Dictionaries - $i
217 data \"$dictprefix.dict.dz\"
218 index \"$dictprefix.index\"
219 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/$i.dictconf
223 rm -rf $RPM_BUILD_ROOT
226 %service dictd restart
228 %postun -n dict-devil
229 %service dictd restart
232 %service dictd restart
234 %postun -n dict-easton
235 %service dictd restart
237 %post -n dict-elements
238 %service dictd restart
240 %postun -n dict-elements
241 %service dictd restart
244 %service dictd restart
246 %postun -n dict-foldoc
247 %service dictd restart
249 %post -n dict-hitchcock
250 %service dictd restart
252 %postun -n dict-hitchcock
253 %service dictd restart
256 %service dictd restart
258 %postun -n dict-journo
259 %service dictd restart
262 %service dictd restart
265 %service dictd restart
267 %post -n dict-CIAworldbook
268 %service dictd restart
270 %postun -n dict-CIAworldbook
271 %service dictd restart
274 %defattr(644,root,root,755)
275 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/devil.dictconf
276 %{_datadir}/dictd/devil.*
278 %files -n dict-easton
279 %defattr(644,root,root,755)
280 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/easton.dictconf
281 %{_datadir}/dictd/easton.*
283 %files -n dict-elements
284 %defattr(644,root,root,755)
285 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/elements.dictconf
286 %{_datadir}/dictd/elements.*
288 %files -n dict-foldoc
289 %defattr(644,root,root,755)
290 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/foldoc.dictconf
291 %{_datadir}/dictd/foldoc.*
293 %files -n dict-hitchcock
294 %defattr(644,root,root,755)
295 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/hitchcock.dictconf
296 %{_datadir}/dictd/hitchcock.*
298 %files -n dict-journo
299 %defattr(644,root,root,755)
300 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/journo.dictconf
301 %{_datadir}/dictd/journo.*
304 %defattr(644,root,root,755)
305 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/ptm.dictconf
306 %{_datadir}/dictd/ptm.*
308 %files -n dict-CIAworldbook
309 %defattr(644,root,root,755)
310 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dictd/world02.dictconf
311 %{_datadir}/dictd/world02.*