[packages/ruby-activesupport] rdoc/ri needs utf8 locale
glen
glen at pld-linux.org
Wed Sep 11 12:52:55 CEST 2013
commit d3bfee607cad01258da943d1aeba35baae013b26
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Sep 11 13:52:48 2013 +0300
rdoc/ri needs utf8 locale
ruby-activesupport.spec | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/ruby-activesupport.spec b/ruby-activesupport.spec
index 84ec2c8..36b4c88 100644
--- a/ruby-activesupport.spec
+++ b/ruby-activesupport.spec
@@ -10,6 +10,9 @@ Source0: http://rubygems.org/downloads/%{pkgname}-%{version}.gem
URL: http://rubyforge.org/projects/activesupport/
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.656
+%if %(locale -a | grep -q '^en_US$'; echo $?)
+BuildRequires: glibc-localedb-all
+%endif
Requires: ruby-builder >= 2.1.2
Requires: ruby-i18n
Requires: ruby-json
@@ -59,6 +62,8 @@ Dokumentacji w formacie ri dla %{pkgname}.
rm lib/active_support/xml_mini/jdom.rb
%build
+# UTF8 locale needed for doc generation
+export LC_ALL=en_US.UTF-8
rdoc --ri --op ri lib
rdoc --op rdoc lib
rm ri/created.rid
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/ruby-activesupport.git/commitdiff/d3bfee607cad01258da943d1aeba35baae013b26
More information about the pld-cvs-commit
mailing list