/[packages]/cauldron/myspell-dictionaries/current/SPECS/myspell-dictionaries.spec
ViewVC logotype

Contents of /cauldron/myspell-dictionaries/current/SPECS/myspell-dictionaries.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 35973 - (show annotations) (download)
Mon Jan 24 02:16:51 2011 UTC (14 years ago) by spuhler
File size: 19531 byte(s)
imported package myspell-dictionaries
1 %define dictdir %{_datadir}/dict/ooo
2 %define mozdictdir %{_datadir}/dict/mozilla
3
4 %define _binary_payload w9.lzdio
5
6 Summary: MySpell Spelling and Hyphenation dictionaries
7 Name: myspell-dictionaries
8 Version: 1.0.2
9 Release: %mkrel 30
10 License: BSD/GPL/LGPL
11 Group: System/Internationalization
12 URL: http://lingucomponent.openoffice.org/download_dictionary.html
13 Source0: myspell-genpackages.sh
14 BuildArch: noarch
15 BuildRequires: unzip
16 BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
17
18 ##
19 ## Sources for spell checking dictionaries
20 ##
21
22 Source100: bg_BG.zip
23 Source101: ca_ES.zip
24 Source102: hr_HR.zip
25 Source103: cs_CZ.zip
26 Source104: da_DK.zip
27
28 # From https://www.uitwisselplatform.nl/frs/?group_id=9
29 Source105: nl_NL.zip
30
31 Source106: en_CA.zip
32 Source107: en_GB.zip
33 Source108: en_US.zip
34 Source109: fr_FR.zip
35 # This is actually de_DE_comb renamed in order to not mess the current spec.
36 Source110: de_DE.zip
37 Source111: de_CH.zip
38 Source112: el_GR.zip
39 Source113: hu_HU.zip
40 Source114: it_IT.zip
41
42 # (tpg) MySpell dictionary comes from http://www.sjp.pl/slownik/ort/
43 # unzip http://sjp.pl/slownik/ort/sjp-myspell-pl-20080825.zip
44 Source115: pl_PL.zip
45
46 Source116: pt_PT.zip
47 Source117: pt_BR.zip
48 Source118: es_ES.zip
49 # http://www.sk-spell.sk.cx/file_download/63/hunspell-sk-20090330.zip
50 Source119: sk_SK.zip
51 Source120: sv_SE.zip
52 Source121: nb_NO.zip
53 Source122: nn_NO.zip
54 Source123: ga_IE.zip
55 Source124: gl_ES.zip
56 Source125: ru_RU.zip
57 Source126: sl_SI.zip
58 Source127: uk_UA.zip
59 Source128: de_AT.zip
60 Source129: en_AU.zip
61 Source130: es_MX.zip
62 Source131: fo_FO.zip
63 Source132: lt_LT.zip
64
65 Source133: ftp://ftp.linux.ee/pub/openoffice/contrib/dictionaries/et_EE.zip
66
67 # http://sourceforge.net/project/showfiles.php?group_id=91920
68 Source134: af_ZA.zip
69
70 Source135: cy_GB.zip
71 Source136: en_NZ.zip
72 Source137: id_ID.zip
73 Source138: zu_ZA.zip
74 Source139: ro_RO.zip
75 Source140: mi_NZ.zip
76 Source141: sw_KE.zip
77 Source142: ms_MY.zip
78
79 Source143: am_AM.zip
80 Source144: ar_AR.zip
81 Source145: az_AZ.zip
82 Source146: bn_BN.zip
83 Source147: cop_EG.zip
84 Source148: csb_CSB.zip
85 Source149: en_ZA.zip
86 Source150: eo_EO.zip
87 Source151: eu_ES.zip
88 Source152: fa_FA.zip
89 Source153: fa_IR.zip
90 Source155: fj_FJ.zip
91 Source156: fur_IT.zip
92 Source157: fy_NL.zip
93 Source158: gd_GB.zip
94 Source159: gsc_FR.zip
95 Source160: he_IL.zip
96 Source161: hi_IN.zip
97 Source162: hy_AM.zip
98 Source164: is_IS.zip
99 Source163: th_TH.zip
100 Source165: km_KH.zip
101 Source166: ku_TR.zip
102 Source167: la_LA.zip
103 Source168: lv_LV.zip
104 Source169: mg_MG.zip
105 Source170: mn_MN.zip
106 Source171: mr_IN.zip
107 Source172: ne_NP.zip
108 Source173: nr_ZA.zip
109 Source174: ns_ZA.zip
110 Source175: ny_MW.zip
111 Source176: oc_FR.zip
112 Source177: or_OR.zip
113 Source178: pa_PA.zip
114 Source179: qu_BO.zip
115 Source180: rw_RW.zip
116 Source181: ss_ZA.zip
117 Source182: st_ZA.zip
118 Source183: sw_TZ.zip
119 Source184: ta_TA.zip
120 Source185: tet_ID.zip
121 Source186: tl_PH.zip
122 Source187: tn_ZA.zip
123 Source188: ts_ZA.zip
124 Source190: uz_UZ.zip
125 Source191: ve_ZA.zip
126 Source192: vi_VI.zip
127 Source193: xh_ZA.zip
128
129 ##
130 ## Sources for hyphenation dictionaries
131 ##
132
133 # See http://bgoffice.sourceforge.net/ooo/index.html
134 Source200: hyph_bg_BG.zip
135 Source201: hyph_cs_CZ.zip
136 Source202: hyph_da_DK.zip
137 Source203: hyph_de_CH.zip
138 Source204: hyph_de_DE.zip
139 Source205: hyph_el_GR.zip
140 Source206: hyph_en_CA.zip
141 Source207: hyph_en_GB.zip
142 Source208: hyph_en_US.zip
143 Source209: hyph_es_ES.zip
144 Source210: hyph_et_EE.zip
145 Source211: hyph_fi_FI.zip
146 Source212: hyph_fr_BE.zip
147 Source213: hyph_fr_FR.zip
148 Source214: hyph_ga_IE.zip
149 Source215: hyph_hu_HU.zip
150 Source216: hyph_id_ID.zip
151 Source217: hyph_is_IS.zip
152 Source218: hyph_it_IT.zip
153 Source219: hyph_lt_LT.zip
154 Source220: hyph_nl_NL.zip
155 Source221: hyph_pl_PL.zip
156 Source222: hyph_pt_BR.zip
157 Source223: hyph_pt_PT.zip
158 Source224: hyph_ro_RO.zip
159 Source225: hyph_ru_RU.zip
160 Source226: hyph_sk_SK.zip
161 Source227: hyph_sl_SI.zip
162 Source228: hyph_sv_SE.zip
163 Source229: hyph_uk_UA.zip
164
165 ##
166 ## Sources for hyphenation dictionaries
167 ##
168
169 Source300: th_en_US.zip
170 Source301: th_fr_FR.zip
171 # http://it.openoffice.org/contribuire/thesaurus.html (alpha version!!!)
172 Source302: th_it_IT.zip
173 Source303: th_de_DE.zip
174 # http://synonimy.sourceforge.net/
175 Source304: th_pl_PL.zip
176 Source305: th_es_ES.zip
177 ## http://bgoffice.sourceforge.net/ooo/
178 Source306: th_bg_BG.zip
179 # http://www.sk-spell.sk.cx/thesaurus/download/OOo-Thesaurus2-sk_SK.zip
180 # (2009-03-30)
181 Source307: th_sk_SK.zip
182
183 Source309: th_cs_CZ.zip
184 Source310: th_de_CH.zip
185 Source311: th_hu_HU.zip
186 Source312: th_ru_RU.zip
187
188 ##
189 ## Packages information
190 ##
191
192 %description
193 myspell-* packages contain spell checking data to be used by
194 OpenOffice.org or any other MySpell-capable application, like
195 Mozilla. myspell-hyph-* packages contain hyphenation dictionaries for
196 a particular set of languages.
197
198 %{expand:%(/bin/sh %{SOURCE0} af_ZA "DICT " "Afrikaans (Africa)" LGPL 2>/dev/null )}
199 %{expand:%(/bin/sh %{SOURCE0} am_AM "DICT " "Amharic (Ethiopia)" "Check readme" 2>/dev/null )}
200 %{expand:%(/bin/sh %{SOURCE0} ar_AR "DICT " "Arabic (North Africa and Middle East)" "Check readme" 2>/dev/null )}
201 %{expand:%(/bin/sh %{SOURCE0} az_AZ "DICT " "Azerbaijani (Azerbaijan)" "Check readme" 2>/dev/null )}
202 %{expand:%(/bin/sh %{SOURCE0} bg_BG "DICT " "Bulgarian (Bulgaria)" GPL 2>/dev/null )}
203 %{expand:%(/bin/sh %{SOURCE0} bn_BN "DICT " "Bengali (India)" "Check readme" 2>/dev/null )}
204 %{expand:%(/bin/sh %{SOURCE0} ca_ES "DICT " "Catalan" GPL 2>/dev/null )}
205 %{expand:%(/bin/sh %{SOURCE0} cop_EG "DICT " "Coptic (North Africa)" "Check readme" 2>/dev/null )}
206 %{expand:%(/bin/sh %{SOURCE0} cs_CZ "DICT HYPH THES" "Czech (Czech Republic)" GPL 2>/dev/null )}
207 %{expand:%(/bin/sh %{SOURCE0} csb_CSB "DICT " "Kashubian (Poland)" "Check readme" 2>/dev/null )}
208 %{expand:%(/bin/sh %{SOURCE0} cy_GB "DICT " "Welsh (Wales)" GPL 2>/dev/null )}
209 %{expand:%(/bin/sh %{SOURCE0} da_DK "DICT HYPH " "Danish (Denmark)" GPL 2>/dev/null )}
210 %{expand:%(/bin/sh %{SOURCE0} de_AT "DICT " "German (Austria)" GPL 2>/dev/null )}
211 %{expand:%(/bin/sh %{SOURCE0} de_CH "DICT HYPH THES" "German (Switzerland)" GPL 2>/dev/null )}
212 %{expand:%(/bin/sh %{SOURCE0} de_DE "DICT HYPH THES" "German (Germany)" GPL 2>/dev/null )}
213 %{expand:%(/bin/sh %{SOURCE0} el_GR "DICT HYPH " "Greek (Greece)" GPL 2>/dev/null )}
214 %{expand:%(/bin/sh %{SOURCE0} en_AU "DICT " "English (Australian)" LGPL 2>/dev/null )}
215 %{expand:%(/bin/sh %{SOURCE0} en_CA "DICT HYPH " "English (Canada)" "Public Domain" 2>/dev/null )}
216 %{expand:%(/bin/sh %{SOURCE0} en_GB "DICT HYPH " "English (United Kingdom)" LGPL 2>/dev/null )}
217 %{expand:%(/bin/sh %{SOURCE0} en_NZ "DICT " "English (New Zealand)" LGPL 2>/dev/null )}
218 %{expand:%(/bin/sh %{SOURCE0} en_US "DICT HYPH THES" "English (US)" BSD 2>/dev/null )}
219 %{expand:%(/bin/sh %{SOURCE0} en_ZA "DICT " "English (South Africa)" "Check readme" 2>/dev/null )}
220 %{expand:%(/bin/sh %{SOURCE0} eo_EO "DICT " "Esperanto (anywhere)" "Check readme" 2>/dev/null )}
221 %{expand:%(/bin/sh %{SOURCE0} es_ES "DICT HYPH THES" "Spanish (Spain)" GPL 2>/dev/null )}
222 %{expand:%(/bin/sh %{SOURCE0} es_MX "DICT " "Spanish (Mexico)" GPL 2>/dev/null )}
223 %{expand:%(/bin/sh %{SOURCE0} et_EE "DICT HYPH " "Estonian (Estonia)" "free, see http://www.eki.ee/eki/licence.html" 2>/dev/null )}
224 %{expand:%(/bin/sh %{SOURCE0} eu_ES "DICT " "Basque" "Check readme" 2>/dev/null )}
225 %{expand:%(/bin/sh %{SOURCE0} fa_FA "DICT " "Farsi (Iran)" "Check readme" 2>/dev/null )}
226 %{expand:%(/bin/sh %{SOURCE0} fa_IR "DICT " "Persian (Iran)" "Check readme" 2>/dev/null )}
227 %{expand:%(/bin/sh %{SOURCE0} fi_FI " HYPH " "Finnish (Finland)" "freely distributable" 2>/dev/null )}
228 %{expand:%(/bin/sh %{SOURCE0} fj_FJ "DICT " "Fijian (Fiji)" "Check readme" 2>/dev/null )}
229 %{expand:%(/bin/sh %{SOURCE0} fo_FO "DICT " "Faroese (Faroe Islands)" GPL 2>/dev/null )}
230 %{expand:%(/bin/sh %{SOURCE0} fr_BE " HYPH " "French" LGPL 2>/dev/null )}
231 %{expand:%(/bin/sh %{SOURCE0} fr_FR "DICT HYPH THES" "French (France)" GPL 2>/dev/null )}
232 %{expand:%(/bin/sh %{SOURCE0} fur_IT "DICT " "Friulian (north-east Italy)" "Check readme" 2>/dev/null )}
233 %{expand:%(/bin/sh %{SOURCE0} fy_NL "DICT " "Frisian (Netherlands)" "Check readme" 2>/dev/null )}
234 %{expand:%(/bin/sh %{SOURCE0} ga_IE "DICT HYPH " "Irish (Ireland)" GPL 2>/dev/null )}
235 %{expand:%(/bin/sh %{SOURCE0} gd_GB "DICT " "Scottish Gaelic (Scotland)" "Check readme" 2>/dev/null )}
236 %{expand:%(/bin/sh %{SOURCE0} gl_ES "DICT " "Galician (Spain)" GPL 2>/dev/null )}
237 %{expand:%(/bin/sh %{SOURCE0} gsc_FR "DICT " "Gascon (France)" "Check readme" 2>/dev/null )}
238 %{expand:%(/bin/sh %{SOURCE0} he_IL "DICT " "Hebrew (Israel)" "Check readme" 2>/dev/null )}
239 %{expand:%(/bin/sh %{SOURCE0} hi_IN "DICT " "Hindi (India)" "Check readme" 2>/dev/null )}
240 %{expand:%(/bin/sh %{SOURCE0} hr_HR "DICT " "Croatian (Croatia)" GPL 2>/dev/null )}
241 %{expand:%(/bin/sh %{SOURCE0} hu_HU "DICT HYPH THES" "Hungarian (Hungary)" GPL 2>/dev/null )}
242 %{expand:%(/bin/sh %{SOURCE0} hy_AM "DICT " "Armenian (Eastern and Western)" "Check readme" 2>/dev/null )}
243 %{expand:%(/bin/sh %{SOURCE0} id_ID "DICT HYPH " "Indonesian (Indonesia)" GPL 2>/dev/null )}
244 %{expand:%(/bin/sh %{SOURCE0} is_IS "DICT HYPH " "Icelandic (Iceland)" LGPL 2>/dev/null )}
245 %{expand:%(/bin/sh %{SOURCE0} it_IT "DICT HYPH THES" "Italian (Italy)" LGPL/GPL 2>/dev/null )}
246 %{expand:%(/bin/sh %{SOURCE0} km_KH "DICT " "Khmer (Cambodia)" "Check readme" 2>/dev/null )}
247 %{expand:%(/bin/sh %{SOURCE0} ku_TR "DICT " "Kurdish (Iran)" "Check readme" 2>/dev/null )}
248 %{expand:%(/bin/sh %{SOURCE0} la_LA "DICT " "Latin (x-register)" "Check readme" 2>/dev/null )}
249 %{expand:%(/bin/sh %{SOURCE0} lt_LT "DICT HYPH " "Lithuanian (Lithuania)" BSD-like 2>/dev/null )}
250 %{expand:%(/bin/sh %{SOURCE0} lv_LV "DICT " "Latvian (Latvia)" "Check readme" 2>/dev/null )}
251 %{expand:%(/bin/sh %{SOURCE0} mg_MG "DICT " "Malagasy (Madagascar)" "Check readme" 2>/dev/null )}
252 %{expand:%(/bin/sh %{SOURCE0} mi_NZ "DICT " "Maori (New Zealand)" LGPL 2>/dev/null )}
253 %{expand:%(/bin/sh %{SOURCE0} mn_MN "DICT " "Mongolian (Mongolia)" "Check readme" 2>/dev/null )}
254 %{expand:%(/bin/sh %{SOURCE0} mr_IN "DICT " "Marathi (India)" "Check readme" 2>/dev/null )}
255 %{expand:%(/bin/sh %{SOURCE0} ms_MY "DICT " "Malay (Malaysia)" "GNU Free Documentation License" 2>/dev/null )}
256 %{expand:%(/bin/sh %{SOURCE0} nb_NO "DICT " "Norwegian/Bokmel (Norway)" GPL 2>/dev/null )}
257 %{expand:%(/bin/sh %{SOURCE0} ne_NP "DICT " "Nepali (Nepal)" "Check readme" 2>/dev/null )}
258 %{expand:%(/bin/sh %{SOURCE0} nl_NL "DICT HYPH " "Dutch (Netherlands)" LGPL 2>/dev/null )}
259 %{expand:%(/bin/sh %{SOURCE0} nn_NO "DICT " "Norwegian/Nynorsk (Norway)" GPL 2>/dev/null )}
260 %{expand:%(/bin/sh %{SOURCE0} nr_ZA "DICT " "Ndebele (South Africa)" "Check readme" 2>/dev/null )}
261 %{expand:%(/bin/sh %{SOURCE0} ns_ZA "DICT " "Northern Sotho (South Africa)" "Check readme" 2>/dev/null )}
262 %{expand:%(/bin/sh %{SOURCE0} ny_MW "DICT " "Chichewa (Malawi)" "Check readme" 2>/dev/null )}
263 %{expand:%(/bin/sh %{SOURCE0} oc_FR "DICT " "Occitan (France)" "Check readme" 2>/dev/null )}
264 %{expand:%(/bin/sh %{SOURCE0} or_OR "DICT " "Oriya (India)" "Check readme" 2>/dev/null )}
265 %{expand:%(/bin/sh %{SOURCE0} pa_PA "DICT " "Punjabi (India)" "Check readme" 2>/dev/null )}
266 %{expand:%(/bin/sh %{SOURCE0} pl_PL "DICT HYPH THES" "Polish (Poland)" "Creative Commons ShareAlike, http://creativecommons.org/licenses/sa/1.0" 2>/dev/null )}
267 %{expand:%(/bin/sh %{SOURCE0} pt_BR "DICT HYPH " "Portuguese (Brasil)" GPL 2>/dev/null )}
268 %{expand:%(/bin/sh %{SOURCE0} pt_PT "DICT HYPH " "Portuguese (Portugal)" GPL 2>/dev/null )}
269 %{expand:%(/bin/sh %{SOURCE0} qu_BO "DICT " "Quechua (Bolivia)" "Check readme" 2>/dev/null )}
270 %{expand:%(/bin/sh %{SOURCE0} ro_RO "DICT HYPH " "Romanian (Romania)" GPL 2>/dev/null )}
271 %{expand:%(/bin/sh %{SOURCE0} ru_RU "DICT HYPH THES" "Russian (Russia)" GPL 2>/dev/null )}
272 %{expand:%(/bin/sh %{SOURCE0} rw_RW "DICT " "Kinyarwanda (Rwanda)" "Check readme" 2>/dev/null )}
273 %{expand:%(/bin/sh %{SOURCE0} sk_SK "DICT HYPH THES" "Slovak (Slovak Republic)" GPL 2>/dev/null )}
274 %{expand:%(/bin/sh %{SOURCE0} sl_SI "DICT HYPH " "Slovenian (Slovenia)" BSD-like 2>/dev/null )}
275 %{expand:%(/bin/sh %{SOURCE0} ss_ZA "DICT " "Swazi/Swati (South Africa)" "Check readme" 2>/dev/null )}
276 %{expand:%(/bin/sh %{SOURCE0} st_ZA "DICT " "Southern Sotho (South Africa)" "Check readme" 2>/dev/null )}
277 %{expand:%(/bin/sh %{SOURCE0} sv_SE "DICT HYPH " "Swedish (Sweden)" GPL 2>/dev/null )}
278 %{expand:%(/bin/sh %{SOURCE0} sw_KE "DICT " "Kiswahili (Africa)" LGPL 2>/dev/null )}
279 %{expand:%(/bin/sh %{SOURCE0} sw_TZ "DICT " "Kiswahili (East Africa) Extended Wordlist" "Check readme" 2>/dev/null )}
280 %{expand:%(/bin/sh %{SOURCE0} ta_TA "DICT " "Tamil (India)" "Check readme" 2>/dev/null )}
281 %{expand:%(/bin/sh %{SOURCE0} tet_ID "DICT " "Tetum (Indonesia)" "Check readme" 2>/dev/null )}
282 %{expand:%(/bin/sh %{SOURCE0} th_TH "DICT " "Thai (Thailand)" "Check readme" 2>/dev/null )}
283 %{expand:%(/bin/sh %{SOURCE0} tl_PH "DICT " "Tagalog (Philippines)" "Check readme" 2>/dev/null )}
284 %{expand:%(/bin/sh %{SOURCE0} tn_ZA "DICT " "Setswana (Africa)" "Check readme" 2>/dev/null )}
285 %{expand:%(/bin/sh %{SOURCE0} ts_ZA "DICT " "Tsonga (South Africa)" "Check readme" 2>/dev/null )}
286 %{expand:%(/bin/sh %{SOURCE0} uk_UA "DICT HYPH " "Ukrainian (Ukraine)" LGPL 2>/dev/null )}
287 %{expand:%(/bin/sh %{SOURCE0} uz_UZ "DICT " "Uzbek (Uzbekistan)" "Check readme" 2>/dev/null )}
288 %{expand:%(/bin/sh %{SOURCE0} ve_ZA "DICT " "Venda (South Africa)" "Check readme" 2>/dev/null )}
289 %{expand:%(/bin/sh %{SOURCE0} vi_VI "DICT " "Vietnamese (Vietnam)" "Check readme" 2>/dev/null )}
290 %{expand:%(/bin/sh %{SOURCE0} xh_ZA "DICT " "Xhosa (South Africa)" "Check readme" 2>/dev/null )}
291 %{expand:%(/bin/sh %{SOURCE0} zu_ZA "DICT " "Zulu (South Africa)" LGPL 2>/dev/null )}
292
293 %prep
294 %setup -q -T -c
295
296 # Handle spelling dictionaries
297 all_dicts="%{SOURCE100} %{SOURCE101} %{SOURCE102} %{SOURCE103} %{SOURCE104} \
298 %{SOURCE105} %{SOURCE106} %{SOURCE107} %{SOURCE108} %{SOURCE109} \
299 %{SOURCE110} %{SOURCE111} %{SOURCE112} %{SOURCE113} %{SOURCE114} \
300 %{SOURCE115} %{SOURCE116} %{SOURCE117} %{SOURCE118} %{SOURCE119} \
301 %{SOURCE120} %{SOURCE121} %{SOURCE122} %{SOURCE123} %{SOURCE124} \
302 %{SOURCE125} %{SOURCE126} %{SOURCE127} %{SOURCE128} %{SOURCE129} \
303 %{SOURCE130} %{SOURCE131} %{SOURCE132} %{SOURCE133} %{SOURCE134} \
304 %{SOURCE135} %{SOURCE136} %{SOURCE137} %{SOURCE138} %{SOURCE139} \
305 %{SOURCE140} %{SOURCE141} %{SOURCE142} %{SOURCE143} %{SOURCE144} \
306 %{SOURCE145} %{SOURCE146} %{SOURCE147} %{SOURCE148} %{SOURCE149} \
307 %{SOURCE150} %{SOURCE151} %{SOURCE152} %{SOURCE153} \
308 %{SOURCE155} %{SOURCE156} %{SOURCE157} %{SOURCE158} %{SOURCE159} \
309 %{SOURCE160} %{SOURCE161} %{SOURCE162} %{SOURCE163} %{SOURCE164} \
310 %{SOURCE165} %{SOURCE166} %{SOURCE167} %{SOURCE168} %{SOURCE169} \
311 %{SOURCE170} %{SOURCE171} %{SOURCE172} %{SOURCE173} %{SOURCE174} \
312 %{SOURCE175} %{SOURCE176} %{SOURCE177} %{SOURCE178} %{SOURCE179} \
313 %{SOURCE180} %{SOURCE181} %{SOURCE182} %{SOURCE183} %{SOURCE184} \
314 %{SOURCE185} %{SOURCE186} %{SOURCE187} %{SOURCE188} \
315 %{SOURCE190} %{SOURCE191} %{SOURCE192} %{SOURCE193}"
316 for dictfile in $all_dicts
317 do
318 basefile="${dictfile##*/}"
319 langpack="${basefile/.zip/}"
320 echo "LANGPACK=$langpack"
321 mkdir -p doc/DICT/$langpack
322 unzip -d doc/DICT/$langpack $dictfile
323 mkdir -p dic/DICT/$langpack
324 mv doc/DICT/$langpack/$langpack.{aff,dic} dic/DICT/$langpack
325 # Protect against #36685
326 rm -f doc/DICT/$langpack/*.aff 2> /dev/null
327 rm -f doc/DICT/$langpack/*.dic 2> /dev/null
328 # create dummy file if docdir is empty
329 if ! ls doc/DICT/$langpack/* ; then
330 cat > doc/DICT/$langpack/README_$langpack.txt << EOF
331 Spell checking dictionary for $langpack
332 EOF
333 fi
334 # fix permissions
335 chmod 644 doc/DICT/$langpack/*
336 # add symlinks for mozilla apps
337 mkdir -p moz
338 lang=$(echo $langpack|sed 's/_.*//')
339 if [ $(echo $all_dicts |tr ' ' \\n |grep /${lang}_ |wc -l) \> 1 ]; then
340 lang=$(echo $langpack |tr _ -)
341 fi
342 ln -s ../ooo/$langpack.aff moz/$lang.aff
343 ln -s ../ooo/$langpack.dic moz/$lang.dic
344 echo %{mozdictdir}/$lang.aff > $langpack.files
345 echo %{mozdictdir}/$lang.dic >> $langpack.files
346 done
347
348 # Handle spelling dictionaries
349 for hyphfile in %{SOURCE200} %{SOURCE201} %{SOURCE202} %{SOURCE203} %{SOURCE204} \
350 %{SOURCE205} %{SOURCE206} %{SOURCE207} %{SOURCE208} %{SOURCE209} \
351 %{SOURCE210} %{SOURCE211} %{SOURCE212} %{SOURCE213} %{SOURCE214} \
352 %{SOURCE215} %{SOURCE216} %{SOURCE217} %{SOURCE218} %{SOURCE219} \
353 %{SOURCE220} %{SOURCE221} %{SOURCE222} %{SOURCE223} %{SOURCE224} \
354 %{SOURCE225} %{SOURCE226} %{SOURCE227} %{SOURCE228} %{SOURCE229}
355 do
356 basefile="${hyphfile##*/}"
357 langpack="${basefile/.zip/}"
358 echo "LANGPACK/(HPY)=$langpack"
359 mkdir -p doc/HYPH/$langpack
360 unzip -d doc/HYPH/$langpack $hyphfile
361 mkdir -p dic/HYPH/$langpack
362 mv doc/HYPH/$langpack/$langpack.dic dic/HYPH/$langpack
363 # Protect against #36685
364 rm -f doc/HYPH/$langpack/*.dic 2> /dev/null
365 # create dummy file if docdir is empty
366 if ! ls doc/HYPH/$langpack/* ; then
367 cat > doc/HYPH/$langpack/README_$langpack.txt << EOF
368 Hyphenation dictionary for $langpack
369 EOF
370 fi
371 # fix permissions
372 chmod 644 doc/HYPH/$langpack/*
373 done
374
375 # Handle thesaurus dictionaries
376 for thesfile in %{SOURCE300} %{SOURCE301} %{SOURCE302} %{SOURCE303} %{SOURCE304} \
377 %{SOURCE305} %{SOURCE306} %{SOURCE307} %{SOURCE309} \
378 %{SOURCE310} %{SOURCE311} %{SOURCE312}
379 do
380 basefile="${thesfile##*/}"
381 langpack="${basefile/.zip/}"
382 echo "LANGPACK(thes)=$langpack"
383 mkdir -p doc/THES/$langpack
384 unzip -d doc/THES/$langpack $thesfile
385 mkdir -p dic/THES/$langpack
386 mv doc/THES/$langpack/$langpack.{dat,idx} dic/THES/$langpack
387 # Protect against #36685
388 rm -f doc/THES/$langpack/*.dat 2> /dev/null
389 rm -f doc/THES/$langpack/*.idx 2> /dev/null
390 # create dummy file if docdir is empty
391 if ! ls doc/THES/$langpack/* ; then
392 cat > doc/THES/$langpack/README_$langpack.txt << EOF
393 Thesaurus dictionary for $langpack
394 EOF
395 fi
396 # fix permissions
397 chmod 644 doc/THES/$langpack/*
398 done
399
400 # protect against #36685
401 [ -n "$(find doc/ -name '*.dic')" ] && exit 1
402 [ -n "$(find doc/ -name '*.aff')" ] && exit 1
403 [ -n "$(find doc/ -name '*.dat')" ] && exit 1
404 [ -n "$(find doc/ -name '*.idx')" ] && exit 1
405
406 %build
407
408 %install
409 rm -rf %{buildroot}
410 mkdir -p %{buildroot}%{dictdir}/
411
412 # Install spell checking dictionaries
413 for file in dic/DICT/*/*; do
414 install -m 644 $file %{buildroot}%{dictdir}/${file##*/}
415 done
416
417 # Install hyphenation dictionaries
418 for file in dic/HYPH/*/*; do
419 install -m 644 $file %{buildroot}%{dictdir}/${file##*/}
420 done
421
422 # Install thesaurus dictionaries
423 for file in dic/THES/*/*; do
424 install -m 644 $file %{buildroot}%{dictdir}/${file##*/}
425 done
426
427 # #42885
428 cd %{buildroot}%{dictdir}
429 for file in *.idx *.dat; do
430 ln -s $file `echo $file|sed 's/\(.*\)\.\(idx\|dat\)/\1_v2\.\2/' `
431 done
432 ln -s th_en_US.idx th_en_GB_v2.idx
433 ln -s th_en_US.dat th_en_GB_v2.dat
434 cd -
435
436 # Install the spell checking dictionary symlinks for mozilla apps
437 mkdir -p %{buildroot}%{mozdictdir}/
438
439 for file in moz/*; do
440 cp -P $file %{buildroot}%{mozdictdir}/${file##*/}
441 done
442
443 %clean
444 rm -rf %{buildroot}
445
446 %nil
447
448

  ViewVC Help
Powered by ViewVC 1.1.30