BuildRequires: rpmbuild(macros) >= 1.656
%if %{with tests}
BuildRequires: ruby-rake
-%if %(locale -a | grep -q '^en_US$'; echo $?)
-BuildRequires: glibc-localedb-all
-%endif
%endif
Requires: pld-release
Requires: ruby-rubygems
%build
%if %{with tests}
-# tests need UTF-8 locale
-LC_ALL=en_US.UTF-8 \
rake test
%endif