From edccab4246bbb12352efefb86b87e242ad366290 Mon Sep 17 00:00:00 2001 From: Jan Rękorajski Date: Sat, 3 Jan 2015 21:22:03 +0000 Subject: - fix building with gcc/c++ 4.9 diff --git a/gcc49.patch b/gcc49.patch new file mode 100644 index 0000000..3deb152 --- /dev/null +++ b/gcc49.patch @@ -0,0 +1,11 @@ +--- libvoikko-3.3.1/src/setup/DictionaryLoader.cpp~ 2011-02-22 05:06:57.000000000 +0000 ++++ libvoikko-3.3.1/src/setup/DictionaryLoader.cpp 2015-01-03 21:20:27.634991966 +0000 +@@ -22,6 +22,8 @@ + #include + #include + #include ++#include ++#include + #ifdef WIN32 + # include + #else diff --git a/libvoikko.spec b/libvoikko.spec index ac53043..9a7baf1 100644 --- a/libvoikko.spec +++ b/libvoikko.spec @@ -12,6 +12,7 @@ License: GPL v2+ Group: Libraries Source0: http://downloads.sourceforge.net/voikko/%{name}-%{version}.tar.gz # Source0-md5: bb5f5b230651452c43201dffa36d2d0c +Patch0: gcc49.patch URL: http://voikko.sourceforge.net/ %{?with_hfst:BuildRequires: hfst-devel >= 2.4} BuildRequires: libstdc++-devel @@ -72,6 +73,7 @@ Statyczna biblioteka libvoikko. %prep %setup -q +%patch0 -p1 %build # NOTE: malaga compiled dictionaries are arch-dependent -- cgit v0.10.2