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