- Improve the langpack install stuff

- Fix up dumpstack.patch to match the finalized change
This commit is contained in:
Christopher Aillon 2006-02-10 22:45:22 +00:00
parent cfafbbc21b
commit a903d1df81

View File

@ -9,7 +9,7 @@
Summary: Mozilla Firefox Web browser. Summary: Mozilla Firefox Web browser.
Name: firefox Name: firefox
Version: 1.5.0.1 Version: 1.5.0.1
Release: 2.1 Release: 3
URL: http://www.mozilla.org/projects/firefox/ URL: http://www.mozilla.org/projects/firefox/
License: MPL/LGPL License: MPL/LGPL
Group: Applications/Internet Group: Applications/Internet
@ -105,7 +105,7 @@ compliance, performance and portability.
%ifnarch i386 %ifnarch i386
%patch5 -p0 %patch5 -p0
%endif %endif
%patch6 -p1 %patch6 -p0
%patch20 -p0 %patch20 -p0
%patch21 -p1 %patch21 -p1
@ -206,15 +206,19 @@ for langpack in `ls firefox-langpacks/*.xpi`; do
extensiondir=$RPM_BUILD_ROOT%{ffdir}/extensions/langpack-$language@firefox.mozilla.org extensiondir=$RPM_BUILD_ROOT%{ffdir}/extensions/langpack-$language@firefox.mozilla.org
%{__mkdir_p} $extensiondir %{__mkdir_p} $extensiondir
unzip $langpack -d $extensiondir unzip $langpack -d $extensiondir
find $extensiondir -type f | xargs chmod 644
%{__rm} -rf locale langtmp=%{_tmpdir}/%{name}/langpack-$language
%{__mkdir_p} $langtmp
jarfile=$extensiondir/chrome/$language.jar jarfile=$extensiondir/chrome/$language.jar
unzip $jarfile unzip $jarfile -d $langtmp
sed -i -e "s|browser.startup.homepage.*$|browser.startup.homepage=%{indexhtml}|g;" locale/browser-region/region.properties sed -i -e "s|browser.startup.homepage.*$|browser.startup.homepage=%{indexhtml}|g;" $langtmp/locale/browser-region/region.properties
find $langtmp -type f | xargs chmod 644
%{__rm} -rf $jarfile %{__rm} -rf $jarfile
cd $langtmp
zip -r -D $jarfile locale zip -r -D $jarfile locale
%{__rm} -rf locale %{__rm} -rf locale
cd -
done done
%{__rm} -rf firefox-langpacks %{__rm} -rf firefox-langpacks
@ -258,7 +262,11 @@ fi
#--------------------------------------------------------------------- #---------------------------------------------------------------------
%changelog %changelog
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.5.0.1-2.1 * Fri Feb 10 2006 Christopher Aillon <caillon@redhat.com> - 1.5.0.1-3
- Improve the langpack install stuff
- Fix up dumpstack.patch to match the finalized change
* Tue Feb 7 2006 Jesse Keating <jkeating@redhat.com> - 1.5.0.1-2.1
- rebuilt for new gcc4.1 snapshot and glibc changes - rebuilt for new gcc4.1 snapshot and glibc changes
* Wed Feb 1 2006 Christopher Aillon <caillon@redhat.com> - 1.5.0.1-2 * Wed Feb 1 2006 Christopher Aillon <caillon@redhat.com> - 1.5.0.1-2