+<% if ! spec.development_dependencies.empty? -%>
+#
+# Conditional build:
+%bcond_without tests # build without tests
+
+<% end -%>
%define pkgname <%= spec.name %>
Summary: <%= spec.summary %>
Name: ruby-%{pkgname}
Requires: ruby-<%= d.name %> <%= req %>
<% end -%>
<% end -%>
+<% if ! spec.development_dependencies.empty? -%>
+%if %{with tests}
+<% for d in spec.development_dependencies -%>
+<% for req in d.requirement -%>
+Requires: ruby-<%= d.name %> <%= req %>
+<% end -%>
+<% end -%>
+%endif
+<% end -%>
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)