From: Jakub Bogusz Date: Sat, 17 Mar 2018 07:42:52 +0000 (+0100) Subject: - added libdir patch: put proper libdir in mecabrc file X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=ae3a9da4deefc68d26f92ed49e8a50beb5fe6097;p=packages%2Fmecab.git - added libdir patch: put proper libdir in mecabrc file --- diff --git a/mecab-libdir.patch b/mecab-libdir.patch new file mode 100644 index 0000000..9048f28 --- /dev/null +++ b/mecab-libdir.patch @@ -0,0 +1,11 @@ +--- mecab-0.996/mecabrc.in.orig 2012-09-29 18:44:28.000000000 +0200 ++++ mecab-0.996/mecabrc.in 2018-03-17 08:41:09.717342237 +0100 +@@ -3,7 +3,7 @@ + ; + ; $Id: mecabrc.in,v 1.3 2006/05/29 15:36:08 taku-ku Exp $; + ; +-dicdir = @prefix@/lib/mecab/dic/ipadic ++dicdir = @libdir@/mecab/dic/ipadic + + ; userdic = /home/foo/bar/user.dic + diff --git a/mecab.spec b/mecab.spec index 935ae09..062968b 100644 --- a/mecab.spec +++ b/mecab.spec @@ -11,6 +11,7 @@ Group: Libraries Source0: %{name}-%{version}.tar.gz # Source0-md5: 7603f8975cea2496d88ed62545ba973f Patch0: %{name}-libexec.patch +Patch1: %{name}-libdir.patch URL: https://taku910.github.io/mecab BuildRequires: automake BuildRequires: libstdc++-devel @@ -50,6 +51,7 @@ Statyczna biblioteka MeCab. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build cp -f /usr/share/automake/config.sub .