]> git.pld-linux.org Git - packages/dict-misc.git/blob - dict-misc.spec
998da486de48eaed0f09f642de5237c1fb29611a
[packages/dict-misc.git] / dict-misc.spec
1 %define         dictname misc
2 Summary:        Miscellaneous dictionaries for DICTD
3 Summary(pl):    Ró¿ne s³owniki dla dictd
4 Name:           dict-%{dictname}
5 Version:        1.5
6 Release:        11
7 License:        GPL
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 Source3:        http://ptm.linux.pl/slownik
15 Source4:        http://www.prime-project.org/dict/dict-world02--2003-02-15.tar.gz
16 # Source4-md5:  344bd453d17536e281f1874cfd318c7d
17 URL:            http://www.dict.org/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  dictfmt
21 BuildRequires:  dictzip
22 Requires:       dictd
23 Requires:       %{_sysconfdir}/dictd
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 This package contains misc dictionaries for use by the dictionary
28 server in the dictd package.
29
30 %description -l pl
31 Ten pakiet zawiera ró¿ne s³owniki do u¿ywania z serwerem s³ownika
32 dictd.
33
34 %package -n dict-devil
35 Summary:        Devil's dictionary for DICTD
36 Summary(pl):    S³ownik Devil's Dictionary dla dictd
37 Group:          Applications/Dictionaries
38 Requires:       dictd
39 Requires:       %{_sysconfdir}/dictd
40
41 %description -n dict-devil
42 This package contains The Devil's Dictionary, a cynical and irreverent
43 dictionary of common words, formatted for use by the dictionary server
44 in the dictd package.
45
46 %description -n dict-devil -l pl
47 S³ownik The Devil's Dictionary, zawieraj±cy cyniczne i lekcewa¿±ce
48 opisy s³ów - do u¿ywania z serwerem s³ownika dictd.
49
50 %package -n dict-easton
51 Summary:        Easton's dictionary for DICTD
52 Summary(pl):    S³ownik Eastona dla dictd
53 Group:          Applications/Dictionaries
54 Requires:       dictd
55 Requires:       %{_sysconfdir}/dictd
56
57 %description -n dict-easton
58 This package contains Easton's 1897 Bible Dictionary, based on M.G.
59 Easton M.A., D.D.'s Illustrated Bible Dictionary, Third Edition,
60 published by Thomas Nelson, 1897, for use by the dictionary server in
61 the dictd package.
62
63 %description -n dict-easton -l pl
64 Ten pakiet zawiera s³ownik Easton's 1897 Bible Dictionary do u¿ywania
65 z serwerem s³ownika dictd.
66
67 %package -n dict-elements
68 Summary:        Elements dictionary for DICTD
69 Summary(pl):    S³ownik pierwiastków dla dictd
70 Group:          Applications/Dictionaries
71 Requires:       dictd
72 Requires:       %{_sysconfdir}/dictd
73
74 %description -n dict-elements
75 This package contains a freely-distributed database of elemental
76 information, edited by Jay Kominek, for use by the dictionary server
77 in the dictd package.
78
79 %description -n dict-elements -l pl
80 Ten pakiet zawiera bazê danych informacji o pierwiastkach,
81 przygotowan± przez Jaya Kominka, do u¿ywania z serwerem s³ownika
82 dictd.
83
84 %package -n dict-foldoc
85 Summary:        The Free On-line Dictionary of Computing for DICTD
86 Summary(pl):    Darmowy s³ownik z dziedziny obliczeñ dla dictd
87 Group:          Applications/Dictionaries
88 Requires:       dictd
89 Requires:       %{_sysconfdir}/dictd
90
91 %description -n dict-foldoc
92 This package contains The Free On-line Dictionary of Computing for use
93 by the dictionary server in the dictd package.
94
95 %description -n dict-foldoc -l pl
96 Ten pakiet zawiera s³ownik The Free On-line Dictionary of Computing do
97 u¿ywania z serwerem s³ownika dictd.
98
99 %package -n dict-hitchcock
100 Summary:        Hitchcock's dictionary for DICTD
101 Summary(pl):    S³ownik Hitchcocka dla dictd
102 Group:          Applications/Dictionaries
103 Requires:       dictd
104 Requires:       %{_sysconfdir}/dictd
105
106 %description -n dict-hitchcock
107 This package contains Hitchcock's Bible Names Dictionary, derived from
108 Hitchcock's New and Complete Analysis of the Holy Bible, published in
109 the late 1800's, for use by the dictionary server in the dictd
110 package.
111
112 %description -n dict-hitchcock -l pl
113 Ten pakiet zawiera s³ownik Hitchcock's Bible Names Dictionary do
114 u¿ywania z serwerem s³ownika dictd.
115
116 %package -n dict-journo
117 Summary:        Journalism dictionary for DICTD
118 Summary(pl):    S³ownik Journalism dla dictd
119 Group:          Applications/Dictionaries
120 Requires:       dictd
121 Requires:       %{_sysconfdir}/dictd
122
123 %description -n dict-journo
124 This package contains Free Journalism Dictionary for use by the
125 dictionary server in the dictd package.
126
127 %description -n dict-journo -l pl
128 Ten pakiet zawiera s³ownik Free Journalism Dictionary do u¿ywania z
129 serwerem s³ownika dictd.
130
131 %package -n dict-ptm
132 Summary:        PTM dictionary for DICTD
133 Summary(pl):    S³ownik PTM dla dictd
134 Group:          Applications/Dictionaries
135 Requires:       dictd
136 Requires:       %{_sysconfdir}/dictd
137
138 %description -n dict-ptm
139 This package contains dictionary created by Projekt Tlumaczenia
140 Manuali for use by the dicitonary server in the dictd package.
141
142 %description -n dict-ptm -l pl
143 Ten pakiet zawiera s³ownik Projektu T³umaczenia Manuali, do u¿ycia z
144 serwerem dictd.
145
146 %package -n dict-CIAworldbook
147 Summary:        CIAworldbook dictionary for DICTD
148 Summary(pl):    S³ownik CIAworldbook dla dictd
149 Group:          Applications/Dictionaries
150 URL:            http://www.prime-project.org/dict/
151 Requires:       dictd
152 Requires:       %{_sysconfdir}/dictd
153 Obsoletes:      dict-world95
154
155 %description -n dict-CIAworldbook
156 This package contains The 2002 CIA World Factbook for use by the
157 dictionary server in the dictd package.
158
159 %description -n dict-CIAworldbook -l pl
160 Ten pakiet zawiera s³ownik The 2002 CIA World Factbook do u¿ywania z
161 serwerem s³ownika dictd.
162
163 %prep
164 %setup -q -a1 -a4
165 cp %{SOURCE2} ./
166 cp %{SOURCE3} ./
167
168 %build
169 %{__autoconf}
170 cp -f %{_datadir}/automake/install-sh .
171 cp -f %{_datadir}/automake/config.sub .
172 %configure
173 %{__make} db
174
175 sed 's/^[[:alpha:]]\{2,\}$/:&:/' journo-1.1/journalism.dict | \
176         dictfmt -j -u "http://dsl.org/lit/" -s Journalism journo
177 dictzip journo.dict
178
179 sed 's/^[[:upper:]]\{2,\}/:&:/' devils.txt | \
180         dictfmt -j -u http://wiretap.area.com/Gopher/Library/Classic/devils.txt \
181         -s "The Devil's Dictionary (1881-1906)" devil
182 dictzip devil.dict
183
184 #egrep -v "^#" slownik | tr -d \[\] | tr ê󱶳¿¼æñ eoaslzzcn | \
185 egrep -v "^#" slownik | tr -d \[\] | \
186         sed 's/^\([[:alnum:]]\{2,\}\)\ \ /:\1:/' | \
187         dictfmt -j -u "http://ptm.linux.pl/slownik" \
188         -s "Projekt Tlumaczenia Manuali" ptm
189 dictzip ptm.dict
190
191 cd world02-2003-02-15
192 dictzip world02.dict
193 cd ..
194
195 %install
196 rm -rf $RPM_BUILD_ROOT
197 install -d $RPM_BUILD_ROOT{%{_datadir}/dictd/,%{_sysconfdir}/dictd,%{_bindir}}
198 %{__make} install dictdir=$RPM_BUILD_ROOT%{_datadir}/dictd
199 install ptm.* journo.* devil.* $RPM_BUILD_ROOT%{_datadir}/dictd
200 install world02-2003-02-15/world02.* $RPM_BUILD_ROOT%{_datadir}/dictd
201
202 # jargon has separate package
203 rm -f $RPM_BUILD_ROOT%{_datadir}/dictd/jargon.*
204
205 for i in easton elements foldoc hitchcock world02 journo ptm devil; do
206 dictprefix=%{_datadir}/dictd/$i
207 echo "# Misc Dictionaries - $i
208 database $i {
209         data  \"$dictprefix.dict.dz\"
210         index \"$dictprefix.index\"
211 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/$i.dictconf
212 done;
213
214 %clean
215 rm -rf $RPM_BUILD_ROOT
216
217 %post -n dict-devil
218 if [ -f /var/lock/subsys/dictd ]; then
219         /etc/rc.d/init.d/dictd restart 1>&2
220 fi
221
222 %postun -n dict-devil
223 if [ -f /var/lock/subsys/dictd ]; then
224         /etc/rc.d/init.d/dictd restart 1>&2 || true
225 fi
226
227 %post -n dict-easton
228 if [ -f /var/lock/subsys/dictd ]; then
229         /etc/rc.d/init.d/dictd restart 1>&2
230 fi
231
232 %postun -n dict-easton
233 if [ -f /var/lock/subsys/dictd ]; then
234         /etc/rc.d/init.d/dictd restart 1>&2 || true
235 fi
236
237 %post -n dict-elements
238 if [ -f /var/lock/subsys/dictd ]; then
239         /etc/rc.d/init.d/dictd restart 1>&2
240 fi
241
242 %postun -n dict-elements
243 if [ -f /var/lock/subsys/dictd ]; then
244         /etc/rc.d/init.d/dictd restart 1>&2 || true
245 fi
246
247 %post -n dict-foldoc
248 if [ -f /var/lock/subsys/dictd ]; then
249         /etc/rc.d/init.d/dictd restart 1>&2
250 fi
251
252 %postun -n dict-foldoc
253 if [ -f /var/lock/subsys/dictd ]; then
254         /etc/rc.d/init.d/dictd restart 1>&2 || true
255 fi
256
257 %post -n dict-hitchcock
258 if [ -f /var/lock/subsys/dictd ]; then
259         /etc/rc.d/init.d/dictd restart 1>&2
260 fi
261
262 %postun -n dict-hitchcock
263 if [ -f /var/lock/subsys/dictd ]; then
264         /etc/rc.d/init.d/dictd restart 1>&2 || true
265 fi
266
267 %post -n dict-journo
268 if [ -f /var/lock/subsys/dictd ]; then
269         /etc/rc.d/init.d/dictd restart 1>&2
270 fi
271
272 %postun -n dict-journo
273 if [ -f /var/lock/subsys/dictd ]; then
274         /etc/rc.d/init.d/dictd restart 1>&2
275 fi
276
277 %post -n dict-ptm
278 if [ -f /var/lock/subsys/dictd ]; then
279         /etc/rc.d/init.d/dictd restart 1>&2
280 fi
281
282 %postun -n dict-ptm
283 if [ -f /var/lock/subsys/dictd ]; then
284         /etc/rc.d/init.d/dictd restart 1>&2
285 fi
286
287 %post -n dict-CIAworldbook
288 if [ -f /var/lock/subsys/dictd ]; then
289         /etc/rc.d/init.d/dictd restart 1>&2
290 fi
291
292 %postun -n dict-CIAworldbook
293 if [ -f /var/lock/subsys/dictd ]; then
294         /etc/rc.d/init.d/dictd restart 1>&2 || true
295 fi
296
297 %files -n dict-devil
298 %defattr(644,root,root,755)
299 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/devil.dictconf
300 %{_datadir}/dictd/devil.*
301
302 %files -n dict-easton
303 %defattr(644,root,root,755)
304 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/easton.dictconf
305 %{_datadir}/dictd/easton.*
306
307 %files -n dict-elements
308 %defattr(644,root,root,755)
309 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/elements.dictconf
310 %{_datadir}/dictd/elements.*
311
312 %files -n dict-foldoc
313 %defattr(644,root,root,755)
314 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/foldoc.dictconf
315 %{_datadir}/dictd/foldoc.*
316
317 %files -n dict-hitchcock
318 %defattr(644,root,root,755)
319 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/hitchcock.dictconf
320 %{_datadir}/dictd/hitchcock.*
321
322 %files -n dict-journo
323 %defattr(644,root,root,755)
324 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/journo.dictconf
325 %{_datadir}/dictd/journo.*
326
327 %files -n dict-ptm
328 %defattr(644,root,root,755)
329 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/ptm.dictconf
330 %{_datadir}/dictd/ptm.*
331
332 %files -n dict-CIAworldbook
333 %defattr(644,root,root,755)
334 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/dictd/world02.dictconf
335 %{_datadir}/dictd/world02.*
This page took 0.692089 seconds and 2 git commands to generate.