Update to 31.4.0
This commit is contained in:
parent
9d80623a73
commit
be982aa207
2
.gitignore
vendored
2
.gitignore
vendored
@ -103,3 +103,5 @@ thunderbird-langpacks-3.1.2-20100803.tar.bz2
|
|||||||
/thunderbird-31.2.0.source.tar.bz2
|
/thunderbird-31.2.0.source.tar.bz2
|
||||||
/thunderbird-31.3.0.source.tar.bz2
|
/thunderbird-31.3.0.source.tar.bz2
|
||||||
/thunderbird-langpacks-31.3.0-20141201.tar.xz
|
/thunderbird-langpacks-31.3.0-20141201.tar.xz
|
||||||
|
/thunderbird-31.4.0.source.tar.bz2
|
||||||
|
/thunderbird-langpacks-31.4.0-20150114.tar.xz
|
||||||
|
59
mozilla-1097550-dict-fix.patch
Normal file
59
mozilla-1097550-dict-fix.patch
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
diff -up comm-esr31/mozilla/editor/composer/src/nsEditorSpellCheck.cpp.dict-fix comm-esr31/mozilla/editor/composer/src/nsEditorSpellCheck.cpp
|
||||||
|
--- comm-esr31/mozilla/editor/composer/src/nsEditorSpellCheck.cpp.dict-fix 2014-11-27 23:16:41.000000000 +0100
|
||||||
|
+++ comm-esr31/mozilla/editor/composer/src/nsEditorSpellCheck.cpp 2014-12-11 13:06:02.679106492 +0100
|
||||||
|
@@ -102,6 +102,23 @@ GetLoadContext(nsIEditor* aEditor)
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
+ * Helper function for converting underscore to dash in dictionary name,
|
||||||
|
+ * ie. en_CA to en-CA. This is required for some Linux distributions which
|
||||||
|
+ * use underscore as separator in system-wide installed dictionaries.
|
||||||
|
+ * We use it for nsStyleUtil::DashMatchCompare.
|
||||||
|
+ */
|
||||||
|
+static nsString
|
||||||
|
+GetDictNameWithDash(const nsAString& aDictName)
|
||||||
|
+{
|
||||||
|
+ nsString dictNameWithDash(aDictName);
|
||||||
|
+ int32_t underScore = dictNameWithDash.FindChar('_');
|
||||||
|
+ if (underScore != -1) {
|
||||||
|
+ dictNameWithDash.Replace(underScore, 1, '-');
|
||||||
|
+ }
|
||||||
|
+ return dictNameWithDash;
|
||||||
|
+}
|
||||||
|
+
|
||||||
|
+/**
|
||||||
|
* Fetches the dictionary stored in content prefs and maintains state during the
|
||||||
|
* fetch, which is asynchronous.
|
||||||
|
*/
|
||||||
|
@@ -603,8 +620,8 @@ nsEditorSpellCheck::SetCurrentDictionary
|
||||||
|
} else {
|
||||||
|
langCode.Assign(aDictionary);
|
||||||
|
}
|
||||||
|
-
|
||||||
|
- if (mPreferredLang.IsEmpty() || !nsStyleUtil::DashMatchCompare(mPreferredLang, langCode, comparator)) {
|
||||||
|
+ if (mPreferredLang.IsEmpty() ||
|
||||||
|
+ !nsStyleUtil::DashMatchCompare(GetDictNameWithDash(mPreferredLang), langCode, comparator)) {
|
||||||
|
// When user sets dictionary manually, we store this value associated
|
||||||
|
// with editor url.
|
||||||
|
StoreCurrentDictionary(mEditor, aDictionary);
|
||||||
|
@@ -790,8 +807,8 @@ nsEditorSpellCheck::DictionaryFetched(Di
|
||||||
|
|
||||||
|
// try dictionary.spellchecker preference if it starts with langCode (and
|
||||||
|
// if we haven't tried it already)
|
||||||
|
- if (!preferedDict.IsEmpty() && !dictName.Equals(preferedDict) &&
|
||||||
|
- nsStyleUtil::DashMatchCompare(preferedDict, langCode, comparator)) {
|
||||||
|
+ if (!preferedDict.IsEmpty() && !dictName.Equals(preferedDict) &&
|
||||||
|
+ nsStyleUtil::DashMatchCompare(GetDictNameWithDash(preferedDict), langCode, comparator)) {
|
||||||
|
rv = SetCurrentDictionary(preferedDict);
|
||||||
|
}
|
||||||
|
|
||||||
|
@@ -819,8 +836,7 @@ nsEditorSpellCheck::DictionaryFetched(Di
|
||||||
|
// We have already tried it
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
-
|
||||||
|
- if (nsStyleUtil::DashMatchCompare(dictStr, langCode, comparator) &&
|
||||||
|
+ if (nsStyleUtil::DashMatchCompare(GetDictNameWithDash(dictStr), langCode, comparator) &&
|
||||||
|
NS_SUCCEEDED(SetCurrentDictionary(dictStr))) {
|
||||||
|
break;
|
||||||
|
}
|
4
sources
4
sources
@ -1,2 +1,2 @@
|
|||||||
3781dfb541412c7f6b530a654b834ce5 thunderbird-31.3.0.source.tar.bz2
|
da9c86271bb498c5feb02ce9c360669f thunderbird-31.4.0.source.tar.bz2
|
||||||
9924d9192a6daf31237450383a11988c thunderbird-langpacks-31.3.0-20141201.tar.xz
|
d6714794261394ec0ceb7438144902bd thunderbird-langpacks-31.4.0-20150114.tar.xz
|
||||||
|
@ -57,14 +57,14 @@
|
|||||||
|
|
||||||
Summary: Mozilla Thunderbird mail/newsgroup client
|
Summary: Mozilla Thunderbird mail/newsgroup client
|
||||||
Name: thunderbird
|
Name: thunderbird
|
||||||
Version: 31.3.0
|
Version: 31.4.0
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
URL: http://www.mozilla.org/projects/thunderbird/
|
URL: http://www.mozilla.org/projects/thunderbird/
|
||||||
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
License: MPLv1.1 or GPLv2+ or LGPLv2+
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
Source0: ftp://ftp.mozilla.org/pub/thunderbird/releases/%{version}%{?pre_version}/source/thunderbird-%{version}%{?pre_version}.source.tar.bz2
|
Source0: ftp://ftp.mozilla.org/pub/thunderbird/releases/%{version}%{?pre_version}/source/thunderbird-%{version}%{?pre_version}.source.tar.bz2
|
||||||
%if %{build_langpacks}
|
%if %{build_langpacks}
|
||||||
Source1: thunderbird-langpacks-%{version}-20141201.tar.xz
|
Source1: thunderbird-langpacks-%{version}-20150114.tar.xz
|
||||||
%endif
|
%endif
|
||||||
Source10: thunderbird-mozconfig
|
Source10: thunderbird-mozconfig
|
||||||
Source11: thunderbird-mozconfig-branded
|
Source11: thunderbird-mozconfig-branded
|
||||||
@ -75,6 +75,7 @@ Source21: thunderbird.sh.in
|
|||||||
# Mozilla (XULRunner) patches
|
# Mozilla (XULRunner) patches
|
||||||
Patch0: thunderbird-install-dir.patch
|
Patch0: thunderbird-install-dir.patch
|
||||||
Patch9: mozilla-build-arm.patch
|
Patch9: mozilla-build-arm.patch
|
||||||
|
Patch10: mozilla-1097550-dict-fix.patch
|
||||||
|
|
||||||
# Build patches
|
# Build patches
|
||||||
Patch100: thunderbird-objdir.patch
|
Patch100: thunderbird-objdir.patch
|
||||||
@ -174,6 +175,7 @@ cd %{tarballdir}
|
|||||||
# Mozilla (XULRunner) patches
|
# Mozilla (XULRunner) patches
|
||||||
cd mozilla
|
cd mozilla
|
||||||
%patch9 -p2 -b .arm
|
%patch9 -p2 -b .arm
|
||||||
|
%patch10 -p2 -b .dict-fix
|
||||||
%patch300 -p2 -b .852698
|
%patch300 -p2 -b .852698
|
||||||
%patch400 -p1 -b .966424
|
%patch400 -p1 -b .966424
|
||||||
%patch401 -p1 -b .858919
|
%patch401 -p1 -b .858919
|
||||||
@ -458,6 +460,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|||||||
#===============================================================================
|
#===============================================================================
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 14 2015 Jan Horak <jhorak@redhat.com> - 31.4.0-1
|
||||||
|
- Update to 31.4.0
|
||||||
|
|
||||||
* Mon Dec 1 2014 Jan Horak <jhorak@redhat.com> - 31.3.0-1
|
* Mon Dec 1 2014 Jan Horak <jhorak@redhat.com> - 31.3.0-1
|
||||||
- Update to 31.3.0
|
- Update to 31.3.0
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user