2 # - do something with *.rdf file, there if file conflict with other lang packages
3 # - 54 more languages (3.5.6):
4 # af ar as be bg bn-BD bn-IN cy en-GB eo es-AR es-CL es-MX et eu fa fy-NL
5 # ga-IE gl gu-IN he hi-IN hr id is kk kn ko lv mk ml mn mr nb-NO nl nn-NO
6 # oc or pa-IN pt-BR pt-PT rm si sq sr ta-LK ta te th tr uk vi zh-CN zh-TW
12 U=http://releases.mozilla.org/pub/mozilla.org/firefox/releases/$V/linux-i686/
13 curl -s $U | sed -ne 's,.*href="\([^"]\+\)/".*,'"$U"'xpi/\1.xpi,p'
16 Summary: Language packs for Iceweasel
17 Summary(pl.UTF-8): Pakiety językowe dla Iceweasela
18 Name: iceweasel-languages
21 License: MPL 1.1 or GPL v2+ or LGPL v2.1+
23 Source0: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/ca.xpi
24 # Source0-md5: a14cfdc11a22ecf3088266ae118622af
25 Source1: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/cs.xpi
26 # Source1-md5: 87b5c27577a03b45d63fcaeb400505e1
27 Source2: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/da.xpi
28 # Source2-md5: 82596a3d3f13ed512b1523c68c319a24
29 Source3: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/de.xpi
30 # Source3-md5: a54df0d22c3abc929dc5e439397cd8b0
31 Source4: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/el.xpi
32 # Source4-md5: 938052ce07eb1fe578441f2eb2c63311
33 Source5: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/es-ES.xpi
34 # Source5-md5: b76887cfdbb4799e7223f114804886ea
35 Source6: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/fi.xpi
36 # Source6-md5: 044ac72fa98b1477e09c2c559aadfd2b
37 Source7: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/fr.xpi
38 # Source7-md5: 29c225e02a7ac3539ccd485e867dd2c2
39 Source8: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/hu.xpi
40 # Source8-md5: 759d081f8893f2f7762f7f510081a93d
41 Source9: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/it.xpi
42 # Source9-md5: 01725f29ca4f16ff8afcb66f0e25087e
43 Source10: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/ja.xpi
44 # Source10-md5: 33714941a1217179f6583098fc1f4ee0
45 Source11: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/ku.xpi
46 # Source11-md5: 04725b241782af2c6431ad2eeca697db
47 Source12: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/lt.xpi
48 # Source12-md5: b682e3492710704137cf1b53383e51bc
49 Source13: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/pl.xpi
50 # Source13-md5: 88e51142f5059a0b191680c90d29b53a
51 Source14: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/ro.xpi
52 # Source14-md5: 9b6e21843b73b1425051b4811978d1ad
53 Source15: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/ru.xpi
54 # Source15-md5: 5c8d47365cb32381bf4e60c160299952
55 Source16: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/sk.xpi
56 # Source16-md5: 75c4e067234c7f98f6ef6705dc7f7c32
57 Source17: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/sl.xpi
58 # Source17-md5: afaca21955879f438892f32fce7e78b2
59 Source18: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/sv-SE.xpi
60 # Source18-md5: f7548f2ce58acb63fbde09a46c4fe767
61 URL: http://www.mozilla.org/
62 BuildRequires: sed >= 4.0
66 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68 %define iceweaseldir %{_datadir}/iceweasel
71 Language packs for Iceweasel.
73 %description -l pl.UTF-8
74 Pakiety językowe dla Iceweasela.
76 %package -n iceweasel-lang-ca
77 Summary: Catalan resources for Iceweasel
78 Summary(ca.UTF-8): Recursos catalans per Iceweasel
79 Summary(es.UTF-8): Recursos catalanes para Iceweasel
80 Summary(pl.UTF-8): Katalońskie pliki językowe dla Iceweasela
82 URL: http://www.softcatala.org/projectes/mozilla/
83 Requires: iceweasel >= %{version}
84 Provides: iceweasel-lang-resources = %{version}
85 Obsoletes: mozilla-firefox-lang-ca
87 %description -n iceweasel-lang-ca
88 Catalan resources for Iceweasel.
90 %description -n iceweasel-lang-ca -l ca.UTF-8
91 Recursos catalans per Iceweasel.
93 %description -n iceweasel-lang-ca -l es.UTF-8
94 Recursos catalanes para Iceweasel.
96 %description -n iceweasel-lang-ca -l pl.UTF-8
97 Katalońskie pliki językowe dla Iceweasela.
99 %package -n iceweasel-lang-cs
100 Summary: Czech resources for Iceweasel
101 Summary(pl.UTF-8): Czeskie pliki językowe dla Iceweasela
103 URL: http://www.mozilla.org/
104 Requires: iceweasel >= %{version}
105 Provides: iceweasel-lang-resources = %{version}
106 Obsoletes: mozilla-firefox-lang-cs
108 %description -n iceweasel-lang-cs
109 Czech resources for Iceweasel.
111 %description -n iceweasel-lang-cs -l pl.UTF-8
112 Czeskie pliki językowe dla Iceweasela.
114 %package -n iceweasel-lang-da
115 Summary: Danish resources for Iceweasel
116 Summary(pl.UTF-8): Duńskie pliki językowe dla Iceweasela
118 URL: http://www.mozilla.org/
119 Requires: iceweasel >= %{version}
120 Provides: iceweasel-lang-resources = %{version}
121 Obsoletes: mozilla-firefox-lang-da
123 %description -n iceweasel-lang-da
124 Danish resources for Iceweasel.
126 %description -n iceweasel-lang-da -l pl.UTF-8
127 Duńskie pliki językowe dla Iceweasela.
129 %package -n iceweasel-lang-de
130 Summary: German resources for Iceweasel
131 Summary(pl.UTF-8): Niemieckie pliki językowe dla Iceweasela
133 URL: http://www.mozilla.org/
134 Requires: iceweasel >= %{version}
135 Provides: iceweasel-lang-resources = %{version}
136 Obsoletes: mozilla-firefox-lang-de
138 %description -n iceweasel-lang-de
139 German resources for Iceweasel.
141 %description -n iceweasel-lang-de -l pl.UTF-8
142 Niemieckie pliki językowe dla Iceweasela.
144 %package -n iceweasel-lang-el
145 Summary: Greek resources for Iceweasel
146 Summary(pl.UTF-8): Greckie pliki językowe dla Iceweasela
148 URL: http://www.mozilla.org/
149 Requires: iceweasel >= %{version}
150 Provides: iceweasel-lang-resources = %{version}
151 Obsoletes: mozilla-firefox-lang-el
153 %description -n iceweasel-lang-el
154 Greek resources for Iceweasel.
156 %description -n iceweasel-lang-el -l pl.UTF-8
157 Greckie pliki językowe dla Iceweasela.
159 %package -n iceweasel-lang-es
160 Summary: Spanish resources for Iceweasel
161 Summary(ca.UTF-8): Recursos espanyols per Iceweasel
162 Summary(es.UTF-8): Recursos españoles para Iceweasel
163 Summary(pl.UTF-8): Hiszpańskie pliki językowe dla Iceweasela
165 URL: http://www.mozilla.org/
166 Requires: iceweasel >= %{version}
167 Provides: iceweasel-lang-resources = %{version}
168 Obsoletes: mozilla-firefox-lang-es
170 %description -n iceweasel-lang-es
171 Spanish resources for Iceweasel.
173 %description -n iceweasel-lang-es -l ca.UTF-8
174 Recursos espanyols per Iceweasel.
176 %description -n iceweasel-lang-es -l es.UTF-8
177 Recursos españoles para Iceweasel.
179 %description -n iceweasel-lang-es -l pl.UTF-8
180 Hiszpańskie pliki językowe dla Iceweasela.
182 %package -n iceweasel-lang-fi
183 Summary: Finnish resources for Iceweasel
184 Summary(pl.UTF-8): Fińskie pliki językowe dla Iceweasela
186 URL: http://www.mozilla.org/
187 Requires: iceweasel >= %{version}
188 Provides: iceweasel-lang-resources = %{version}
189 Obsoletes: mozilla-firefox-lang-fi
191 %description -n iceweasel-lang-fi
192 Finnish resources for Iceweasel.
194 %description -n iceweasel-lang-fi -l pl.UTF-8
195 Fińskie pliki językowe dla Iceweasela.
197 %package -n iceweasel-lang-fr
198 Summary: French resources for Iceweasel
199 Summary(pl.UTF-8): Francuskie pliki językowe dla Iceweasela
201 URL: http://www.mozilla.org/
202 Requires: iceweasel >= %{version}
203 Provides: iceweasel-lang-resources = %{version}
204 Obsoletes: mozilla-firefox-lang-fr
206 %description -n iceweasel-lang-fr
207 French resources for Iceweasel.
209 %description -n iceweasel-lang-fr -l pl.UTF-8
210 Francuskie pliki językowe dla Iceweasela.
212 %package -n iceweasel-lang-hu
213 Summary: Hungarian resources for Iceweasel
214 Summary(hu.UTF-8): Magyar nyelv Iceweasel-hez
215 Summary(pl.UTF-8): Węgierskie pliki językowe dla Iceweasela
217 URL: http://www.mozilla.org/
218 Requires: iceweasel >= %{version}
219 Provides: iceweasel-lang-resources = %{version}
220 Obsoletes: mozilla-firefox-lang-hu
222 %description -n iceweasel-lang-hu
223 Hungarian resources for Iceweasel.
225 %description -n iceweasel-lang-hu -l hu.UTF-8
226 Magyar nyelv Iceweasel-hez.
228 %description -n iceweasel-lang-hu -l pl.UTF-8
229 Węgierskie pliki językowe dla Iceweasela.
231 %package -n iceweasel-lang-it
232 Summary: Italian resources for Iceweasel
233 Summary(pl.UTF-8): Włoskie pliki językowe dla Iceweasela
235 URL: http://www.mozilla.org/
236 Requires: iceweasel >= %{version}
237 Provides: iceweasel-lang-resources = %{version}
238 Obsoletes: mozilla-firefox-lang-it
240 %description -n iceweasel-lang-it
241 Italian resources for Iceweasel.
243 %description -n iceweasel-lang-it -l pl.UTF-8
244 Włoskie pliki językowe dla Iceweasela.
246 %package -n iceweasel-lang-ja
247 Summary: Japanese resources for Iceweasel
248 Summary(pl.UTF-8): Japońskie pliki językowe dla Iceweasela
250 URL: http://www.mozilla.org/
251 Requires: iceweasel >= %{version}
252 Provides: iceweasel-lang-resources = %{version}
253 Obsoletes: mozilla-firefox-lang-ja
255 %description -n iceweasel-lang-ja
256 Japanese resources for Iceweasel.
258 %description -n iceweasel-lang-ja -l pl.UTF-8
259 Japońskie pliki językowe dla Iceweasela.
261 %package -n iceweasel-lang-ku
262 Summary: Kurdish resources for Iceweasel
263 Summary(pl.UTF-8): Kurdyjskie pliki językowe dla Iceweasela
265 URL: http://www.mozilla.org/
266 Requires: iceweasel >= %{version}
267 Provides: iceweasel-lang-resources = %{version}
268 Obsoletes: mozilla-firefox-lang-ku
270 %description -n iceweasel-lang-ku
271 Kurdish resources for Iceweasel.
273 %description -n iceweasel-lang-ku -l pl.UTF-8
274 Kurdyjskie pliki językowe dla Iceweasela.
276 %package -n iceweasel-lang-lt
277 Summary: Lithuanian resources for Iceweasel
278 Summary(pl.UTF-8): Litewskie pliki językowe dla Iceweasela
280 URL: http://www.mozilla.org/
281 Requires: iceweasel >= %{version}
282 Provides: iceweasel-lang-resources = %{version}
283 Obsoletes: mozilla-firefox-lang-lt
285 %description -n iceweasel-lang-lt
286 Lithuanian resources for Iceweasel.
288 %description -n iceweasel-lang-lt -l pl.UTF-8
289 Litewskie pliki językowe dla Iceweasela.
291 %package -n iceweasel-lang-pl
292 Summary: Polish resources for Iceweasel
293 Summary(pl.UTF-8): Polskie pliki językowe dla Iceweasela
295 URL: http://www.firefox.pl/
296 Requires: iceweasel >= %{version}
297 Provides: iceweasel-lang-resources = %{version}
298 Obsoletes: mozilla-firefox-lang-pl
300 %description -n iceweasel-lang-pl
301 Polish resources for Iceweasel.
303 %description -n iceweasel-lang-pl -l pl.UTF-8
304 Polskie pliki językowe dla Iceweasela.
306 %package -n iceweasel-lang-ro
307 Summary: Romanian resources for Iceweasel
308 Summary(pl.UTF-8): Rumuńskie pliki językowe dla Iceweasela
310 URL: http://www.mozilla.org/
311 Requires: iceweasel >= %{version}
312 Provides: iceweasel-lang-resources = %{version}
313 Obsoletes: mozilla-firefox-lang-ro
315 %description -n iceweasel-lang-ro
316 Romanian resources for Iceweasel.
318 %description -n iceweasel-lang-ro -l pl.UTF-8
319 Rumuńskie pliki językowe dla Iceweasela.
321 %package -n iceweasel-lang-ru
322 Summary: Russian resources for Iceweasel
323 Summary(pl.UTF-8): Rosyjskie pliki językowe dla Iceweasela
325 URL: http://www.mozilla.org/
326 Requires: iceweasel >= %{version}
327 Provides: iceweasel-lang-resources = %{version}
328 Obsoletes: mozilla-firefox-lang-ru
330 %description -n iceweasel-lang-ru
331 Russian resources for Iceweasel.
333 %description -n iceweasel-lang-ru -l pl.UTF-8
334 Rosyjskie pliki językowe dla Iceweasela.
336 %package -n iceweasel-lang-sk
337 Summary: Slovak resources for Iceweasel
338 Summary(pl.UTF-8): Słowackie pliki językowe dla Iceweasela
340 URL: http://www.mozilla.org/
341 Requires: iceweasel >= %{version}
342 Provides: iceweasel-lang-resources = %{version}
343 Obsoletes: mozilla-firefox-lang-sk
345 %description -n iceweasel-lang-sk
346 Slovak resources for Iceweasel.
348 %description -n iceweasel-lang-sk -l pl.UTF-8
349 Słowackie pliki językowe dla Iceweasela.
351 %package -n iceweasel-lang-sl
352 Summary: Slovene resources for Iceweasel
353 Summary(pl.UTF-8): Słoweńskie pliki językowe dla Iceweasela
355 URL: http://www.mozilla.org/
356 Requires: iceweasel >= %{version}
357 Provides: iceweasel-lang-resources = %{version}
358 Obsoletes: mozilla-firefox-lang-sl
360 %description -n iceweasel-lang-sl
361 Slovene resources for Iceweasel.
363 %description -n iceweasel-lang-sl -l pl.UTF-8
364 Słoweńskie pliki językowe dla Iceweasela.
366 %package -n iceweasel-lang-sv
367 Summary: Swedish resources for Iceweasel
368 Summary(pl.UTF-8): Szwedzkie pliki językowe dla Iceweasela
370 URL: http://www.mozilla.org/
371 Requires: iceweasel >= %{version}
372 Provides: iceweasel-lang-resources = %{version}
373 Obsoletes: mozilla-firefox-lang-sv
375 %description -n iceweasel-lang-sv
376 Swedish resources for Iceweasel.
378 %description -n iceweasel-lang-sv -l pl.UTF-8
379 Szwedzkie pliki językowe dla Iceweasela.
383 local args="$1" file="$2"
384 local lang=$(basename $file .xpi)
387 # rebrand locale for Iceweasel
390 unzip -q $lang.xpi chrome/$lang/locale/branding/brand.{dtd,properties} chrome/$lang/locale/browser/appstrings.properties
391 sed -i -e 's/Mozilla Firefox/Iceweasel/g; s/Firefox/Iceweasel/g;' chrome/$lang/locale/branding/brand.{dtd,properties}
392 sed -i -e 's/Firefox/Iceweasel/g;' chrome/$lang/locale/browser/appstrings.properties
393 zip -q0 $lang.xpi chrome/$lang/locale/branding/brand.{dtd,properties} chrome/$lang/locale/browser/appstrings.properties
397 %define __unzip unpack
398 %setup -qcT %(seq -f '-a %g' 0 18 | xargs)
401 rm -rf $RPM_BUILD_ROOT
402 install -d $RPM_BUILD_ROOT%{iceweaseldir}/extensions
404 basename=$(basename $a .xpi)
405 cp -p $a $RPM_BUILD_ROOT%{iceweaseldir}/extensions/langpack-$basename@firefox.mozilla.org.xpi
409 rm -rf $RPM_BUILD_ROOT
411 %files -n iceweasel-lang-ca
412 %defattr(644,root,root,755)
413 %{iceweaseldir}/extensions/langpack-ca@firefox.mozilla.org.xpi
415 %files -n iceweasel-lang-cs
416 %defattr(644,root,root,755)
417 %{iceweaseldir}/extensions/langpack-cs@firefox.mozilla.org.xpi
419 %files -n iceweasel-lang-da
420 %defattr(644,root,root,755)
421 %{iceweaseldir}/extensions/langpack-da@firefox.mozilla.org.xpi
423 %files -n iceweasel-lang-de
424 %defattr(644,root,root,755)
425 %{iceweaseldir}/extensions/langpack-de@firefox.mozilla.org.xpi
427 %files -n iceweasel-lang-el
428 %defattr(644,root,root,755)
429 %{iceweaseldir}/extensions/langpack-el@firefox.mozilla.org.xpi
431 %files -n iceweasel-lang-es
432 %defattr(644,root,root,755)
433 %{iceweaseldir}/extensions/langpack-es-ES@firefox.mozilla.org.xpi
435 %files -n iceweasel-lang-fi
436 %defattr(644,root,root,755)
437 %{iceweaseldir}/extensions/langpack-fi@firefox.mozilla.org.xpi
439 %files -n iceweasel-lang-fr
440 %defattr(644,root,root,755)
441 %{iceweaseldir}/extensions/langpack-fr@firefox.mozilla.org.xpi
443 %files -n iceweasel-lang-hu
444 %defattr(644,root,root,755)
445 %{iceweaseldir}/extensions/langpack-hu@firefox.mozilla.org.xpi
447 %files -n iceweasel-lang-it
448 %defattr(644,root,root,755)
449 %{iceweaseldir}/extensions/langpack-it@firefox.mozilla.org.xpi
451 %files -n iceweasel-lang-ja
452 %defattr(644,root,root,755)
453 %{iceweaseldir}/extensions/langpack-ja@firefox.mozilla.org.xpi
455 %files -n iceweasel-lang-ku
456 %defattr(644,root,root,755)
457 %{iceweaseldir}/extensions/langpack-ku@firefox.mozilla.org.xpi
459 %files -n iceweasel-lang-lt
460 %defattr(644,root,root,755)
461 %{iceweaseldir}/extensions/langpack-lt@firefox.mozilla.org.xpi
463 %files -n iceweasel-lang-pl
464 %defattr(644,root,root,755)
465 %{iceweaseldir}/extensions/langpack-pl@firefox.mozilla.org.xpi
467 %files -n iceweasel-lang-ro
468 %defattr(644,root,root,755)
469 %{iceweaseldir}/extensions/langpack-ro@firefox.mozilla.org.xpi
471 %files -n iceweasel-lang-ru
472 %defattr(644,root,root,755)
473 %{iceweaseldir}/extensions/langpack-ru@firefox.mozilla.org.xpi
475 %files -n iceweasel-lang-sk
476 %defattr(644,root,root,755)
477 %{iceweaseldir}/extensions/langpack-sk@firefox.mozilla.org.xpi
479 %files -n iceweasel-lang-sl
480 %defattr(644,root,root,755)
481 %{iceweaseldir}/extensions/langpack-sl@firefox.mozilla.org.xpi
483 %files -n iceweasel-lang-sv
484 %defattr(644,root,root,755)
485 %{iceweaseldir}/extensions/langpack-sv-SE@firefox.mozilla.org.xpi