[packages/ruby-mail] rdoc/ri needs utf8 locale
glen
glen at pld-linux.org
Wed Sep 11 12:41:14 CEST 2013
commit 1ab954a06570f2927ab75b7bad72035300b545fa
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Sep 11 13:41:11 2013 +0300
rdoc/ri needs utf8 locale
ruby-mail.spec | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/ruby-mail.spec b/ruby-mail.spec
index aae5843..a5f7365 100644
--- a/ruby-mail.spec
+++ b/ruby-mail.spec
@@ -11,6 +11,9 @@ Group: Development/Languages
URL: http://github.com/mikel/mail
BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.665
+%if %(locale -a | grep -q '^en_US$'; echo $?)
+BuildRequires: glibc-localedb-all
+%endif
Requires: ruby-activesupport >= 2.3.4
Requires: ruby-mime-types
Requires: ruby-treetop
@@ -51,6 +54,8 @@ Dokumentacji w formacie ri dla %{pkgname}.
rm -r lib/mail/vendor
%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-mail.git/commitdiff/1ab954a06570f2927ab75b7bad72035300b545fa
More information about the pld-cvs-commit
mailing list