[packages/otter-browser] fix build with hunspell 1.7

atler atler at pld-linux.org
Wed Jun 26 00:14:19 CEST 2019


commit ddb4332aa493e67e5eedca537ad495c6c814d844
Author: Jan Palus <atler at pld-linux.org>
Date:   Wed Jun 26 00:10:13 2019 +0200

    fix build with hunspell 1.7

 otter-browser-hunspell-1.7.patch | 12 ++++++++++++
 otter-browser.spec               |  4 +++-
 2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/otter-browser.spec b/otter-browser.spec
index 573e6fd..7a40264 100644
--- a/otter-browser.spec
+++ b/otter-browser.spec
@@ -8,6 +8,7 @@ License:	GPL v3
 Group:		X11/Applications/Networking
 Source0:	https://github.com/OtterBrowser/otter-browser/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	99601d0b230956dc542a04f0df912626
+Patch0:		%{name}-hunspell-1.7.patch
 URL:		http://otter-browser.org/
 BuildRequires:	Qt5Concurrent-devel >= %{qtver}
 BuildRequires:	Qt5Core-devel >= %{qtver}
@@ -23,7 +24,7 @@ BuildRequires:	Qt5WebKit-devel >= %{qtver}
 BuildRequires:	Qt5Widgets-devel >= %{qtver}
 BuildRequires:	Qt5XmlPatterns-devel >= %{qtver}
 BuildRequires:	cmake >= 2.6.2
-BuildRequires:	hunspell-devel
+BuildRequires:	hunspell-devel >= 1.5.0
 BuildRequires:	kf5-sonnet-devel
 BuildRequires:	libstdc++-devel
 BuildRequires:	qt5-build
@@ -43,6 +44,7 @@ przy użyciu Qt5.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 install -d build
diff --git a/otter-browser-hunspell-1.7.patch b/otter-browser-hunspell-1.7.patch
new file mode 100644
index 0000000..487d273
--- /dev/null
+++ b/otter-browser-hunspell-1.7.patch
@@ -0,0 +1,12 @@
+diff -urN otter-browser-1.0.01.orig/cmake/FindHunspell.cmake otter-browser-1.0.01/cmake/FindHunspell.cmake
+--- otter-browser-1.0.01.orig/cmake/FindHunspell.cmake	2019-06-25 23:53:03.089478575 +0200
++++ otter-browser-1.0.01/cmake/FindHunspell.cmake	2019-06-25 23:53:16.999434322 +0200
+@@ -12,7 +12,7 @@
+ ENDIF (HUNSPELL_INCLUDE_DIR AND HUNSPELL_LIBRARIES)
+ 
+ FIND_PATH(HUNSPELL_INCLUDE_DIR hunspell/hunspell.hxx)
+-FIND_LIBRARY(HUNSPELL_LIBRARIES NAMES hunspell-1.6 hunspell-1.5 hunspell)
++FIND_LIBRARY(HUNSPELL_LIBRARIES NAMES hunspell-1.7 hunspell-1.6 hunspell-1.5 hunspell)
+ 
+ # handle the QUIETLY and REQUIRED arguments and set HUNSPELL_FOUND to TRUE if
+ # all listed variables are TRUE
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/otter-browser.git/commitdiff/fdbf5f1265d1db1fd089936f3903ebeccc9308ba



More information about the pld-cvs-commit mailing list