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