]> git.pld-linux.org Git - packages/ruby-activesupport.git/commitdiff
rdoc/ri needs utf8 locale
authorElan Ruusamäe <glen@delfi.ee>
Wed, 11 Sep 2013 10:52:48 +0000 (13:52 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 11 Sep 2013 10:52:48 +0000 (13:52 +0300)
ruby-activesupport.spec

index 84ec2c823c750fb5b92700aceec2865baa137684..36b4c88ddda99a89901d9e849e4953ad9750e596 100644 (file)
@@ -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
This page took 0.163398 seconds and 4 git commands to generate.