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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30