From 31b037892d6f4afce75a66e352475c130c2ffd86 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Tue, 26 Aug 2025 08:40:46 +0800 Subject: [PATCH] hunspell contains dictionary now (cherry picked from commit a5662226b79446c7a1b343b1d9deea7979208f4e) --- firefox-openeuler-default-prefs.js | 2 +- firefox.spec | 23 ++++++----------------- 2 files changed, 7 insertions(+), 18 deletions(-) diff --git a/firefox-openeuler-default-prefs.js b/firefox-openeuler-default-prefs.js index fcd3158..3b77808 100644 --- a/firefox-openeuler-default-prefs.js +++ b/firefox-openeuler-default-prefs.js @@ -26,7 +26,7 @@ pref("browser.display.use_system_colors", false); /* Allow sending credetials to all https:// sites */ pref("network.negotiate-auth.trusted-uris", "https://"); pref("security.use_sqldb", false); -pref("spellchecker.dictionary_path","/usr/share/myspell"); +pref("spellchecker.dictionary_path","/usr/share/hunspell"); /* Disable DoH by default */ pref("network.trr.mode", 5); /* Enable per-user policy dir, see mozbz#1583466 */ diff --git a/firefox.spec b/firefox.spec index b6ee879..04ff3c5 100644 --- a/firefox.spec +++ b/firefox.spec @@ -45,7 +45,7 @@ Summary: Mozilla Firefox Web browser Name: firefox Version: 128.14.0 -Release: 1 +Release: 2 URL: https://www.mozilla.org/firefox/ License: MPL-1.1 or GPL-2.0-or-later or LGPL-2.0-or-later Source0: https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.xz @@ -803,7 +803,7 @@ sed -i -e 's|%PREFIX%|%{_prefix}|' %{buildroot}%{mozappdir}/browser/defaults/pre # Use the system hunspell dictionaries %{__rm} -rf %{buildroot}%{mozappdir}/dictionaries -ln -s %{_datadir}/myspell %{buildroot}%{mozappdir}/dictionaries +ln -s %{_datadir}/hunspell %{buildroot}%{mozappdir}/dictionaries %if 0%{?run_firefox_tests} %{__mkdir_p} %{buildroot}/%{version}-%{release}/test_results @@ -852,21 +852,6 @@ if [ $1 -eq 0 ]; then %{__rm} -rf %{mozappdir}/plugins fi -%post -update-desktop-database &> /dev/null || : -touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : - -%postun -update-desktop-database &> /dev/null || : -if [ $1 -eq 0 ] ; then - touch --no-create %{_datadir}/icons/hicolor &>/dev/null - gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - %{__rm} -rf %{langpackdir} -fi - -%posttrans -gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : - %files -f %{name}.lang %{_bindir}/firefox %{mozappdir}/firefox @@ -924,6 +909,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %endif %changelog +* Tue Aug 26 2025 Funda Wang - 128.14.0-2 +- hunspell contains dictionary now +- drop useless update desktop and icon cache scriptlet + * Tue Aug 19 2025 Funda Wang - 128.14.0-1 - update to 128.14.0 -- Gitee