summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.cvsignore1
-rw-r--r--firefox-1.0-locales-no-searchplugins.patch23
-rw-r--r--firefox.spec69
-rw-r--r--sources3
4 files changed, 65 insertions, 31 deletions
diff --git a/.cvsignore b/.cvsignore
index 4413c8a..0a6dace 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -8,3 +8,4 @@ firefox-1.0-langpacks-3.tar.bz2
firefox-1.0.1-source.tar.bz2
firefox-1.0.2-source.tar.bz2
firefox-1.0.3-source.tar.bz2
+firefox-1.0-locales.tar.bz2
diff --git a/firefox-1.0-locales-no-searchplugins.patch b/firefox-1.0-locales-no-searchplugins.patch
new file mode 100644
index 0000000..0cf6bfa
--- /dev/null
+++ b/firefox-1.0-locales-no-searchplugins.patch
@@ -0,0 +1,23 @@
+Index: browser/locales/Makefile.in
+===================================================================
+RCS file: /cvsroot/mozilla/browser/locales/Makefile.in,v
+retrieving revision 1.1.2.24
+diff -d -u -p -r1.1.2.24 Makefile.in
+--- browser/locales/Makefile.in 22 Oct 2004 16:47:44 -0000 1.1.2.24
++++ browser/locales/Makefile.in 24 May 2005 17:37:59 -0000
+@@ -97,6 +97,7 @@ install:: $(addprefix $(AB_CD)/profile/,
+ install:: $(addprefix $(AB_CD)/profile/chrome/,$(PROFILE_CHROME))
+ $(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/defaults/profile/chrome
+
++ifeq ($(AB_CD),en-US)
+ SEARCH_PLUGINS = $(shell cat $(srcdir)/$(AB_CD)/searchplugins/list.txt)
+ SEARCH_PLUGIN_PREFIX = $(addprefix $(srcdir)/$(AB_CD)/searchplugins/,$(SEARCH_PLUGINS))
+
+@@ -105,6 +106,7 @@ libs realchrome:: $(addsuffix .src,$(SEA
+
+ install:: $(addsuffix .src,$(SEARCH_PLUGIN_PREFIX)) $(foreach base,$(SEARCH_PLUGIN_PREFIX),$(wildcard $(base).gif)$(wildcard $(base).png))
+ $(SYSINSTALL) $(IFLAGS1) $^ $(DESTDIR)$(mozappdir)/searchplugins
++endif
+
+ # Let's imagine we wanted to create a language JARfile without registering it
+ # the following targets only work with JARed chrome: flat chrome is not supported
diff --git a/firefox.spec b/firefox.spec
index b0ab365..8fb340e 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -10,14 +10,14 @@ ExclusiveArch: i386 x86_64 ia64 ppc s390 s390x
Summary: Mozilla Firefox Web browser.
Name: firefox
Version: 1.0.4
-Release: 2
+Release: 5
Epoch: 0
URL: http://www.mozilla.org/projects/firefox/
License: MPL/LGPL
Group: Applications/Internet
Source0: firefox-%{version}-source.tar.bz2
Source1: firefox-gnomestripe-0.1.tar.gz
-Source2: firefox-1.0-langpacks-3.tar.bz2
+Source2: firefox-1.0-locales.tar.bz2
Source10: mozconfig-firefox
Source11: firefox-redhat-default-bookmarks.html
@@ -55,11 +55,13 @@ Patch32: firefox-1.0-pango-space-width.patch
Patch33: firefox-1.0-pango-rounding.patch
Patch34: firefox-1.0-pango-direction.patch
Patch35: firefox-1.0-pango-bidi-justify.patch
+Patch36: firefox-1.0-pango-cairo.patch
# local bugfixes
Patch41: firefox-PR1-stack-direction.patch
Patch42: firefox-1.0-download-to-desktop.patch
Patch43: firefox-1.0-uriloader.patch
+Patch44: firefox-1.0-locales-no-searchplugins.patch
# backported patches
Patch90: firefox-PR1-gtk-file-chooser-morefixes.patch
@@ -109,6 +111,7 @@ compliance, performance and portability.
%prep
%setup -q -n mozilla
%{__tar} -xzf %{SOURCE1}
+%{__tar} -xjf %{SOURCE2}
%if %{freetype_fc3}
%patch1 -p0
%endif
@@ -132,9 +135,11 @@ compliance, performance and portability.
%patch33 -p1
%patch34 -p1
%patch35 -p0
+%patch36 -p1
%patch41 -p0
%patch42 -p0
%patch43 -p0
+%patch44 -p0
%patch90 -p0
%patch101 -p0
%patch102 -p0
@@ -160,6 +165,18 @@ export MOZILLA_OFFICIAL=1
export BUILD_OFFICIAL=1
MAKE="gmake %{?_smp_mflags}" make -f client.mk build
+for locale in `cat browser/locales/all-locales`
+do
+ if [ -d browser/locales/$locale ] ; then
+ perl -pi -e "s|browser.startup.homepage.*$|browser.startup.homepage=%{indexhtml}|g;" \
+ browser/locales/$locale/chrome/browser-region/region.properties
+ make -C browser/locales AB_CD=$locale
+ fi
+ if [ -d toolkit/locales/$locale ] ; then
+ make -C toolkit/locales AB_CD=$locale
+ fi
+done
+
#---------------------------------------------------------------------
%install
@@ -215,33 +232,10 @@ cd $RPM_BUILD_ROOT%{ffdir}/chrome
find . -name "*" -type d -maxdepth 1 -exec %{__rm} -rf {} \;
cd -
-# Install language packs
-#cd $RPM_BUILD_ROOT%{ffdir}/chrome
-# mkdir lang
-# cd $RPM_BUILD_ROOT%{ffdir}/chrome/lang
-# mv ../installed-chrome.txt ./installed-chrome.txt
-# tar xvjf %{SOURCE2}
-#
-# # Extract jar, modify the homepage, repack
-# for i in `ls *.jar`; do
-# rm -rf locale
-# LANGPACK=`basename $i .jar`
-# unzip $LANGPACK.jar
-# perl -pi -e "s|browser.startup.homepage.*$|browser.startup.homepage=%{indexhtml}|g;" locale/browser-region/region.properties
-# rm -rf $LANGPACK.jar
-# zip -r -D $LANGPACK.jar locale
-# rm -rf locale
-# done
-#
-# mv -v *.jar ..
-# cd -
-#cd -
-
-#cat > $RPM_BUILD_ROOT%{ffdir}/defaults/pref/firefox-l10n.js << EOF
-#pref("general.useragent.locale", "chrome://global/locale/intl.properties");
-#EOF
-#chmod 644 $RPM_BUILD_ROOT%{ffdir}/defaults/pref/firefox-l10n.js
-
+cat > $RPM_BUILD_ROOT%{ffdir}/defaults/pref/firefox-l10n.js << EOF
+pref("general.useragent.locale", "chrome://global/locale/intl.properties");
+EOF
+chmod 644 $RPM_BUILD_ROOT%{ffdir}/defaults/pref/firefox-l10n.js
# another bug fixed by looking at the debian package
%{__mkdir_p} $RPM_BUILD_ROOT%{ffdir}/chrome/icons/default/
@@ -331,6 +325,23 @@ fi
#---------------------------------------------------------------------
%changelog
+* Thu Jun 23 2005 Kristian Høgsberg <krh@redhat.com> 0:1.0.4-3
+- Add firefox-1.0-pango-cairo.patch to get rid of the last few Xft
+ references, fixing the "no fonts" problem.
+- Copy over changes from FC4 branch.
+
+* Tue May 24 2005 Christopher Aillon <caillon@redhat.com> 0:1.0.4-4
+- Only install searchplugins for en-US, since there isn't any way
+ to dynamically select searchplugins per locale yet.
+
+* Mon May 23 2005 Christopher Aillon <caillon@redhat.com> 0:1.0.4-3
+- Add support for locales:
+ af-ZA, ast-ES, ca-AD, cs-CZ, cy-GB, da-DK, de-DE, el-GR,
+ en-GB es-AR, es-ES, eu-ES, fi-FI, fr-FR, ga-IE, he-IL,
+ hu-HU, it-IT, ko-KR, ja-JP, ja-JPM, mk-MK, nb-NO, nl-NL,
+ pa-IN, pl-PL, pt-BR, pt-PT, ro-RO, ru-RU, sk-SK, sl-SI,
+ sq-AL, sv-SE, tr-TR, zh-CN, zh-TW
+
* Wed May 11 2005 Christopher Aillon <caillon@redhat.com> 0:1.0.4-2
- Update to 1.0.4
diff --git a/sources b/sources
index 6fd14bb..e0eea0f 100644
--- a/sources
+++ b/sources
@@ -1,4 +1,3 @@
b628d5f24a49ab15d1943b7d694edd90 firefox-gnomestripe-0.1.tar.gz
-b742f86f641fd59d52acbb30e206195a firefox-1.0-langpacks-3.tar.bz2
0f5d0586750fde79ba98ecf3ee4425a7 firefox-1.0.4-source.tar.bz2
-
+2a9c2ae93baa98b96d28db380a805442 firefox-1.0-locales.tar.bz2
bgstack15