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