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