forked from pool/sonnet
This commit is contained in:
parent
8c558a786f
commit
7bbf7414f1
29
dictionary-locations.patch
Normal file
29
dictionary-locations.patch
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
diff --git a/src/plugins/hunspell/hunspellclient.cpp b/src/plugins/hunspell/hunspellclient.cpp
|
||||||
|
index 9e3aa67..bf2ca71 100644
|
||||||
|
--- a/src/plugins/hunspell/hunspellclient.cpp
|
||||||
|
+++ b/src/plugins/hunspell/hunspellclient.cpp
|
||||||
|
@@ -46,7 +46,7 @@ SpellerPlugin *HunspellClient::createSpeller(const QString &language)
|
||||||
|
QStringList HunspellClient::languages() const
|
||||||
|
{
|
||||||
|
QStringList lst;
|
||||||
|
- QDir dir(QStringLiteral("/usr/share/myspell/dicts/"));
|
||||||
|
+ QDir dir(QStringLiteral("/usr/share/hunspell/"));
|
||||||
|
if (dir.exists()) {
|
||||||
|
QStringList lstDic = dir.entryList(QStringList(QStringLiteral("*.dic")), QDir::Files);
|
||||||
|
foreach (const QString &tmp, lstDic) {
|
||||||
|
diff --git a/src/plugins/hunspell/hunspelldict.cpp b/src/plugins/hunspell/hunspelldict.cpp
|
||||||
|
index 621113d..5baa65f 100644
|
||||||
|
--- a/src/plugins/hunspell/hunspelldict.cpp
|
||||||
|
+++ b/src/plugins/hunspell/hunspelldict.cpp
|
||||||
|
@@ -30,9 +30,9 @@ HunspellDict::HunspellDict(const QString &lang)
|
||||||
|
: SpellerPlugin(lang), m_speller(0)
|
||||||
|
{
|
||||||
|
qDebug() << " HunspellDict::HunspellDict( const QString& lang ):" << lang;
|
||||||
|
- QString dic = QStringLiteral("/usr/share/myspell/dicts/%1.dic").arg(lang);
|
||||||
|
+ QString dic = QStringLiteral("/usr/share/hunspell/%1.dic").arg(lang);
|
||||||
|
if (QFileInfo(dic).exists()) {
|
||||||
|
- m_speller = new Hunspell(QStringLiteral("/usr/share/myspell/dicts/%1.aff").arg(lang).toUtf8().constData(), dic.toUtf8().constData());
|
||||||
|
+ m_speller = new Hunspell(QStringLiteral("/usr/share/hunspell/%1.aff").arg(lang).toUtf8().constData(), dic.toUtf8().constData());
|
||||||
|
} else {
|
||||||
|
m_speller = 0;
|
||||||
|
}
|
@ -4,6 +4,10 @@ Sat Mar 7 16:58:57 UTC 2015 - hrvoje.senjan@gmail.com
|
|||||||
- Update to 5.8.0
|
- Update to 5.8.0
|
||||||
* For more details please see:
|
* For more details please see:
|
||||||
https://www.kde.org/announcements/kde-frameworks-5.8.0.php
|
https://www.kde.org/announcements/kde-frameworks-5.8.0.php
|
||||||
|
- Comment out aspell-devel BuildRequires, myspell/hunspell plugin
|
||||||
|
is prefered
|
||||||
|
- Added dictionary-locations.patch: find dictionaries in openSUSE
|
||||||
|
locations
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sun Feb 8 18:15:34 UTC 2015 - hrvoje.senjan@gmail.com
|
Sun Feb 8 18:15:34 UTC 2015 - hrvoje.senjan@gmail.com
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
Name: sonnet
|
Name: sonnet
|
||||||
Version: %{_tar_path}.0
|
Version: %{_tar_path}.0
|
||||||
Release: 0
|
Release: 0
|
||||||
BuildRequires: aspell-devel
|
#BuildRequires: aspell-devel
|
||||||
BuildRequires: cmake >= 2.8.12
|
BuildRequires: cmake >= 2.8.12
|
||||||
# Enchant plugin is currently disabled upstream
|
# Enchant plugin is currently disabled upstream
|
||||||
#BuildRequires: enchant-devel
|
#BuildRequires: enchant-devel
|
||||||
@ -39,6 +39,8 @@ Group: System/GUI/KDE
|
|||||||
Url: http://www.kde.org
|
Url: http://www.kde.org
|
||||||
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
|
Source: http://download.kde.org/stable/frameworks/%{_tar_path}/%{name}-%{version}.tar.xz
|
||||||
Source1: baselibs.conf
|
Source1: baselibs.conf
|
||||||
|
# PATCH-FIX-OPENSUSE dictionary-locations.patch -- find dictionaries in openSUSE locations
|
||||||
|
Patch0: dictionary-locations.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -86,6 +88,7 @@ HSpell, Enchant, ASpell and HUNSPELL. Development files.
|
|||||||
%lang_package -n libKF5SonnetCore%sonum
|
%lang_package -n libKF5SonnetCore%sonum
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%cmake_kf5 -d build -- -Dlconvert_executable=%{_kf5_libdir}/qt5/bin/lconvert
|
%cmake_kf5 -d build -- -Dlconvert_executable=%{_kf5_libdir}/qt5/bin/lconvert
|
||||||
|
Loading…
Reference in New Issue
Block a user