]> git.pld-linux.org Git - packages/dict-misc.git/blob - dict-misc.spec
- unify
[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:        14
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 /usr/share/automake/install-sh .
171 cp -f /usr/share/automake/config.sub .
172 %configure
173 %{__make} db
174
175 sed 's/^[[:alpha:]]\{2,\}$/:&:/' fjd/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
199 %{__make} install \
200         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.076856 seconds and 3 git commands to generate.