BuildRequires: rpm-rubyprov
BuildRequires: rpmbuild(macros) >= 1.656
%if %{with tests}
+BuildRequires: ruby-rake
%if %(locale -a | grep -q '^en_US$'; echo $?)
BuildRequires: glibc-localedb-all
%endif
%if %{with tests}
# tests need UTF-8 locale
LC_ALL=en_US.UTF-8 \
-testrb -Itest test/
+rake test
%endif
%install