From d7cef3b69154b1a7e965cbd4ac263eb2dbb9627f Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Apr 18 2016 19:37:55 +0000 Subject: fix build --- diff --git a/lokalize.hunspell14.patch b/lokalize.hunspell14.patch new file mode 100644 index 0000000..a4c7966 --- /dev/null +++ b/lokalize.hunspell14.patch @@ -0,0 +1,12 @@ +diff -ru lokalize-15.12.3/cmake/FindHUNSPELL.cmake lokalize-15.12.3/cmake/FindHUNSPELL.cmake +--- lokalize-15.12.3/cmake/FindHUNSPELL.cmake 2016-04-18 20:36:39.446585852 +0100 ++++ lokalize-15.12.3/cmake/FindHUNSPELL.cmake 2016-04-18 20:36:52.677393880 +0100 +@@ -14,7 +14,7 @@ + + FIND_PATH(HUNSPELL_INCLUDE_DIR hunspell/hunspell.hxx ) + +-FIND_LIBRARY(HUNSPELL_LIBRARIES NAMES hunspell-1.3 hunspell-1.2) ++FIND_LIBRARY(HUNSPELL_LIBRARIES NAMES hunspell-1.4 hunspell-1.3 hunspell-1.2) + + # handle the QUIETLY and REQUIRED arguments and set HUNSPELL_FOUND to TRUE if + # all listed variables are TRUE diff --git a/lokalize.spec b/lokalize.spec index b774df3..406c01e 100644 --- a/lokalize.spec +++ b/lokalize.spec @@ -13,6 +13,8 @@ URL: https://projects.kde.org/projects/kde/kdesdk/lokalize %endif Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{name}-%{version}.tar.xz +Patch1: lokalize.hunspell14.patch + BuildRequires: desktop-file-utils BuildRequires: extra-cmake-modules BuildRequires: gettext @@ -66,7 +68,7 @@ Computer-aided translation system focusing on productivity and performance %prep %setup -q - +%patch -p1 -b .hunspell14.patch %build mkdir %{_target_platform}