/[packages]/updates/2/firefox-l10n/current/SPECS/firefox-l10n.spec
ViewVC logotype

Contents of /updates/2/firefox-l10n/current/SPECS/firefox-l10n.spec

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30