[packages/ruby-coderay] use utf8 locale for rdoc/ri generation
glen
glen at pld-linux.org
Wed Sep 25 20:06:18 CEST 2013
commit 8d50c0e809e7b947ddb611b33970f8bae6c39004
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Sep 25 21:04:42 2013 +0300
use utf8 locale for rdoc/ri generation
ruby-coderay.spec | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/ruby-coderay.spec b/ruby-coderay.spec
index 638325a..c0ea2c1 100644
--- a/ruby-coderay.spec
+++ b/ruby-coderay.spec
@@ -11,6 +11,9 @@ URL: http://coderay.rubychan.de/
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.656
BuildRequires: sed >= 4.0
+%if %(locale -a | grep -q '^en_US$'; echo $?)
+BuildRequires: glibc-localedb-all
+%endif
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -48,6 +51,8 @@ Dokumentacji w formacie ri dla %{pkgname}.
%{__sed} -i -e '1 s,#!.*ruby,#!%{__ruby},' bin/*
%build
+# UTF8 locale needed for doc generation
+export LC_ALL=en_US.UTF-8
rdoc --ri --op ri lib
rdoc --op rdoc lib
rm -fr ri/{GZip,String}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-coderay.git/commitdiff/30039a80e853f32a5dca229f9ccb3fcda847cce8
More information about the pld-cvs-commit
mailing list