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