[packages/java-mecab] - workaround for UTF-8 sourcecode

qboosh qboosh at pld-linux.org
Sat Nov 24 13:07:54 CET 2012


commit ef285d49105604296c22df025afe813fc2549962
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Nov 24 13:08:06 2012 +0100

    - workaround for UTF-8 sourcecode

 java-mecab.spec | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/java-mecab.spec b/java-mecab.spec
index c7ec6cb..f22d34b 100644
--- a/java-mecab.spec
+++ b/java-mecab.spec
@@ -11,6 +11,9 @@ Source0:	http://mecab.googlecode.com/files/mecab-java-%{version}.tar.gz
 # Source0-md5:	c6e9e4b283519847b5c9c750710b7c85
 Patch0:		%{name}-opt.patch
 URL:		http://code.google.com/p/mecab/
+%if %(locale -a | grep -q '^en_US\.UTF-8$'; echo $?)
+BuildRequires:	glibc-localedb-all
+%endif
 BuildRequires:	jdk
 BuildRequires:	jpackage-utils
 BuildRequires:	libstdc++-devel
@@ -31,6 +34,8 @@ Moduł MeCab dla Javy.
 %patch0 -p1
 
 %build
+# test.java contains UTF-8 string
+export LC_ALL=en_US.UTF-8
 %{__make} \
 	CXX="%{__cxx}" \
 	CXXFLAGS="%{rpmcxxflags}" \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/java-mecab.git/commitdiff/ef285d49105604296c22df025afe813fc2549962



More information about the pld-cvs-commit mailing list