[packages/mecab] - added libdir patch: put proper libdir in mecabrc file
qboosh
qboosh at pld-linux.org
Sat Mar 17 08:40:24 CET 2018
commit ae3a9da4deefc68d26f92ed49e8a50beb5fe6097
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Mar 17 08:42:52 2018 +0100
- added libdir patch: put proper libdir in mecabrc file
mecab-libdir.patch | 11 +++++++++++
mecab.spec | 2 ++
2 files changed, 13 insertions(+)
---
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 .
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
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mecab.git/commitdiff/ae3a9da4deefc68d26f92ed49e8a50beb5fe6097
More information about the pld-cvs-commit
mailing list