/[packages]/cauldron/firefox-beta-l10n/current/SPECS/firefox-beta-l10n.spec
ViewVC logotype

Contents of /cauldron/firefox-beta-l10n/current/SPECS/firefox-beta-l10n.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 793642 - (show annotations) (download)
Mon Oct 27 02:30:32 2014 UTC (7 years, 1 month ago) by fwang
File size: 6700 byte(s)
34.0b3
1 %define debug_package %{nil}
2
3 %define oname firefox-beta
4 %define betaver b3
5
6 %define xpidir http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}%{betaver}/linux-i686/xpi/
7
8 # Supported l10n language lists
9 %define langlist af ar ast be bg bn_IN bn_BD br bs ca cs cy da de el en_GB en_ZA eo es_AR es_CL es_ES es_MX et eu fa fi fr fy ga_IE gd gl gu_IN he hi hr hu hy id is it ja kk ko kn ku lt lv mai mk ml mr nb_NO nl nn_NO or pa_IN pl pt_BR pt_PT ro ru si sk sl sq sr sv_SE ta te th tr uk vi zh_CN zh_TW
10
11 # Disabled l10n languages, for any reason
12 # - no locales-XX package:
13 # uu ak rm son
14
15 # Disabled myspell dicts, for any reason
16 %define disabled_dict_langlist ar be bn br br_FR es_AR eu fi fy gl gu_IN he id ja ka kn ko mk pa_IN te tr zh_CN zh_TW
17
18 # Language descriptions
19 %define language_ak ak
20 %define langname_ak Akan
21 %define language_ar ar
22 %define langname_ar Arabic
23 %define language_ast ast
24 %define langname_ast Asturian
25 %define language_af af
26 %define langname_af Afrikaans
27 %define language_be be
28 %define langname_be Belarusian
29 %define language_bg bg
30 %define langname_bg Bulgarian
31 %define language_bn_BD bn-BD
32 %define langname_bn_BD Bengali
33 %define language_bn_IN bn-IN
34 %define langname_bn_IN Bengali
35 %define language_br br
36 %define langname_br Breton
37 %define language_bs bs
38 %define langname_bs Bosnian
39 %define language_ca ca
40 %define langname_ca Catalan
41 %define language_cs cs
42 %define langname_cs Czech
43 %define language_cy cy
44 %define langname_cy Welsh
45 %define language_da da
46 %define langname_da Dansk
47 %define language_de de
48 %define langname_de German
49 %define language_el el
50 %define langname_el Greek
51 %define language_en_GB en-GB
52 %define langname_en_GB British English
53 %define language_en_ZA en-ZA
54 %define langname_en_ZA English (South Africa)
55 %define language_eo eo
56 %define langname_eo Esperanto
57 %define language_es_AR es-AR
58 %define langname_es_AR Spanish (Argentina)
59 %define language_es_CL es-CL
60 %define langname_es_CL Spanish (Chile)
61 %define language_es_ES es-ES
62 %define langname_es_ES Spanish
63 %define language_es_MX es-MX
64 %define langname_es_MX Spanish (Mexico)
65 %define language_et et
66 %define langname_et Estonian
67 %define language_eu eu
68 %define langname_eu Basque
69 %define language_fa fa
70 %define langname_fa Farsi
71 %define language_fi fi
72 %define langname_fi Finnish
73 %define language_fr fr
74 %define langname_fr French
75 %define language_fy fy-NL
76 %define langname_fy Frisian
77 %define language_ga_IE ga-IE
78 %define langname_ga_IE Irish
79 %define language_gd gd
80 %define langname_gd Scottish Gaelic
81 %define language_gl gl
82 %define langname_gl Galician
83 %define language_gu_IN gu-IN
84 %define langname_gu_IN Gujarati
85 %define language_he he
86 %define langname_he Hebrew
87 %define language_hi hi-IN
88 %define langname_hi Hindi
89 %define language_hr hr
90 %define langname_hr Croatian
91 %define language_hu hu
92 %define langname_hu Hungarian
93 %define language_hy hy-AM
94 %define langname_hy Armenian
95 %define language_id id
96 %define langname_id Indonesian
97 %define language_is is
98 %define langname_is Icelandic
99 %define language_it it
100 %define langname_it Italian
101 %define language_ja ja
102 %define langname_ja Japanese
103 %define language_kk kk
104 %define langname_kk Kazakh
105 %define language_ko ko
106 %define langname_ko Korean
107 %define language_kn kn
108 %define langname_kn Kannada
109 %define language_ku ku
110 %define langname_ku Kurdish
111 %define language_lt lt
112 %define langname_lt Lithuanian
113 %define language_lv lv
114 %define langname_lv Latvian
115 %define language_mai mai
116 %define langname_mai Maithili
117 %define language_mk mk
118 %define langname_mk Macedonian
119 %define language_ml ml
120 %define langname_ml Malayalam
121 %define language_mr mr
122 %define langname_mr Marathi
123 %define language_nb_NO nb-NO
124 %define langname_nb_NO Norwegian Bokmaal
125 %define language_nn_NO nn-NO
126 %define langname_nn_NO Norwegian Nynorsk
127 %define language_nl nl
128 %define langname_nl Dutch
129 %define language_nso nso
130 %define langname_nso Northern Sotho
131 %define language_or or
132 %define langname_or Oriya
133 %define language_pa_IN pa-IN
134 %define langname_pa_IN Punjabi (gurmukhi)
135 %define language_pl pl
136 %define langname_pl Polish
137 %define language_pt_BR pt-BR
138 %define langname_pt_BR Brazilian portuguese
139 %define language_pt_PT pt-PT
140 %define langname_pt_PT Portuguese
141 %define language_rm rm
142 %define langname_rm Rumantsch
143 %define language_ro ro
144 %define langname_ro Romanian
145 %define language_ru ru
146 %define langname_ru Russian
147 %define language_si si
148 %define langname_si Sinhala
149 %define language_sk sk
150 %define langname_sk Slovak
151 %define language_sl sl
152 %define langname_sl Slovenian
153 %define language_son son
154 %define langname_son SoŇčay
155 %define language_sq sq
156 %define langname_sq Shqipe
157 %define language_sr sr
158 %define langname_sr Serbian
159 %define language_sv_SE sv-SE
160 %define langname_sv_SE Swedish
161 %define language_ta ta
162 %define langname_ta Tamil
163 %define language_te te
164 %define langname_te Telugu
165 %define language_th th
166 %define langname_th Thai
167 %define language_tr tr
168 %define langname_tr Turkish
169 %define language_uk uk
170 %define langname_uk Ukrainian
171 %define language_uk_UA uk-UA
172 %define langname_uk_UA Ukrainian
173 %define language_vi vi
174 %define langname_vi Vietnamese
175 %define language_zh_CN zh-CN
176 %define langname_zh_CN Simplified Chinese
177 %define language_zh_TW zh-TW
178 %define langname_zh_TW Traditional Chinese
179 %define language_zu zu
180 %define langname_zu Zulu
181
182 # --- Danger line ---
183
184 # Defaults (all languages enabled by default)
185 # dicts
186 %{expand:%(for lang in %langlist; do echo "%%define with_dict_$lang 0"; done)}
187 %{expand:%(for lang in %disabled_dict_langlist; do echo "%%define with_dict_$lang 0"; done)}
188
189 # Locales
190 %{expand:%(for lang in %langlist; do echo "%%global locale_$lang `echo $lang | cut -d _ -f 1` "; done)}
191
192 Summary: Localizations for Firefox (virtual package)
193 Name: %{oname}-l10n
194 Version: 34.0
195 Release: %mkrel -c %betaver 1
196 License: GPL
197 Group: Networking/WWW
198 Url: http://www.firefox.com/
199 # Language package template
200 Source0: %{name}-template.in
201 # l10n sources
202 %{expand:%(\
203 i=1; \
204 for lang in %langlist; do\
205 echo "%%{expand:Source$i: %{xpidir}/%%{language_$lang}.xpi}";\
206 i=$[i+1];\
207 done\
208 )
209 }
210
211 %description
212 Localizations for Firefox web browser.
213
214 # Expand all languages packages.
215 %{expand:%(\
216 for lang in %langlist; do\
217 echo "%%{expand:%%(sed "s!__LANG__!$lang!g" %{_sourcedir}/%{name}-template.in 2> /dev/null)}";\
218 done\
219 )
220 }
221
222 %install
223
224 mkdir -p %buildroot%{_libdir}/firefox-beta-%{version}/extensions/
225
226 # Convert rpm macros to bash variables
227 %{expand:%(for lang in %langlist; do echo "language_$lang=%%{language_$lang}"; done)}
228
229 # Install all languages
230 for lang in %langlist; do
231 language="language_$lang"
232 language=${!language}
233
234 # l10n
235 cp %_sourcedir/${language}.xpi %buildroot%{_libdir}/firefox-beta-%{version}/extensions/langpack-${language}@firefox.mozilla.org.xpi
236
237 done

  ViewVC Help
Powered by ViewVC 1.1.28