SPECS: iceweasel-lang-de.spec - install as extension. This change makes lan...

megabajt megabajt at pld-linux.org
Mon Jun 30 16:21:26 CEST 2008


Author: megabajt                     Date: Mon Jun 30 14:21:26 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- install as extension. This change makes langpack visible in Tools->Add-ons->Languages
- release 3

---- Files affected:
SPECS:
   iceweasel-lang-de.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/iceweasel-lang-de.spec
diff -u SPECS/iceweasel-lang-de.spec:1.2 SPECS/iceweasel-lang-de.spec:1.3
--- SPECS/iceweasel-lang-de.spec:1.2	Thu Jun 26 21:26:51 2008
+++ SPECS/iceweasel-lang-de.spec	Mon Jun 30 16:21:20 2008
@@ -4,7 +4,7 @@
 Summary(pl.UTF-8):	Niemieckie pliki językowe dla Iceweasel
 Name:		iceweasel-lang-%{_lang}
 Version:	3.0
-Release:	2
+Release:	3
 License:	GPL
 Group:		I18n
 Source0:	http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/%{_lang}.xpi
@@ -19,8 +19,7 @@
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_iceweaseldir	%{_datadir}/iceweasel
-%define		_chromedir	%{_iceweaseldir}/chrome
+%define		_langpackdir	%{_datadir}/iceweasel/extensions/langpack-%{_lang}@firefox.mozilla.org
 
 %description
 German resources for Iceweasel.
@@ -32,15 +31,12 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_bindir},%{_chromedir},%{_iceweaseldir}/defaults/profile}
+install -d $RPM_BUILD_ROOT%{_langpackdir}
+
+unzip %{SOURCE0} -d $RPM_BUILD_ROOT%{_langpackdir}
 
-unzip %{SOURCE0} -d $RPM_BUILD_ROOT%{_libdir}
-mv -f $RPM_BUILD_ROOT%{_libdir}/chrome/* $RPM_BUILD_ROOT%{_chromedir}
-sed -e 's at chrome/%{_lang}\.jar@%{_lang}.jar@' $RPM_BUILD_ROOT%{_libdir}/chrome.manifest \
-	> $RPM_BUILD_ROOT%{_chromedir}/%{_lang}.manifest
-mv -f $RPM_BUILD_ROOT%{_libdir}/*.rdf $RPM_BUILD_ROOT%{_iceweaseldir}/defaults/profile
 # rebrand locale for iceweasel
-cd $RPM_BUILD_ROOT%{_chromedir}
+cd $RPM_BUILD_ROOT%{_langpackdir}/chrome
 unzip de.jar locale/branding/brand.dtd locale/branding/brand.properties \
 	locale/browser/appstrings.properties locale/browser/aboutDialog.dtd
 sed -i -e 's/Mozilla Firefox/Iceweasel/g; s/Firefox/Iceweasel/g;' \
@@ -61,10 +57,7 @@
 
 %files
 %defattr(644,root,root,755)
-%{_chromedir}/%{_lang}.jar
-%{_chromedir}/%{_lang}.manifest
-# file conflict:
-#%{_iceweaseldir}/defaults/profile/*.rdf
+%{_langpackdir}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -72,9 +65,12 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2008/06/30 14:21:20  megabajt
+- install as extension. This change makes langpack visible in Tools->Add-ons->Languages
+- release 3
+
 Revision 1.2  2008/06/26 19:26:51  hawk
 - O: for mozilla-firefox-lang
 
 Revision 1.1  2008/06/25 20:46:14  hawk
 - language pack for Iceweasel
-
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/iceweasel-lang-de.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list