[packages/ruby-diff-lcs] fix utf8 issues
glen
glen at pld-linux.org
Sun May 5 19:49:08 CEST 2013
commit 4ebbe61f442c12afb3be2ea19c87642836f42584
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sun May 5 20:48:01 2013 +0300
fix utf8 issues
ruby-diff-lcs.spec | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/ruby-diff-lcs.spec b/ruby-diff-lcs.spec
index e516e83..6ffe40a 100644
--- a/ruby-diff-lcs.spec
+++ b/ruby-diff-lcs.spec
@@ -12,6 +12,9 @@ Patch0: %{name}-nogems.patch
URL: http://raa.ruby-lang.org/project/diff-lcs/
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.656
+%if %(locale -a | grep -q '^en_US$'; echo $?)
+BuildRequires: glibc-localedb-all
+%endif
Provides: ruby-Diff-LCS
Obsoletes: ruby-Diff-LCS
BuildArch: noarch
@@ -83,7 +86,12 @@ Narzędzie Ruby Diff.
%setup -q -n %{pkgname}-%{version}
%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
+iconv -flatin1 -tutf8 lib/diff/lcs/ldiff.rb > tmp
+mv tmp lib/diff/lcs/ldiff.rb
+
%build
+# docs need UTF-8 locale
+export LC_ALL=en_US.UTF-8
rdoc --ri --op ri lib
rdoc --op rdoc lib
rm -r ri/{Array,String}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-diff-lcs.git/commitdiff/4ebbe61f442c12afb3be2ea19c87642836f42584
More information about the pld-cvs-commit
mailing list