packages: iceweasel-languages/iceweasel-languages.spec - rebrand langpacks ...
megabajt
megabajt at pld-linux.org
Thu Mar 24 18:07:40 CET 2011
Author: megabajt Date: Thu Mar 24 17:07:40 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- rebrand langpacks
- release 1
---- Files affected:
packages/iceweasel-languages:
iceweasel-languages.spec (1.26 -> 1.27)
---- Diffs:
================================================================
Index: packages/iceweasel-languages/iceweasel-languages.spec
diff -u packages/iceweasel-languages/iceweasel-languages.spec:1.26 packages/iceweasel-languages/iceweasel-languages.spec:1.27
--- packages/iceweasel-languages/iceweasel-languages.spec:1.26 Thu Mar 24 17:13:50 2011
+++ packages/iceweasel-languages/iceweasel-languages.spec Thu Mar 24 18:07:35 2011
@@ -17,7 +17,7 @@
Summary: Language packs for Iceweasel
Name: iceweasel-languages
Version: 4.0
-Release: 0.2
+Release: 1
License: MPL 1.1 or GPL v2+ or LGPL v2.1+
Group: I18n
Source0: http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/ca.xpi
@@ -378,8 +378,18 @@
%prep
unpack() {
local args="$1" file="$2"
- #TODO: s/Firefox/Iceweasel/g
+ local lang=$(basename $file .xpi)
+ install -d $lang
+
+ # rebrand locale for Iceweasel
+ cd $lang
cp $file .
+ unzip -q $lang.xpi chrome/$lang/locale/branding/brand.{dtd,properties} chrome/$lang/locale/browser/appstrings.properties
+ sed -i -e 's/Mozilla Firefox/Iceweasel/g; s/Firefox/Iceweasel/g;' chrome/$lang/locale/branding/brand.{dtd,properties}
+ sed -i -e 's/Firefox/Iceweasel/g;' chrome/$lang/locale/browser/appstrings.properties
+ zip -q0 $lang.xpi chrome/$lang/locale/branding/brand.{dtd,properties} chrome/$lang/locale/browser/appstrings.properties
+ %{__rm} -rf chrome
+ cd ..
}
%define __unzip unpack
# LANGUAGE LOCALE
@@ -409,7 +419,7 @@
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{iceweaseldir}/extensions
-for a in *.xpi; do
+for a in */*.xpi; do
basename=$(basename $a .xpi)
cp $a $RPM_BUILD_ROOT%{iceweaseldir}/extensions/langpack-$basename at firefox.mozilla.org.xpi
done
@@ -499,6 +509,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.27 2011/03/24 17:07:35 megabajt
+- rebrand langpacks
+- release 1
+
Revision 1.26 2011/03/24 16:13:50 mmazur
- back to rel 0.2
- I've cut out firefox->iceweasel rebranding in the translations
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/iceweasel-languages/iceweasel-languages.spec?r1=1.26&r2=1.27&f=u
More information about the pld-cvs-commit
mailing list