]> git.pld-linux.org Git - packages/dict-misc.git/blob - dict-misc.spec
- adapterized.
[packages/dict-misc.git] / dict-misc.spec
1 %define         dictname misc
2 Summary:        misc dictionaries for DICTD
3 Summary(pl):    Ró¿ne s³owniki dla dictd
4 Name:           dict-%{dictname}
5 Version:        1.5
6 Release:        7
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 URL:            http://www.dict.org/
14 BuildRequires:  autoconf
15 BuildRequires:  dictzip
16 Requires:       dictd
17 Requires:       %{_sysconfdir}/dictd
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 This package contains misc dictionaries for use by the dictionary
22 server in the dictd package.
23
24 %description -l pl
25 Ten pakiet zawiera ró¿ne s³owniki do u¿ywania z serwerem s³ownika
26 dictd.
27
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
32 Requires:       dictd
33 Requires:       %{_sysconfdir}/dictd
34
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
38 in the dictd package.
39
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.
43
44 %package -n dict-easton
45 Summary:        easton dictionary for DICTD
46 Summary(pl):    S³ownik easton dla dictd
47 Group:          Applications/Dictionaries
48 Requires:       dictd
49 Requires:       %{_sysconfdir}/dictd
50
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
55 the dictd package.
56
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.
60
61 %package -n dict-elements
62 Summary:        elements dictionary for DICTD
63 Summary(pl):    S³ownik elements dla dictd
64 Group:          Applications/Dictionaries
65 Requires:       dictd
66 Requires:       %{_sysconfdir}/dictd
67
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
71 in the dictd package.
72
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
76 dictd.
77
78 %package -n dict-foldoc
79 Summary:        foldoc dictionary for DICTD
80 Summary(pl):    S³ownik foldoc dla dictd
81 Group:          Applications/Dictionaries
82 Requires:       dictd
83 Requires:       %{_sysconfdir}/dictd
84
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.
88
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.
92
93 %package -n dict-hitchcock
94 Summary:        hitchcock dictionary for DICTD
95 Summary(pl):    S³ownik hitchcock dla dictd
96 Group:          Applications/Dictionaries
97 Requires:       dictd
98 Requires:       %{_sysconfdir}/dictd
99
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
104 package.
105
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.
109
110 %package -n dict-journo
111 Summary:        Journalism dictionary for DICTD
112 Summary(pl):    S³ownik Journalism dla dictd
113 Group:          Applications/Dictionaries
114 Requires:       dictd
115 Requires:       %{_sysconfdir}/dictd
116
117 %description -n dict-journo
118 This package contains Free Journalism Dictionary for use by the
119 dictionary server in the dictd package.
120
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.
124
125 %package -n dict-ptm
126 Summary:        PTM dictionary for DICTD
127 Summary(pl):    S³ownik PTM dla dictd
128 Group:          Applications/Dictionaries
129 Requires:       dictd
130 Requires:       %{_sysconfdir}/dictd
131
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.
135
136 %description -n dict-ptm -l pl
137 Ten pakiet zawiera s³ownik Projektu T³umaczenia Manuali, do u¿ycia z
138 serwerem dictd.
139
140 %package -n dict-world95
141 Summary:        world95 dictionary for DICTD
142 Summary(pl):    S³ownik world95 dla dictd
143 Group:          Applications/Dictionaries
144 Requires:       dictd
145 Requires:       %{_sysconfdir}/dictd
146
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.
150
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.
154
155 %prep
156 %setup -q -a1
157 cp %{SOURCE2} ./
158 cp %{SOURCE3} ./
159
160 %build
161 %{__autoconf}
162 %configure
163 %{__make} db
164
165 sed -e 's/^[[:alpha:]]\{2,\}$/:&:/' < journo-1.1/journalism.dict \
166         > journalism.txt
167 ./dictfmt -j -u "http://dsl.org/lit/" -s Journalism journo < journalism.txt
168 dictzip journo.dict
169
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
173
174 dictzip devil.dict
175
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
181 dictzip ptm.dict
182
183 %install
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/
188
189 # jargon has separate package
190 rm -f $RPM_BUILD_ROOT%{_datadir}/dictd/jargon.*
191
192 for i in easton elements foldoc hitchcock world95 journo ptm devil; do
193 dictprefix=%{_datadir}/dictd/$i
194 echo "# Misc Dictionaries - $i
195 database $i {
196         data  \"$dictprefix.dict.dz\"
197         index \"$dictprefix.index\"
198 }" > $RPM_BUILD_ROOT%{_sysconfdir}/dictd/$i.dictconf
199 done;
200
201 %clean
202 rm -rf $RPM_BUILD_ROOT
203
204 %post -n dict-devil
205 if [ -f /var/lock/subsys/dictd ]; then
206         /etc/rc.d/init.d/dictd restart 1>&2
207 fi
208
209 %postun -n dict-devil
210 if [ -f /var/lock/subsys/dictd ]; then
211         /etc/rc.d/init.d/dictd restart 1>&2 || true
212 fi
213
214 %post -n dict-easton
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-easton
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-elements
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-elements
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-foldoc
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-foldoc
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-hitchcock
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-hitchcock
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-journo
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-journo
260 if [ -f /var/lock/subsys/dictd ]; then
261         /etc/rc.d/init.d/dictd restart 1>&2
262 fi
263
264 %post -n dict-ptm
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-ptm
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-world95
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-world95
280 if [ -f /var/lock/subsys/dictd ]; then
281         /etc/rc.d/init.d/dictd restart 1>&2 || true
282 fi
283
284 %files -n dict-devil
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.*
288
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.*
293
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.*
298
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.*
303
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.*
308
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.*
313
314 %files -n dict-ptm
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.*
318
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.*
This page took 0.485093 seconds and 3 git commands to generate.