]> git.pld-linux.org Git - packages/firefox-languages.git/blob - iceweasel-languages.spec
- up to 6.0
[packages/firefox-languages.git] / iceweasel-languages.spec
1 # TODO:
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
7 # UPDATING:
8 %if 0
9 rm -vf *.xpi
10 ./builder -g
11 V=4.0
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'
14 %endif
15
16 Summary:        Language packs for Iceweasel
17 Summary(pl.UTF-8):      Pakiety językowe dla Iceweasela
18 Name:           iceweasel-languages
19 Version:        6.0
20 Release:        1
21 License:        MPL 1.1 or GPL v2+ or LGPL v2.1+
22 Group:          I18n
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
63 BuildRequires:  unzip
64 BuildRequires:  zip
65 BuildArch:      noarch
66 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
67
68 %define         iceweaseldir    %{_datadir}/iceweasel
69
70 %description
71 Language packs for Iceweasel.
72
73 %description -l pl.UTF-8
74 Pakiety językowe dla Iceweasela.
75
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
81 Group:          I18n
82 URL:            http://www.softcatala.org/projectes/mozilla/
83 Requires:       iceweasel >= %{version}
84 Provides:       iceweasel-lang-resources = %{version}
85 Obsoletes:      mozilla-firefox-lang-ca
86
87 %description -n iceweasel-lang-ca
88 Catalan resources for Iceweasel.
89
90 %description -n iceweasel-lang-ca -l ca.UTF-8
91 Recursos catalans per Iceweasel.
92
93 %description -n iceweasel-lang-ca -l es.UTF-8
94 Recursos catalanes para Iceweasel.
95
96 %description -n iceweasel-lang-ca -l pl.UTF-8
97 Katalońskie pliki językowe dla Iceweasela.
98
99 %package -n iceweasel-lang-cs
100 Summary:        Czech resources for Iceweasel
101 Summary(pl.UTF-8):      Czeskie pliki językowe dla Iceweasela
102 Group:          I18n
103 URL:            http://www.mozilla.org/
104 Requires:       iceweasel >= %{version}
105 Provides:       iceweasel-lang-resources = %{version}
106 Obsoletes:      mozilla-firefox-lang-cs
107
108 %description -n iceweasel-lang-cs
109 Czech resources for Iceweasel.
110
111 %description -n iceweasel-lang-cs -l pl.UTF-8
112 Czeskie pliki językowe dla Iceweasela.
113
114 %package -n iceweasel-lang-da
115 Summary:        Danish resources for Iceweasel
116 Summary(pl.UTF-8):      Duńskie pliki językowe dla Iceweasela
117 Group:          I18n
118 URL:            http://www.mozilla.org/
119 Requires:       iceweasel >= %{version}
120 Provides:       iceweasel-lang-resources = %{version}
121 Obsoletes:      mozilla-firefox-lang-da
122
123 %description -n iceweasel-lang-da
124 Danish resources for Iceweasel.
125
126 %description -n iceweasel-lang-da -l pl.UTF-8
127 Duńskie pliki językowe dla Iceweasela.
128
129 %package -n iceweasel-lang-de
130 Summary:        German resources for Iceweasel
131 Summary(pl.UTF-8):      Niemieckie pliki językowe dla Iceweasela
132 Group:          I18n
133 URL:            http://www.mozilla.org/
134 Requires:       iceweasel >= %{version}
135 Provides:       iceweasel-lang-resources = %{version}
136 Obsoletes:      mozilla-firefox-lang-de
137
138 %description -n iceweasel-lang-de
139 German resources for Iceweasel.
140
141 %description -n iceweasel-lang-de -l pl.UTF-8
142 Niemieckie pliki językowe dla Iceweasela.
143
144 %package -n iceweasel-lang-el
145 Summary:        Greek resources for Iceweasel
146 Summary(pl.UTF-8):      Greckie pliki językowe dla Iceweasela
147 Group:          I18n
148 URL:            http://www.mozilla.org/
149 Requires:       iceweasel >= %{version}
150 Provides:       iceweasel-lang-resources = %{version}
151 Obsoletes:      mozilla-firefox-lang-el
152
153 %description -n iceweasel-lang-el
154 Greek resources for Iceweasel.
155
156 %description -n iceweasel-lang-el -l pl.UTF-8
157 Greckie pliki językowe dla Iceweasela.
158
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
164 Group:          I18n
165 URL:            http://www.mozilla.org/
166 Requires:       iceweasel >= %{version}
167 Provides:       iceweasel-lang-resources = %{version}
168 Obsoletes:      mozilla-firefox-lang-es
169
170 %description -n iceweasel-lang-es
171 Spanish resources for Iceweasel.
172
173 %description -n iceweasel-lang-es -l ca.UTF-8
174 Recursos espanyols per Iceweasel.
175
176 %description -n iceweasel-lang-es -l es.UTF-8
177 Recursos españoles para Iceweasel.
178
179 %description -n iceweasel-lang-es -l pl.UTF-8
180 Hiszpańskie pliki językowe dla Iceweasela.
181
182 %package -n iceweasel-lang-fi
183 Summary:        Finnish resources for Iceweasel
184 Summary(pl.UTF-8):      Fińskie pliki językowe dla Iceweasela
185 Group:          I18n
186 URL:            http://www.mozilla.org/
187 Requires:       iceweasel >= %{version}
188 Provides:       iceweasel-lang-resources = %{version}
189 Obsoletes:      mozilla-firefox-lang-fi
190
191 %description -n iceweasel-lang-fi
192 Finnish resources for Iceweasel.
193
194 %description -n iceweasel-lang-fi -l pl.UTF-8
195 Fińskie pliki językowe dla Iceweasela.
196
197 %package -n iceweasel-lang-fr
198 Summary:        French resources for Iceweasel
199 Summary(pl.UTF-8):      Francuskie pliki językowe dla Iceweasela
200 Group:          I18n
201 URL:            http://www.mozilla.org/
202 Requires:       iceweasel >= %{version}
203 Provides:       iceweasel-lang-resources = %{version}
204 Obsoletes:      mozilla-firefox-lang-fr
205
206 %description -n iceweasel-lang-fr
207 French resources for Iceweasel.
208
209 %description -n iceweasel-lang-fr -l pl.UTF-8
210 Francuskie pliki językowe dla Iceweasela.
211
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
216 Group:          I18n
217 URL:            http://www.mozilla.org/
218 Requires:       iceweasel >= %{version}
219 Provides:       iceweasel-lang-resources = %{version}
220 Obsoletes:      mozilla-firefox-lang-hu
221
222 %description -n iceweasel-lang-hu
223 Hungarian resources for Iceweasel.
224
225 %description -n iceweasel-lang-hu -l hu.UTF-8
226 Magyar nyelv Iceweasel-hez.
227
228 %description -n iceweasel-lang-hu -l pl.UTF-8
229 Węgierskie pliki językowe dla Iceweasela.
230
231 %package -n iceweasel-lang-it
232 Summary:        Italian resources for Iceweasel
233 Summary(pl.UTF-8):      Włoskie pliki językowe dla Iceweasela
234 Group:          I18n
235 URL:            http://www.mozilla.org/
236 Requires:       iceweasel >= %{version}
237 Provides:       iceweasel-lang-resources = %{version}
238 Obsoletes:      mozilla-firefox-lang-it
239
240 %description -n iceweasel-lang-it
241 Italian resources for Iceweasel.
242
243 %description -n iceweasel-lang-it -l pl.UTF-8
244 Włoskie pliki językowe dla Iceweasela.
245
246 %package -n iceweasel-lang-ja
247 Summary:        Japanese resources for Iceweasel
248 Summary(pl.UTF-8):      Japońskie pliki językowe dla Iceweasela
249 Group:          I18n
250 URL:            http://www.mozilla.org/
251 Requires:       iceweasel >= %{version}
252 Provides:       iceweasel-lang-resources = %{version}
253 Obsoletes:      mozilla-firefox-lang-ja
254
255 %description -n iceweasel-lang-ja
256 Japanese resources for Iceweasel.
257
258 %description -n iceweasel-lang-ja -l pl.UTF-8
259 Japońskie pliki językowe dla Iceweasela.
260
261 %package -n iceweasel-lang-ku
262 Summary:        Kurdish resources for Iceweasel
263 Summary(pl.UTF-8):      Kurdyjskie pliki językowe dla Iceweasela
264 Group:          I18n
265 URL:            http://www.mozilla.org/
266 Requires:       iceweasel >= %{version}
267 Provides:       iceweasel-lang-resources = %{version}
268 Obsoletes:      mozilla-firefox-lang-ku
269
270 %description -n iceweasel-lang-ku
271 Kurdish resources for Iceweasel.
272
273 %description -n iceweasel-lang-ku -l pl.UTF-8
274 Kurdyjskie pliki językowe dla Iceweasela.
275
276 %package -n iceweasel-lang-lt
277 Summary:        Lithuanian resources for Iceweasel
278 Summary(pl.UTF-8):      Litewskie pliki językowe dla Iceweasela
279 Group:          I18n
280 URL:            http://www.mozilla.org/
281 Requires:       iceweasel >= %{version}
282 Provides:       iceweasel-lang-resources = %{version}
283 Obsoletes:      mozilla-firefox-lang-lt
284
285 %description -n iceweasel-lang-lt
286 Lithuanian resources for Iceweasel.
287
288 %description -n iceweasel-lang-lt -l pl.UTF-8
289 Litewskie pliki językowe dla Iceweasela.
290
291 %package -n iceweasel-lang-pl
292 Summary:        Polish resources for Iceweasel
293 Summary(pl.UTF-8):      Polskie pliki językowe dla Iceweasela
294 Group:          I18n
295 URL:            http://www.firefox.pl/
296 Requires:       iceweasel >= %{version}
297 Provides:       iceweasel-lang-resources = %{version}
298 Obsoletes:      mozilla-firefox-lang-pl
299
300 %description -n iceweasel-lang-pl
301 Polish resources for Iceweasel.
302
303 %description -n iceweasel-lang-pl -l pl.UTF-8
304 Polskie pliki językowe dla Iceweasela.
305
306 %package -n iceweasel-lang-ro
307 Summary:        Romanian resources for Iceweasel
308 Summary(pl.UTF-8):      Rumuńskie pliki językowe dla Iceweasela
309 Group:          I18n
310 URL:            http://www.mozilla.org/
311 Requires:       iceweasel >= %{version}
312 Provides:       iceweasel-lang-resources = %{version}
313 Obsoletes:      mozilla-firefox-lang-ro
314
315 %description -n iceweasel-lang-ro
316 Romanian resources for Iceweasel.
317
318 %description -n iceweasel-lang-ro -l pl.UTF-8
319 Rumuńskie pliki językowe dla Iceweasela.
320
321 %package -n iceweasel-lang-ru
322 Summary:        Russian resources for Iceweasel
323 Summary(pl.UTF-8):      Rosyjskie pliki językowe dla Iceweasela
324 Group:          I18n
325 URL:            http://www.mozilla.org/
326 Requires:       iceweasel >= %{version}
327 Provides:       iceweasel-lang-resources = %{version}
328 Obsoletes:      mozilla-firefox-lang-ru
329
330 %description -n iceweasel-lang-ru
331 Russian resources for Iceweasel.
332
333 %description -n iceweasel-lang-ru -l pl.UTF-8
334 Rosyjskie pliki językowe dla Iceweasela.
335
336 %package -n iceweasel-lang-sk
337 Summary:        Slovak resources for Iceweasel
338 Summary(pl.UTF-8):      Słowackie pliki językowe dla Iceweasela
339 Group:          I18n
340 URL:            http://www.mozilla.org/
341 Requires:       iceweasel >= %{version}
342 Provides:       iceweasel-lang-resources = %{version}
343 Obsoletes:      mozilla-firefox-lang-sk
344
345 %description -n iceweasel-lang-sk
346 Slovak resources for Iceweasel.
347
348 %description -n iceweasel-lang-sk -l pl.UTF-8
349 Słowackie pliki językowe dla Iceweasela.
350
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
354 Group:          I18n
355 URL:            http://www.mozilla.org/
356 Requires:       iceweasel >= %{version}
357 Provides:       iceweasel-lang-resources = %{version}
358 Obsoletes:      mozilla-firefox-lang-sl
359
360 %description -n iceweasel-lang-sl
361 Slovene resources for Iceweasel.
362
363 %description -n iceweasel-lang-sl -l pl.UTF-8
364 Słoweńskie pliki językowe dla Iceweasela.
365
366 %package -n iceweasel-lang-sv
367 Summary:        Swedish resources for Iceweasel
368 Summary(pl.UTF-8):      Szwedzkie pliki językowe dla Iceweasela
369 Group:          I18n
370 URL:            http://www.mozilla.org/
371 Requires:       iceweasel >= %{version}
372 Provides:       iceweasel-lang-resources = %{version}
373 Obsoletes:      mozilla-firefox-lang-sv
374
375 %description -n iceweasel-lang-sv
376 Swedish resources for Iceweasel.
377
378 %description -n iceweasel-lang-sv -l pl.UTF-8
379 Szwedzkie pliki językowe dla Iceweasela.
380
381 %prep
382 unpack() {
383     local args="$1" file="$2"
384         local lang=$(basename $file .xpi)
385         install -d $lang
386         
387         # rebrand locale for Iceweasel
388         cd $lang
389         cp -p $file .
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
394         %{__rm} -rf chrome    
395         cd ..
396 }
397 %define __unzip unpack
398 %setup -qcT %(seq -f '-a %g' 0 18 | xargs)
399
400 %install
401 rm -rf $RPM_BUILD_ROOT
402 install -d $RPM_BUILD_ROOT%{iceweaseldir}/extensions
403 for a in */*.xpi; do
404         basename=$(basename $a .xpi)
405         cp -p $a $RPM_BUILD_ROOT%{iceweaseldir}/extensions/langpack-$basename@firefox.mozilla.org.xpi
406 done
407
408 %clean
409 rm -rf $RPM_BUILD_ROOT
410
411 %files -n iceweasel-lang-ca
412 %defattr(644,root,root,755)
413 %{iceweaseldir}/extensions/langpack-ca@firefox.mozilla.org.xpi
414
415 %files -n iceweasel-lang-cs
416 %defattr(644,root,root,755)
417 %{iceweaseldir}/extensions/langpack-cs@firefox.mozilla.org.xpi
418
419 %files -n iceweasel-lang-da
420 %defattr(644,root,root,755)
421 %{iceweaseldir}/extensions/langpack-da@firefox.mozilla.org.xpi
422
423 %files -n iceweasel-lang-de
424 %defattr(644,root,root,755)
425 %{iceweaseldir}/extensions/langpack-de@firefox.mozilla.org.xpi
426
427 %files -n iceweasel-lang-el
428 %defattr(644,root,root,755)
429 %{iceweaseldir}/extensions/langpack-el@firefox.mozilla.org.xpi
430
431 %files -n iceweasel-lang-es
432 %defattr(644,root,root,755)
433 %{iceweaseldir}/extensions/langpack-es-ES@firefox.mozilla.org.xpi
434
435 %files -n iceweasel-lang-fi
436 %defattr(644,root,root,755)
437 %{iceweaseldir}/extensions/langpack-fi@firefox.mozilla.org.xpi
438
439 %files -n iceweasel-lang-fr
440 %defattr(644,root,root,755)
441 %{iceweaseldir}/extensions/langpack-fr@firefox.mozilla.org.xpi
442
443 %files -n iceweasel-lang-hu
444 %defattr(644,root,root,755)
445 %{iceweaseldir}/extensions/langpack-hu@firefox.mozilla.org.xpi
446
447 %files -n iceweasel-lang-it
448 %defattr(644,root,root,755)
449 %{iceweaseldir}/extensions/langpack-it@firefox.mozilla.org.xpi
450
451 %files -n iceweasel-lang-ja
452 %defattr(644,root,root,755)
453 %{iceweaseldir}/extensions/langpack-ja@firefox.mozilla.org.xpi
454
455 %files -n iceweasel-lang-ku
456 %defattr(644,root,root,755)
457 %{iceweaseldir}/extensions/langpack-ku@firefox.mozilla.org.xpi
458
459 %files -n iceweasel-lang-lt
460 %defattr(644,root,root,755)
461 %{iceweaseldir}/extensions/langpack-lt@firefox.mozilla.org.xpi
462
463 %files -n iceweasel-lang-pl
464 %defattr(644,root,root,755)
465 %{iceweaseldir}/extensions/langpack-pl@firefox.mozilla.org.xpi
466
467 %files -n iceweasel-lang-ro
468 %defattr(644,root,root,755)
469 %{iceweaseldir}/extensions/langpack-ro@firefox.mozilla.org.xpi
470
471 %files -n iceweasel-lang-ru
472 %defattr(644,root,root,755)
473 %{iceweaseldir}/extensions/langpack-ru@firefox.mozilla.org.xpi
474
475 %files -n iceweasel-lang-sk
476 %defattr(644,root,root,755)
477 %{iceweaseldir}/extensions/langpack-sk@firefox.mozilla.org.xpi
478
479 %files -n iceweasel-lang-sl
480 %defattr(644,root,root,755)
481 %{iceweaseldir}/extensions/langpack-sl@firefox.mozilla.org.xpi
482
483 %files -n iceweasel-lang-sv
484 %defattr(644,root,root,755)
485 %{iceweaseldir}/extensions/langpack-sv-SE@firefox.mozilla.org.xpi
This page took 0.173233 seconds and 3 git commands to generate.