From ad6b799fda2078f9d43ea3392050163329d2aafb450d81f5f7a251debed7293a Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Sat, 25 Oct 2014 18:41:53 +0000 Subject: [PATCH 1/2] - remove add-plugins.sh and use /usr/share/myspell directly (bnc#900639) OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaThunderbird?expand=0&rev=262 --- MozillaThunderbird.changes | 6 ++++ MozillaThunderbird.spec | 27 ------------------ add-plugins.sh.in | 57 -------------------------------------- 3 files changed, 6 insertions(+), 84 deletions(-) delete mode 100644 add-plugins.sh.in diff --git a/MozillaThunderbird.changes b/MozillaThunderbird.changes index 284b005..d20e86d 100644 --- a/MozillaThunderbird.changes +++ b/MozillaThunderbird.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Oct 25 18:41:27 UTC 2014 - wr@rosenauer.org + +- remove add-plugins.sh and use /usr/share/myspell directly + (bnc#900639) + ------------------------------------------------------------------- Sun Oct 12 22:47:42 UTC 2014 - wr@rosenauer.org diff --git a/MozillaThunderbird.spec b/MozillaThunderbird.spec index ddcef78..e33814f 100644 --- a/MozillaThunderbird.spec +++ b/MozillaThunderbird.spec @@ -84,7 +84,6 @@ Group: Productivity/Networking/Email/Clients Url: http://www.mozilla.org/products/thunderbird/ Source: thunderbird-%{version}-source.tar.xz Source1: thunderbird.desktop -Source2: add-plugins.sh.in Source3: mozilla.sh.in Source4: l10n-%{version}.tar.xz #Source5: shipped-locales @@ -348,10 +347,6 @@ ln -sf ../..%{progdir}/%{progname}.sh $RPM_BUILD_ROOT%{_bindir}/%{progname} mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications install -m 644 %{SOURCE1} \ $RPM_BUILD_ROOT%{_datadir}/applications/%{desktop_file_name}.desktop -# install add-plugins.sh -sed "s:%%PROGDIR:%{progdir}:g" \ - %{SOURCE2} > $RPM_BUILD_ROOT%{progdir}/add-plugins.sh -chmod 755 $RPM_BUILD_ROOT%{progdir}/add-plugins.sh # appdata mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata cp %{SOURCE9} $RPM_BUILD_ROOT%{_datadir}/appdata/%{desktop_file_name}.appdata.xml @@ -430,33 +425,12 @@ rm -rf $RPM_BUILD_ROOT rm -rf %{_tmppath}/translations.* %endif -%triggerin -- myspell-dictionary -%progdir/add-plugins.sh > /dev/null 2>&1 -exit 0 - -%triggerpostun -- myspell-dictionary -%progdir/add-plugins.sh > /dev/null 2>&1 -exit 0 - %post -%progdir/add-plugins.sh > /dev/null 2>&1 %if %suse_version > 1130 %icon_theme_cache_post %endif exit 0 -%posttrans -if [ -e %progdir/add-plugins.sh ]; then - %progdir/add-plugins.sh > /dev/null 2>&1 -fi -exit 0 - -%preun -if [ "$1" = "0" ]; then # deinstallation - rm -f %{progdir}/dictionaries/* -fi -exit 0 - %postun %if %suse_version > 1130 %icon_theme_cache_postun @@ -466,7 +440,6 @@ exit 0 %files %defattr(-,root,root) %attr(755,root,root) %{progdir}/%{progname}.sh -%attr(755,root,root) %{progdir}/add-plugins.sh %dir %{progdir} %{progdir}/application.ini %{progdir}/blocklist.xml diff --git a/add-plugins.sh.in b/add-plugins.sh.in deleted file mode 100644 index 32a0422..0000000 --- a/add-plugins.sh.in +++ /dev/null @@ -1,57 +0,0 @@ -#! /bin/sh -# Copyright (c) 2008 Wolfgang Rosenauer. All rights reserved. -# - -# check if we are started as root -# only one of UID and USER must be set correctly -if test "$UID" != 0 -a "$USER" != root; then - echo "You must be root to start $0." - exit 1 -fi - -PREFIX="%PROGDIR" - -# dictionaries -MYSPELL=/usr/share/myspell -MOZ_SPELL=$PREFIX/dictionaries -if [ -d $MOZ_SPELL ] ; then - if [ -d $MYSPELL ] ; then - for dict in $MYSPELL/??[-_]??.aff ; do - - # check is it is really the file or it is a string which contain '??_??' - if ! [ -e $dict ] ; then - continue - fi - - # the dict file name - dict_file=`echo ${dict##*/}` - - # the dict file has a valid name - lang=`echo ${dict_file:0:2}` - country=`echo ${dict_file:3:2}` - - # check for .dic file - if [ ! -r $MYSPELL/${lang}[-_]${country}.dic ] ; then - continue - fi - - # create links - if [ ! -r $MOZ_SPELL/${lang}[-_]${country}.aff ] ; then - ln -sf $MYSPELL/${lang}[-_]${country}.aff \ - $MOZ_SPELL/${lang}-${country}.aff - fi - if [ ! -r $MOZ_SPELL/${lang}[-_]${country}.dic ] ; then - ln -sf $MYSPELL/${lang}[-_]${country}.dic \ - $MOZ_SPELL/${lang}-${country}.dic - fi - done - echo "-> added myspell dictionaries" - fi - - # remove broken links - for dict in $MOZ_SPELL/*.{aff,dic} ; do - if ! [ -r $dict ] ; then - rm -f $dict - fi - done -fi From 093f311c0c636f911cfb72651c34eba3db36f593a91e925e9c35acc0d78f80db Mon Sep 17 00:00:00 2001 From: Wolfgang Rosenauer Date: Sat, 25 Oct 2014 18:42:54 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/mozilla:Factory/MozillaThunderbird?expand=0&rev=263 --- suse-default-prefs.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/suse-default-prefs.js b/suse-default-prefs.js index a73ec20..0804b62 100644 --- a/suse-default-prefs.js +++ b/suse-default-prefs.js @@ -15,3 +15,5 @@ pref("intl.locale.matchOS", true); pref("extensions.autoDisableScopes", 3); pref("extensions.shownSelectionUI", true); +// spellcheck +pref("spellchecker.dictionary_path", "/usr/share/myspell");